Commit 2df1083e authored by Heinz-Bernd Eggenstein's avatar Heinz-Bernd Eggenstein
Browse files

Bug #1641: double fp literals cause compilation errors with OpenCL

fix: use compiler flag to globally convert all double constants to floats
parent 7d3bdca6
...@@ -424,7 +424,7 @@ patch_kernel_source: ...@@ -424,7 +424,7 @@ patch_kernel_source:
if(device_type == CL_DEVICE_TYPE_GPU) if(device_type == CL_DEVICE_TYPE_GPU)
{ {
gpu_found = 1; gpu_found = 1;
err = clBuildProgram(plan->program, 1, &devices[i], "-cl-mad-enable", NULL, NULL); err = clBuildProgram(plan->program, 1, &devices[i], "-cl-mad-enable -cl-single-precision-constant", NULL, NULL);
if (err != CL_SUCCESS) if (err != CL_SUCCESS)
{ {
char *build_log; char *build_log;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment