From db6baeefb622afafade801ec6d4d55573f2642e2 Mon Sep 17 00:00:00 2001
From: foreman
Date: Mon, 21 Jul 2014 14:14:57 -0400
Subject: [PATCH] P4 to Git Change 1057438 by skudchad@skudchad_opencl_win_2 on
2014/07/21 14:00:21
ECR #304775 - OpenCL version should be 2.0 for only CI+
ReviewBoardURL = http://ocltc.amd.com/reviews/r/5311/
Affected files ...
... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpudevice.cpp#448 edit
---
rocclr/runtime/device/gpu/gpudevice.cpp | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
diff --git a/rocclr/runtime/device/gpu/gpudevice.cpp b/rocclr/runtime/device/gpu/gpudevice.cpp
index b3e6461141..62404e1e9c 100644
--- a/rocclr/runtime/device/gpu/gpudevice.cpp
+++ b/rocclr/runtime/device/gpu/gpudevice.cpp
@@ -180,8 +180,14 @@ NullDevice::create(CALtarget target)
::strcpy(info_.vendor_, "Advanced Micro Devices, Inc.");
::snprintf(info_.driverVersion_, sizeof(info_.driverVersion_) - 1,
AMD_BUILD_STRING);
- info_.version_ = "OpenCL 2.0 " AMD_PLATFORM_INFO;
- info_.oclcVersion_ = "OpenCL C 2.0 ";
+ if (gpuSettings->ciPlus_) {
+ info_.version_ = "OpenCL 2.0 " AMD_PLATFORM_INFO;
+ info_.oclcVersion_ = "OpenCL C 2.0 ";
+ }
+ else {
+ info_.version_ = "OpenCL 1.2 " AMD_PLATFORM_INFO;
+ info_.oclcVersion_ = "OpenCL C 1.2 ";
+ }
return true;
}