Developing Games on Intel Graphics
If you are gaming on graphics integrated in your Intel Processor, this is the place for you! Find answers to your questions or post your issues with PC games
489 Discussions

OpenCL double precision 'double' requires cl_khr_fp64 extension to be enabled

Shmidt__Peter
Beginner
2,513 Views

For my kernel, I need double precision. In CUDA, this is no problem, it is automatically supported. However, in order to support non NVIDIA hardware, the user should be able to use OpenCL, too. Here, as far as I understand, double precision has to be activated manually. Currently, the compiler throws the exception

"Compilation error: :8:32: error: use of type 'double' requires cl_khr_fp64 extension to be enabled"

To do so in the kernel code, one would normally add a line

"#pragma OPENCL EXTENSION cl_khr_fp64 : enable"

Now is there a way to

a) tell CUDAfy to enable double precision on OpenCL hardware or
b) load an existing CUDA C code instead of translating the C# code?
 

Im using 4770K

Intel HD 4600

asrock z87 extreme

0 Kudos
1 Reply
Michael_C_Intel2
Employee
2,513 Views

Have you checked out the the Intel Graphics guide? https://software.intel.com/en-us/articles/intel-graphics-developers-guides

0 Kudos
Reply