3 Replies Latest reply on Nov 10, 2014 2:46 PM by nsakan

    Help needed, Ubuntu 14.04 and OpenCL 2.9-1 problem.

    nsakan

      I am not certain about the origin of the problem. I needed to switch to Ubuntu from reasons of some supported software, so this is my first try to install OpenCL on Unbuntu.

      I had no problem with previous versions on Debian installation.

      Although I managed to install latest catalyst driver and got expected behaviour of graphic card I had problems further on. The clinfo does not work, it breaks.

       

      =================================

      Hardware:

      AMD FX(tm)-6100 Six-Core Processor

      01:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Cape Verde XT [Radeon HD 7770/8760 / R7 250X]

      =================================

      Software / firmware:

      fglrx-14.301.1001          -  sucessfully installed, option to make platform specific package and install it.

      AMD-APP-SDK-v2.9-1.599.381-GA-linux64  - installation continues without problems but does not work.

      =================================

       

      TEST:

      =================================

      glxgears OK

      nsakan@nsakan-MS-7641:/opt/AMDAPPSDK-2.9-1/bin/x86_64$ glxgears

      17736 frames in 5.0 seconds = 3547.074 FPS

      17981 frames in 5.0 seconds = 3596.024 FPS

      18132 frames in 5.0 seconds = 3626.250 FPS

      =================================

      aticonf OK

      nsakan@nsakan-MS-7641:/opt/AMDAPPSDK-2.9-1/bin/x86_64$ aticonfig --lsa

      * 0. 01:00.0 AMD Radeon HD 7700 Series

       

      * - Default adapter

      =================================

      fglrxinfo OK

      nsakan@nsakan-MS-7641:/opt/AMDAPPSDK-2.9-1/bin/x86_64$ fglrxinfo

      display: :0.0  screen: 0

      OpenGL vendor string: Advanced Micro Devices, Inc.

      OpenGL renderer string: AMD Radeon HD 7700 Series

      OpenGL version string: 4.4.13084 Compatibility Profile Context 14.301.1001

      =================================

      clinfo problem!

      nsakan@nsakan-MS-7641:/opt/AMDAPPSDK-2.9-1/bin/x86_64$ ./clinfo

      terminate called after throwing an instance of 'cl::Error'

        what():  clGetPlatformIDs

      Aborted (core dumped)

       

      nsakan@nsakan-MS-7641:/opt/AMDAPPSDK-2.9-1/bin/x86_64$ ldd clinfo

          linux-vdso.so.1 =>  (0x00007fffc59f0000)

          libOpenCL.so.1 => /opt/AMDAPPSDK-2.9-1/lib/x86_64/libOpenCL.so.1 (0x00007f2bce738000)

          libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f2bce4e8000)

          libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f2bce1e0000)

          libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f2bcdfd8000)

          libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f2bcddc0000)

          libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f2bcd9f8000)

          /lib64/ld-linux-x86-64.so.2 (0x00007f2bce940000)

      =================================

       

      If I understand correctly, the libGL.so should be linked to the libGL.so.1 in /usr/lib/fglrx/ and /usr/lib32/fglrx/ (into their own directories, am I correct? The guide is here a little bit unclear and misleading).

      =================================

      nsakan@nsakan-MS-7641:/opt/AMDAPPSDK-2.9-1/bin/x86_64$ ls -alh /usr/lib/fglrx/

      total 81M

      drwxr-xr-x   6 root root 4,0K нов  7 01:56 .

      drwxr-xr-x 211 root root  36K нов  7 01:56 ..

      -rw-r--r--   1 root root  440 нов  7 01:40 10fglrx

      -rw-r--r--   1 root root    1 нов  7 01:40 alt_ld.so.conf

      drwxr-xr-x   2 root root 4,0K нов  7 01:56 bin

      drwxr-xr-x   2 root root 4,0K нов  7 01:56 dri

      drwxr-xr-x   4 root root 4,0K нов  7 00:10 etc

      -rw-r--r--   1 root root   32 нов  7 01:40 ld.so.conf

      -rw-r--r--   1 root root  13M нов  7 01:40 libamdhsasc64.so

      -rw-r--r--   1 root root  43M нов  7 01:40 libamdocl64.so

      -rw-r--r--   1 root root 1,3M нов  7 01:40 libAMDXvBA.cap

      lrwxrwxrwx   1 root root   17 нов  7 01:40 libAMDXvBA.so.1 -> libAMDXvBA.so.1.0

      -rw-r--r--   1 root root  11M нов  7 01:40 libAMDXvBA.so.1.0

      -rw-r--r--   1 root root 683K нов  7 01:40 libatiadlxx.so

      -rw-r--r--   1 root root  55K нов  7 01:40 libaticalcl.so

      -rw-r--r--   1 root root  12M нов  7 01:40 libaticaldd.so

      -rw-r--r--   1 root root  64K нов  7 01:40 libaticalrt.so

      lrwxrwxrwx   1 root root   16 нов  7 01:40 libatiuki.so.1 -> libatiuki.so.1.0

      -rw-r--r--   1 root root 120K нов  7 01:40 libatiuki.so.1.0

      lrwxrwxrwx   1 root root   18 нов  7 01:40 libfglrx_dm.so.1 -> libfglrx_dm.so.1.0

      -rw-r--r--   1 root root  11K нов  7 01:40 libfglrx_dm.so.1.0

      lrwxrwxrwx   1 root root   10 нов  7 01:40 libGL.so -> libGL.so.1

      lrwxrwxrwx   1 root root   12 нов  7 01:40 libGL.so.1 -> libGL.so.1.2

      -rw-r--r--   1 root root 848K нов  7 01:40 libGL.so.1.2

      lrwxrwxrwx   1 root root   14 нов  7 01:40 libOpenCL.so -> libOpenCL.so.1

      -rw-r--r--   1 root root  26K нов  7 01:40 libOpenCL.so.1

      lrwxrwxrwx   1 root root   15 нов  7 00:10 libXvBAW.so.1 -> libXvBAW.so.1.0

      -rw-r--r--   1 root root  16K нов  7 01:40 libXvBAW.so.1.0

      -rwxr-xr-x   1 root root  11K нов  7 01:40 switchlibGL

      -rwxr-xr-x   1 root root  11K нов  7 01:40 switchlibglx

      drwxr-xr-x   3 root root 4,0K нов  7 00:09 xorg

      nsakan@nsakan-MS-7641:/opt/AMDAPPSDK-2.9-1/bin/x86_64$ ls -alh /usr/lib32/fglrx/

      total 76M

      drwxr-xr-x 3 root root 4,0K нов  7 01:56 .

      drwxr-xr-x 5 root root 4,0K нов  7 01:56 ..

      drwxr-xr-x 2 root root 4,0K нов  7 01:56 dri

      -rw-r--r-- 1 root root  11M нов  7 01:40 libamdhsasc32.so

      -rw-r--r-- 1 root root  42M нов  7 01:40 libamdocl32.so

      -rw-r--r-- 1 root root 1,3M нов  7 01:40 libAMDXvBA.cap

      lrwxrwxrwx 1 root root   17 нов  7 00:10 libAMDXvBA.so.1 -> libAMDXvBA.so.1.0

      -rw-r--r-- 1 root root 8,9M нов  7 01:40 libAMDXvBA.so.1.0

      -rw-r--r-- 1 root root 651K нов  7 01:40 libatiadlxx.so

      -rw-r--r-- 1 root root  45K нов  7 01:40 libaticalcl.so

      -rw-r--r-- 1 root root  12M нов  7 01:40 libaticaldd.so

      -rw-r--r-- 1 root root  52K нов  7 01:40 libaticalrt.so

      lrwxrwxrwx 1 root root   16 нов  7 01:40 libatiuki.so.1 -> libatiuki.so.1.0

      -rw-r--r-- 1 root root 112K нов  7 01:40 libatiuki.so.1.0

      -rw-r--r-- 1 root root 7,2K нов  7 01:40 libfglrx_dm.a

      -rw-r--r-- 1 root root 8,0K нов  7 01:40 libfglrx_dm.so.1.0

      lrwxrwxrwx 1 root root   12 нов  7 00:10 libGL.so.1 -> libGL.so.1.2

      -rw-r--r-- 1 root root 566K нов  7 01:40 libGL.so.1.2

      -rw-r--r-- 1 root root  29K нов  7 01:40 libOpenCL.so.1

      lrwxrwxrwx 1 root root   15 нов  7 00:10 libXvBAW.so.1 -> libXvBAW.so.1.0

      -rw-r--r-- 1 root root  12K нов  7 01:40 libXvBAW.so.1.0

      nsakan@nsakan-MS-7641:/opt/AMDAPPSDK-2.9-1/bin/x86_64$

      =================================

       

      Any sugestion is helpfull,

      Thank You.

      Sincerely,

      Nenad

        • Re: Help needed, Ubuntu 14.04 and OpenCL 2.9-1 problem.
          natasha

          As I understand, ./libGL.so* should be finally linked to ./fglrx/fglrx-libGL.so.1.2:

           

          > ls -alh /usr/lib64/ | grep 'libGL.so'

          -rwxr-xr-x   1 root root  376K Oct 25  2013 FGL.renamed.libGL.so.1.2.0

          lrwxrwxrwx   1 root root    21 Sep 26 20:55 libGL.so -> /usr/lib64/libGL.so.1

          lrwxrwxrwx   1 root root    23 Sep 26 20:55 libGL.so.1 -> /usr/lib64/libGL.so.1.2

          lrwxrwxrwx   1 root root    35 Sep 26 20:55 libGL.so.1.2 -> /usr/lib64/fglrx/fglrx-libGL.so.1.2

           

          > ls -alh /usr/lib/ | grep 'libGL.so'

          lrwxrwxrwx   1 root root   19 Sep 26 20:55 libGL.so -> /usr/lib/libGL.so.1

          lrwxrwxrwx   1 root root   21 Sep 26 20:55 libGL.so.1 -> /usr/lib/libGL.so.1.2

          lrwxrwxrwx   1 root root   33 Sep 26 20:55 libGL.so.1.2 -> /usr/lib/fglrx/fglrx-libGL.so.1.2

           

          > ls -alh /usr/lib64/fglrx/

          total 948K

          drwxr-xr-x   2 root root 4.0K Sep 26 20:55 .

          drwxr-xr-x 147 root root 136K Oct 22 15:43 ..

          -rw-r--r--   1 root root 789K Sep 26 20:55 fglrx-libGL.so.1.2

          -rwxr-xr-x   1 root root 7.4K Sep 26 20:55 switchlibGL

          -rwxr-xr-x   1 root root 3.1K Sep 26 20:55 switchlibglx

           

          > ls -alh /usr/lib/fglrx/

          total 556K

          drwxr-xr-x  2 root root 4.0K Sep 26 20:55 .

          drwxr-xr-x 87 root root  12K Oct 17 12:08 ..

          -rw-r--r--  1 root root 539K Sep 26 20:55 fglrx-libGL.so.1.2

           

          Your problem looks like a problem in paths.

          Those directories look strange: /usr/lib(32)/fglrx/ -- why dri, bin, etc, ... are inside fglrx?

          However, in other hand, fglrxinfo and glxgears work...

           

          And what is this: AMD-APP-SDK-v2.9-1.599.381-GA-linux64  - installation continues without problems but does not work?

           

          Did you try other versions of SDK?

           

          Sincerely,

          Natalia

          • Re: Help needed, Ubuntu 14.04 and OpenCL 2.9-1 problem.
            nsakan

            Thank You Natalia,

             

            I tried to make links to actual files, but there is no fglrx-libGL.so.1.2 in any of directories. I'll try to downgrade to older fglrx/SDK combination.

             

            Thank You very much,

            Sincerely,

            Nenad

            • Re: Help needed, Ubuntu 14.04 and OpenCL 2.9-1 problem.
              nsakan

              The downgrading to 2.9 instead of 2.9..1 solved everything.

               

              Thank You very much Natalia.

               

              Sincerely,

              Nenad