SWDEV-301289 - Treewide macro rename
ATI_OS_WIN -> _WIN32
ATI_OS_LINUX -> __linux__
We should not rely on non-standard macros for platform detections.
Change-Id: If1d06e2e1187268df62a59609ea5496ab7eb709d
[ROCm/clr commit: c4aa6febe5]
Šī revīzija ir iekļauta:
1 vecāks
79be42d8b7
revīzija
60cf342ae0
27 files changed
+92
-93
No files matched your search
@@ -109,7 +109,7 @@ void OCLStablePState::run(void) {
|
||||
cl_set_device_clock_mode_output_amd setClockModeOutput = {};
|
||||
error_ = _wrapper->clSetDeviceClockModeAMD(gpu_device, setClockModeInput,
|
||||
&setClockModeOutput);
|
||||
#ifdef ATI_OS_WIN
|
||||
#ifdef _WIN32
|
||||
CHECK_RESULT(error_ != CL_SUCCESS, "SetClockMode profiling failed\n");
|
||||
#else
|
||||
error_ = CL_SUCCESS;
|
||||
@@ -119,7 +119,7 @@ void OCLStablePState::run(void) {
|
||||
setClockModeOutput = {};
|
||||
error_ = _wrapper->clSetDeviceClockModeAMD(gpu_device, setClockModeInput,
|
||||
&setClockModeOutput);
|
||||
#ifdef ATI_OS_WIN
|
||||
#ifdef _WIN32
|
||||
CHECK_RESULT(error_ != CL_SUCCESS, "SetClockMode default failed\n");
|
||||
#else
|
||||
error_ = CL_SUCCESS;
|
||||
|
||||
Reference in new issue
Block a user