Only check for GPU double precision support if a GPU is present
This commit is contained in:
@ -1047,7 +1047,7 @@ bool lmp_has_compatible_gpu_device()
|
|||||||
UCL_Device gpu;
|
UCL_Device gpu;
|
||||||
bool compatible_gpu = gpu.num_platforms() > 0;
|
bool compatible_gpu = gpu.num_platforms() > 0;
|
||||||
#if defined(_SINGLE_DOUBLE) || defined(_DOUBLE_DOUBLE)
|
#if defined(_SINGLE_DOUBLE) || defined(_DOUBLE_DOUBLE)
|
||||||
if (!gpu.double_precision(0))
|
if (compatible_gpu && !gpu.double_precision(0))
|
||||||
compatible_gpu = false;
|
compatible_gpu = false;
|
||||||
#endif
|
#endif
|
||||||
return compatible_gpu;
|
return compatible_gpu;
|
||||||
|
|||||||
Reference in New Issue
Block a user