P4 to Git Change 1062579 by jgolds@jgolds_MSDNfractal5_opencl2 on 2014/08/04 14:01:10

ECR #304775 - Allow disabling of the CPU device when CPU_MAX_COMPUTE_UNITS is 0.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/cpu/cpudevice.cpp#265 edit
Цей коміт міститься в:
foreman
2014-08-04 14:08:25 -04:00
джерело fe4d2c12a1
коміт b9d45ad9c5
+4
Переглянути файл
@@ -54,6 +54,10 @@ Device::tearDown()
bool
Device::init()
{
// Allow disabling of the CPU device
if (CPU_MAX_COMPUTE_UNITS == 0)
return false;
const char *library = getenv("COMPILER_LIBRARY");
aclCompilerOptions opts = {
sizeof(aclCompilerOptions_0_8),