6 Replies Latest reply on Dec 19, 2013 2:20 PM by asteq

    libOpenCL.so.1 are missing




      I've just installed CodeXL 1.1 on Linux. When I tried to run the Teapot example, it said the libOpenCL is missing

      The following system libraries are missing: libOpenCL.so.1

      Please ask your system administrator to install the missing libraries or create symbolic links from the above paths to the place where the libraries are installed.

      I have installed AMD-APP-SDK and made sure libOpenCL.so.1 exists in /opt/AMDAPP/lib/x86_64/lib

      this line exists in my export



      My environment:

      Oracle Linux 6.4 x86-64

      CodeXL 1.1

      AMD APP SK 2.8




        • Re: libOpenCL.so.1 are missing

          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.

          • Re: libOpenCL.so.1 are missing

            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.


            Debian Wheezy

            4 HD 7970 GPUs






            $ echo $LIBGL_DRIVERS_PATH



            $ locate libOpenCL.so











              • Re: libOpenCL.so.1 are missing

                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)

              • Re: libOpenCL.so.1 are missing

                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.