Compute on Linux, problem with CL

Greg Holmberg's Avatar

Greg Holmberg

16 Oct, 2017 06:59 PM

I tried running "geekbench4 --compute" on my Linux system, and got this error message:

    Internal error message: clGetPlatformIDs.

OS: Ubuntu 16.04.3 LTS 4.4.0-97-generic x86_64

Missing the OpenCL library or wrong version? Not sure...

  1. Support Staff 1 Posted by Colin on 16 Oct, 2017 10:05 PM

    Colin's Avatar


    Thanks for letting us know about this, and I'm sorry for any trouble caused by this issue. I'm not certain what could be causing this problem based on the error message. Could you post a link to a CPU result from your device on the Geekbench Browser so that I can take a closer look at your device's setup?

    Primate Labs Inc.

  2. 2 Posted by Greg Holmberg on 17 Oct, 2017 10:45 PM

    Greg Holmberg's Avatar
  3. 3 Posted by Greg Holmberg on 19 Oct, 2017 06:14 PM

    Greg Holmberg's Avatar

    Here's my third attempt at replying to this discussion. So far, the comments are not appearing in the discussion. I don't understand why. But here's my third and last attempt to give you the URL you asked for.

  4. Support Staff 4 Posted by Colin on 19 Oct, 2017 10:03 PM

    Colin's Avatar

    Hi Greg,

    Thank you. I'm looking into this issue now, though I would like to ask for some additional details to help us investigate more effectively. Could you let me know what Compute devices / graphics cards your system has, and if your graphics drivers are up to date? If they are not, that might be the cause of this issue.

    Regardless, I will let you know if I can find any more information to get your benchmarks up and running.

    All the best,
    Primate Labs Inc.

  5. 5 Posted by Greg Holmberg on 19 Oct, 2017 10:52 PM

    Greg Holmberg's Avatar

    It has no separate GPU, just the graphics integrated into the Intel Core i5-5200U, which is "HD Graphics 5500 (Broadwell GT2)" using the "i915" driver.

    The system updates daily. Running Ubuntu 16.04.3 LTS 4.4.0-97-generic x86_64.

    Is some implementation of OpenCL a part of the standard Ubuntu installation, or do I need to install it separately?

    I installed the clinfo command ("sudo apt-get install clinfo"). Running it, it says:

        Number of platforms 0

    In addition I did "ldd clinfo", which shows: => (0x00007ffd9a23b000) => /usr/lib/x86_64-linux-gnu/ (0x00007f2f10b32000) => /lib/x86_64-linux-gnu/ (0x00007f2f1092e000) => /lib/x86_64-linux-gnu/ (0x00007f2f10564000)
    /lib64/ (0x00007f2f10d3d000)

    So there is an implementation of the OpenCL library installed.

    I don't know anything about OpenCL myself, but perhaps this gives you some clues.


  6. 6 Posted by Greg Holmberg on 19 Oct, 2017 11:01 PM

    Greg Holmberg's Avatar

    Oh yeah, forgot to mention. I read the libopencl man-page, and it says there should be a directory "/etc/OpenCL/vendors". However, /etc/OpenCL does not exist on my system. Perhaps this is indicating that some additional package needs to be installed? Not sure...

    If the problem is just that Ubuntu doesn't support OpenCL out of the box, then may I suggest:
    1. a better error message, with a link to the next item.
    2. a knowledge-base article about what to do about this error message--i.e. how to install OpenCL.
    3. A note on the download page that you will need to install OpenCL.


  7. Support Staff 7 Posted by Colin on 20 Oct, 2017 05:36 PM

    Colin's Avatar

    Hi Greg,

    Thanks for providing so much detail. You will need to install some tools to allow OpenCL to run on your machine. Intel provides the resources you need on their website here, along with some instructions on their forums which may be useful here. After getting OpenCL set up on your system, the Geekbench benchmark should work without issue.

    All the best,

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:


Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac