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
[ROCm/clr commit: b9d45ad9c5]
This commit is contained in:
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user