OpenCL extension 'cl_khr_fp64' is unsupported
December 4, 2015 at 18:47 #1328
Greetings Paralution community / developers,
I am having an issue with installing Pralution OpenCL backend on a machine. I am compiling the Paralusion library without problem, but then when I try to “init_paralution();” in my code I get:
Number of OpenCL devices in the System : 3
:1:26: error: OpenCL extension ‘cl_khr_fp64′ is unsupported.
#pragma OPENCL EXTENSION cl_khr_fp64 : enable
error: front end compiler failed build.
PARALUTION platform is initialized
Accelarator backend : OpenCL
OpenCL is not Initialized
I am sure that OpenCL is properly installed in the system, and I am fairly sure I am providing the correct include and linker paths.
Any ideas why I am getting this error?
Thanks in advance,
PS. Just to clarify, Paralusion still works, just not on the GPU
December 5, 2015 at 15:12 #1330
- This topic was modified 2 years, 7 months ago by Matthaios.
your GPU does not support double precision (64bit).
NicoDecember 6, 2015 at 21:31 #1331
The graphics card on this machine is an Nvidia GTX 970, so I think that it supports double precision with the current drivers.
This is the OpenCL device info I am getting :
that also confirms that ‘cl_khr_fp64′ extension is supported.
I just noticed in the Paralution documentation that only Nvidia OpenCL 1.1 is supported? May this be the reason for the error I am getting?
December 7, 2015 at 09:36 #1333
- This reply was modified 2 years, 7 months ago by Matthaios.
OpenCL 1.2 as well as 2.0 standard should also be supported. Are you using a clean install with only NVIDIA OpenCL? Or is it possible, that you are linking to an out-dated OpenCL library / compiler?
Could you check where the binary links to by “ldd <binary>” and verify that this is the right library? What NVIDIA drivers are you using for the GTX970 (do “nvidia-smi” to find out)?
NicoDecember 15, 2015 at 18:26 #1334
Thanks for your response and sorry for taking so long to reply to you.
I have not installed OpenCL from anywhere else but NVIDIA.
The binary seems to be linking on : C:\windows\system32\OPENCL.DLL
and form the properties of this file I get version : 188.8.131.52
I have the latest drivers : R359.06 (r358_00-187) / 10.18.13.5906 (11-24-2015)
I am working on a windows machine, so I used the “Dependences Walker” and “GPU Caps Viewer” to get this information.
By the way, if I compile the Cuda version of Paralution is working fine.
Please let me know if you need any more information or if there is any other test I can do?
MatthaiosDecember 15, 2015 at 20:45 #1337
sounds correct to me. I just checked our nvidia servers opencl file, and it also shows v184.108.40.206 but is located in NVIDIA Corporation\OpenCL directory. Can you check if you can run (double precision) SDK examples from NVIDIA?
If yes, can you also run them after re-compiling?
You must be logged in to reply to this topic.