From e7b10515afb594b9e69ef73e96ede5be2d3370e3 Mon Sep 17 00:00:00 2001
From: foreman
Date: Thu, 18 Sep 2014 18:15:20 -0400
Subject: [PATCH] P4 to Git Change 1078478 by xcui@merged_opencl_jxcwin on
2014/09/18 17:18:02
EPR #397491 - disable OpenCL 2.0 for mainline when there are multiple devices in the system, because svm test will fail even test on the first device
Affected files ...
... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpudevice.cpp#462 edit
---
rocclr/runtime/device/gpu/gpudevice.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/rocclr/runtime/device/gpu/gpudevice.cpp b/rocclr/runtime/device/gpu/gpudevice.cpp
index 87cd838486..afcfae562b 100644
--- a/rocclr/runtime/device/gpu/gpudevice.cpp
+++ b/rocclr/runtime/device/gpu/gpudevice.cpp
@@ -754,7 +754,7 @@ Device::create(CALuint ordinal, CALuint numOfDevices)
// Open GSL device
bool reportOCL12Device = (OPENCL_VERSION < 200);
- reportOCL12Device = ((numOfDevices < 2) || (ordinal == 0)) ? (OPENCL_VERSION < 200) : true;
+ reportOCL12Device = (numOfDevices < 2) ? (OPENCL_VERSION < 200) : true;
if (!open(ordinal, appProfile_.enableHighPerformanceState(),
appProfile_.reportAsOCL12Device() || reportOCL12Device)) {
return false;