OpenCL extension 'cl_khr_fp64' is unsupported

Front page Forums Installation OpenCL extension 'cl_khr_fp64' is unsupported

This topic contains 5 replies, has 2 voices, and was last updated by  nico 2 years ago.

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1328

    Matthaios
    Member

    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
    CL_BUILD_PROGRAM_FAILURE
    OCL Buildlog:
    :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,

    Best wishes,

    Matthaios

    PS. Just to clarify, Paralusion still works, just not on the GPU

    • This topic was modified 2 years ago by  Matthaios.
    #1330

    nico
    Participant

    Hi Matthaios,

    your GPU does not support double precision (64bit).

    Best regards,
    Nico

    #1331

    Matthaios
    Member

    Hi Nico,

    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 :
    https://www.dropbox.com/s/ulxwdrb5c5cmq30/OpenCL_pl_inf.png?dl=0
    that also confirms that ‘cl_khr_fp64′ extension is supported.

    Best wishes,
    Matthaios

    EDIT:
    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?

    • This reply was modified 2 years ago by  Matthaios.
    #1333

    nico
    Participant

    Hey 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)?

    Best regards
    Nico

    #1334

    Matthaios
    Member

    Hi Nico,

    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 : 1.2.11.0

    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?

    Best wishes,
    Matthaios

    • This reply was modified 2 years ago by  Matthaios.
    • This reply was modified 2 years ago by  Matthaios.
    #1337

    nico
    Participant

    Hi Matthaios,

    sounds correct to me. I just checked our nvidia servers opencl file, and it also shows v1.2.11.0 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?

    Best regards,
    Nico

Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.