4 Replies Latest reply on Jan 23, 2018 5:04 AM by aotto1968

    AMDAPPSDK-3.0 installation issue

    aotto1968

      hi everybody, this is my first post…

       

      1. > uname -a
      Linux linux02 4.4.104-39-default #1 SMP Thu Jan 4 08:11:03 UTC 2018 (7db1912) x86_64 x86_64 x86_64 GNU/Linux

       

      2. > cat /etc/os-release 
      NAME="openSUSE Leap"
      VERSION="42.3"
      ID=opensuse
      ID_LIKE="suse"
      VERSION_ID="42.3"
      PRETTY_NAME="openSUSE Leap 42.3"
      ANSI_COLOR="0;32"
      CPE_NAME="cpe:/o:opensuse:leap:42.3"
      BUG_REPORT_URL="https://bugs.opensuse.org"
      HOME_URL="https://www.opensuse.org/"

      3. NON-root installation of AMDAPPSDK-3.0

       

      4. > echo $AMDAPPSDKROOT
      /home/XXX/AMDAPPSDK-3.0

      5. my system has NO !! amd gpu installed

       

      6. > which clinfo 
      /home/XXX/bin/clinfo
      > ls -al /home/XXX/bin/clinfo
      lrwxrwxrwx 1 XXX XXX 41 22. Jan 09:50 /home/XXX/bin/clinfo -> /home/XXX/AMDAPPSDK-3.0/bin/x86_64/clinfo

       

      7. > clinfo  
      clinfo: /usr/lib64/libOpenCL.so.1: no version information available (required by clinfo)
      clinfo: /usr/lib64/libOpenCL.so.1: no version information available (required by clinfo)
      terminate called after throwing an instance of 'cl::Error'
        what():  clGetPlatformIDs
      Abgebrochen (Speicherabzug geschrieben)

      ERROR > I get a CORE DUMP (Speicherabzug geschrieben)

       

      → this is not nice :-)

        • Re: AMDAPPSDK-3.0 installation issue
          aotto1968

          mystic…

           

          > LD_PRELOAD=/home/XXX/AMDAPPSDK-3.0/lib/x86_64/sdk/libOpenCL.so clinfo 
          ERROR: ld.so: object '/home/XXX/AMDAPPSDK-3.0/lib/x86_64/sdk/libOpenCL.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
          clinfo: /usr/lib64/libOpenCL.so.1: no version information available (required by clinfo)
          clinfo: /usr/lib64/libOpenCL.so.1: no version information available (required by clinfo)
          terminate called after throwing an instance of 'cl::Error'
            what():  clGetPlatformIDs
          Abgebrochen (Speicherabzug geschrieben)

           

          1) is this a 32/64 bit issue ???

          2) why I have a global "/usr/lib64/libOpenCL.so.1" and a local "AMDAPPSDK-3.0/lib/x86_64/sdk/libOpenCL.so" file?

            → which I should use ?

          3) LD_LIBRARY_PATH is NOT set…



            • Re: AMDAPPSDK-3.0 installation issue
              aotto1968

              important information !!

               

              > rpm -qf /usr/lib64/libOpenCL.so.1
              nvidia-computeG03-340.104-11.1.x86_64

              the library "/usr/lib64/libOpenCL.so.1" is from nvidia…

               

              → so, now the next question… WHY does the AMD tool "clinfo" not using the AMD library "/home/XXX/AMDAPPSDK-3.0/lib/x86_64/sdk/libOpenCL.so" ???

                • Re: AMDAPPSDK-3.0 installation issue
                  aotto1968

                  library issue solved… but core still exist…

                   

                  > export LD_LIBRARY_PATH=/home/XXX/AMDAPPSDK-3.0/lib/x86_64/sdk
                  > ldd /home/XXX/AMDAPPSDK-3.0/bin/x86_64/clinfo                
                          linux-vdso.so.1 (0x00007ffc214cb000)
                          librt.so.1 => /lib64/librt.so.1 (0x00007f4a22156000)
                          libm.so.6 => /lib64/libm.so.6 (0x00007f4a21e59000)
                          libdl.so.2 => /lib64/libdl.so.2 (0x00007f4a21c55000)
                          libOpenCL.so.1 => /home/XXX/AMDAPPSDK-3.0/lib/x86_64/sdk/libOpenCL.so.1 (0x00007f4a21a4e000)
                          libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x00007f4a21837000)
                          libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f4a2161a000)
                          libc.so.6 => /lib64/libc.so.6 (0x00007f4a21279000)
                          /lib64/ld-linux-x86-64.so.2 (0x00007f4a2235e000)
                  > clinfo 
                  terminate called after throwing an instance of 'cl::Error'
                    what():  clGetPlatformIDs
                  Abgebrochen (Speicherabzug geschrieben)

                • Re: AMDAPPSDK-3.0 installation issue
                  aotto1968

                  nasty "LD_PRELOAD" issue…

                   

                  > LD_PRELOAD=/home/XXX/AMDAPPSDK-3.0/lib/x86_64/sdk/libOpenCL.so clinfo 

                  ERROR: ld.so: object '/home/XXX/AMDAPPSDK-3.0/lib/x86_64/sdk/libOpenCL.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.

                   

                  fails because "libOpenCL.so" is a symlink and NOT the real library "libOpenCL.so.1"