Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
No related merge requests found
......@@ -424,7 +424,7 @@ patch_kernel_source:
if(device_type == CL_DEVICE_TYPE_GPU)
{
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)
{
char *build_log;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment