The problem might be that you do not have libOpenCL.so.1 in one of the default driver installation directories.
You should check LIBGL_DRIVERS_PATH directories (and parent directories). For example if it is /usr/lib64/dri check /usr/lib64/dri && /usr/lib64 for libOpenCL.so.1.
If the environment variable is not defined or the library is not installed, then maybe something in the installation of the driver is wrong and you should uninstall the display driver and re-install it.
Thanks for your reply.
I'm using the default driver for my Intel HD gpu. The default driver didn't install with the environment variable setup and doesn't include the libOpenCL file.
Seems I need to copy & setup them manually.
However, seems Intel doesn't provide OpenCL support for its GPU under Linux.
Is that possible to use OpenCL( in CodeXL) with CPU only, without using the graphic driver?
You can work with CodeXL and CPU but you will not be able to debug kernels on the CPU.
I am having the same problem. AMDTTeapot runs fine from the command line,
but fails to debug in CodeXL. Error is
The following system libraries are missing: libOpenCL.so.1
The file exist and is pointed to by LIBGL_DRIVERS_PATH.
The permissions are fine, and I have the same problem when
running as root.
4 HD 7970 GPUs
$ echo $LIBGL_DRIVERS_PATH
$ locate libOpenCL.so
From the output you gave it is not clear if LIBGL_DRIVERS_PATH value is for root or not (usually root is marked with #),
Can you please verify that as root LIBGL_DRIVERS_PATH also shows the correct path for the libOpenCL.so directories (a common problem that root env vars are defined differently)
This is the setting for root, which is the same as for the non-root user.
$ su -
# echo $LIBGL_DRIVERS_PATH
I tired running CodeXL as root, but got the exact same behavior. I forgot to mention
that the OpenCL platforms and devices are missing in the tools->system information window.
However, the teapot example runs with out problem with CPU: Time-based Sampling and
GPU: Performance Counters.
Also tried running CodeXL logged into gnome as root. Same behavior. Does CodeXL have
a default path that it checks for libOpenCL.so.1? I could try creating a symlink, if I knew where
to put the link.
Thanks for looking into this.