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


[ROCm/clr commit: e7b10515af]
Esse commit está contido em:
foreman
2014-09-18 18:15:20 -04:00
commit 38ad781d31
@@ -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;