34fc049ad5
SWDEV-79445 - OCL generic changes and code clean-up - replace NULL with nullptr in the ROCm backend Affected files ... ... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocappprofile.cpp#5 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocblit.cpp#16 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocblit.hpp#7 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/roccompiler.cpp#28 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/roccompilerlib.cpp#5 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocdevice.cpp#44 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocdevice.hpp#18 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rockernel.cpp#20 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rockernel.hpp#14 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocmemory.cpp#14 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocmemory.hpp#7 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocprintf.cpp#6 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocprintf.hpp#4 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocprogram.cpp#59 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocprogram.hpp#20 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocsettings.cpp#15 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocvirtual.cpp#33 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocvirtual.hpp#9 edit
46 라인
903 B
C++
46 라인
903 B
C++
//
|
|
// Copyright (c) 2009 Advanced Micro Devices, Inc. All rights reserved.
|
|
//
|
|
|
|
|
|
#ifndef WITHOUT_HSA_BACKEND
|
|
|
|
#include "top.hpp"
|
|
#include "device/device.hpp"
|
|
#include "device/appprofile.hpp"
|
|
#include "device/rocm/rocappprofile.hpp"
|
|
|
|
#include <algorithm>
|
|
|
|
amd::AppProfile* rocCreateAppProfile()
|
|
{
|
|
amd::AppProfile* appProfile = new roc::AppProfile;
|
|
|
|
if ((appProfile == nullptr) || !appProfile->init()) {
|
|
return nullptr;
|
|
}
|
|
|
|
return appProfile;
|
|
}
|
|
|
|
namespace roc {
|
|
|
|
bool AppProfile::ParseApplicationProfile()
|
|
{
|
|
std::string appName("Explorer");
|
|
|
|
std::transform(appName.begin(), appName.end(), appName.begin(), ::tolower);
|
|
std::transform(appFileName_.begin(), appFileName_.end(), appFileName_.begin(), ::tolower);
|
|
|
|
if (appFileName_.compare(appName) == 0 ) {
|
|
gpuvmHighAddr_ = false;
|
|
profileOverridesAllSettings_ = true;
|
|
}
|
|
|
|
return true;
|
|
}
|
|
|
|
}
|
|
|
|
#endif
|