make check more obvious

This commit is contained in:
Axel Kohlmeyer
2021-09-25 21:33:10 -04:00
parent 0534d98987
commit 9da8c932ab

View File

@ -568,7 +568,7 @@ void UCL_Device::add_properties(cl_device_id device_list) {
cl_device_fp_config double_avail;
CL_SAFE_CALL(clGetDeviceInfo(device_list,CL_DEVICE_DOUBLE_FP_CONFIG,
sizeof(double_avail),&double_avail,nullptr));
if (((double_avail & double_mask) ^ double_mask) == 0)
if ((double_avail & double_mask) == double_mask)
op.double_precision=true;
else
op.double_precision=false;