cancel
Showing results for 
Search instead for 
Did you mean: 

Archives Discussions

mordock2012
Journeyman III

JOCL OpenCL program compiling for processor but not GPU. Doubles in use.

I have an openCL kernel that is compiling for an intel processor but not the GPU. I am using doubles in the kernel. What is the method for enabling doubles in an openCL kernel. I believe this is what is causing the failed compilation of the gpu image because when I change everthing to floats it compiles fine(The GPU version).

0 Likes
1 Reply
nou
Exemplar

do your GPU support cl_khr_fp64 extension? you can find out with clinfo program. and add at the start of the kernel #pragma OPENCL EXTENSION cl_khr_fp64 : enable

0 Likes