aae258198d
SWDEV-102726 - [OCL-LC-ROCm] Open source OpenCL Runtime - Cleanups: Remove CL_HSA_ENABLED/DISABLED_AMD. Affected files ... ... //depot/stg/opencl/drivers/opencl/api/opencl/amdocl/cl_context.cpp#52 edit ... //depot/stg/opencl/drivers/opencl/api/opencl/amdocl/cl_device.cpp#60 edit ... //depot/stg/opencl/drivers/opencl/api/opencl/khronos/headers/opencl1.2/CL/cl_ext.h#13 edit ... //depot/stg/opencl/drivers/opencl/api/opencl/khronos/headers/opencl2.0/CL/cl_ext.h#28 edit ... //depot/stg/opencl/drivers/opencl/api/opencl/khronos/headers/opencl2.1/CL/cl_ext.h#6 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/appprofile.cpp#15 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/appprofile.hpp#10 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/device.cpp#208 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/device.hpp#283 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocappprofile.cpp#4 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocdevice.cpp#36 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocdevice.hpp#14 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocprogram.cpp#53 edit
46 строки
897 B
C++
46 строки
897 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 == NULL) || !appProfile->init()) {
|
|
return NULL;
|
|
}
|
|
|
|
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
|