10 Replies Latest reply on Jan 17, 2010 8:24 AM by kayrick

    Opencl SDK 2.0 installing problems

    kayrick
      /usr/bin/ld: cannot find -laticalrt

      I am trying to install  ati-stream-sdk-v2.0-lnx64 on linux system.

      lsb_release  -a
      LSB Version:    :core-3.1-amd64:core-3.1-ia32:core-3.1-noarch:graphics-3.1-amd64:graphics-3.1-ia32:graphics-3.1-noarch
      Distributor ID: CentOS
      Description:    CentOS release 5 (Final)
      Release:        5
      Codename:       Final

      I defined all required environment variables.

      echo $ATISTREAMSDKSAMPLESROOT
      /home/kayrick/ati-stream-sdk/

      echo $LD_LIBRARY_PATH
      /home/kayrick/ati-stream-sdk/lib/x86_64/:/usr/lib64/openmpi/1.2.5-gcc/lib

      ls /usr/lib/OpenCL/vendors/
      libatiocl32.so  libatiocl64.so

      but make in root sdk folder fails:

      Building build/debug/x86_64/cal_idct
      g++ -o build/debug/x86_64/cal_idct build/debug/x86_64//cal_idct.o build/debug/x86_64//Timer.o build/debug/x86_64//Samples.o -lpthread -ldl -L/usr/X11R6/lib   -laticalrt  -laticalcl    -L../../../../lib/x86_64 
      /usr/bin/ld: cannot find -laticalrt
      collect2: ld returned 1 exit status

      Opencl samples also don't work.

       

      ./HelloCL
      HelloCL!
      Getting Platform Information
      Creating a context AMD platform
      Getting device info
      Loading and compiling CL source
      Program::build() failed (-11).


      How can I fix this problem? I belive, I need some libs for -laticalrt  -laticalcl, but I couldn't find them in sdk.

        • Opencl SDK 2.0 installing problems
          nou

          use make in samples/opencl direcotry because you most likely do not have radeon card sou you can not build cal samples and run cal/opencl samples on GPU. libatical*.so is included in catalyst driver.

          issue with HelloCL is maybe related with this http://forums.amd.com/devforum/messageview.cfm?catid=390&threadid=125169&highlight_key=y&keyword1=centos

          provide "ldd libOpenCL.so" and "ldd HelloCL"

            • Opencl SDK 2.0 installing problems
              kayrick

              Yes, make works fine in samples/opencl, but I still can not run any opencl appications.

               

              I don't think, that my problem connected with ICD, because

              HelloCL fails on building opencl program, not on context initialization.

              Samples from older sdk versions could be executed (before sdk time limit expired).

                • Opencl SDK 2.0 installing problems
                  nou

                  no i do not mind ICD but problem with GLIBC. for that i want ouput of ldd. -11 from buil mean it can not run clc and llc.

                    • Opencl SDK 2.0 installing problems
                      kayrick

                      ldd HelloCL
                              linux-vdso.so.1 =>  (0x00007ffff7ffe000)
                              libpthread.so.0 => /lib64/libpthread.so.0 (0x000000365a800000)
                              libdl.so.2 => /lib64/libdl.so.2 (0x000000365a400000)
                              libOpenCL.so => /home/kayrick/ati-stream-sdk/lib/x86_64/libOpenCL.so (0x00007ffff7dd6000)
                              libstdc++.so.6 => /usr/lib64/libstdc++.so.6 (0x000000362f800000)
                              libm.so.6 => /lib64/libm.so.6 (0x000000365a000000)
                              libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x000000362f400000)
                              libc.so.6 => /lib64/libc.so.6 (0x0000003659c00000)
                              /lib64/ld-linux-x86-64.so.2 (0x0000003659800000)
                              librt.so.1 => /lib64/librt.so.1 (0x000000365c800000)

                       

                      ldd clc
                              linux-vdso.so.1 =>  (0x00007ffff7ffe000)
                              libdl.so.2 => /lib64/libdl.so.2 (0x000000365a400000)
                              librt.so.1 => /lib64/librt.so.1 (0x000000365c800000)
                              libstdc++.so.6 => /usr/lib64/libstdc++.so.6 (0x000000362f800000)
                              libm.so.6 => /lib64/libm.so.6 (0x000000365a000000)
                              libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x000000362f400000)
                              libpthread.so.0 => /lib64/libpthread.so.0 (0x000000365a800000)
                              libc.so.6 => /lib64/libc.so.6 (0x0000003659c00000)
                              /lib64/ld-linux-x86-64.so.2 (0x0000003659800000)

                      ldd llc
                              linux-vdso.so.1 =>  (0x00007ffff7ffe000)
                              libdl.so.2 => /lib64/libdl.so.2 (0x000000365a400000)
                              librt.so.1 => /lib64/librt.so.1 (0x000000365c800000)
                              libstdc++.so.6 => /usr/lib64/libstdc++.so.6 (0x000000362f800000)
                              libm.so.6 => /lib64/libm.so.6 (0x000000365a000000)
                              libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x000000362f400000)
                              libpthread.so.0 => /lib64/libpthread.so.0 (0x000000365a800000)
                              libc.so.6 => /lib64/libc.so.6 (0x0000003659c00000)
                              /lib64/ld-linux-x86-64.so.2 (0x0000003659800000)