cancel
Showing results for 
Search instead for 
Did you mean: 

Archives Discussions

kayrick
Journeyman III

Opencl SDK 2.0 installing problems

/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.

0 Likes
10 Replies
nou
Exemplar

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"

0 Likes

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).

0 Likes

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.

0 Likes

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)

 

 

0 Likes

did it create OCL*.so in /tmp? try run this

while [ 1 ]; do ps aux | grep 'clc' | grep -v grep ; done

and in another shell run some CL sample. it should catch if it run compiler. second error -11 cause missing builtins_*.bc in lib

0 Likes

 while [ 1 ]; do ps aux | grep 'clc' | grep -v grep ; done
kayrick  16355  0.0  0.0  64476  1160 pts/12   S+   12:20   0:00 sh -c /usr/lib/bin/x86_64/clc   --emit=llvmbc --march=x86-64 -o "/tmp/OCL0iSf0e.bc" "/tmp/OCL0iSf0e.cl" 1> "/tmp/OCL0iSf0e.log" 2>&1

 

All OCL*.so in /tmp have been created by older sdk versions.

0 Likes

kayrick,

The environment variable $ATISTREAMSDKROOT is not among the ones u listed in your post. Did you not set it or just missed in the post?

0 Likes

Originally posted by: omkaranathan kayrick,

 

The environment variable $ATISTREAMSDKROOT is not among the ones u listed in your post. Did you not set it or just missed in the post?

 

 

Thank you. This solves problems with samples.

0 Likes

ok can you run manualy that compilation? /usr/lib/bin/x86_64/clc   --emit=llvmbc --march=x86-64 -o "/tmp/OCL0iSf0e.bc" "some_kernel_file.cl"

 

0 Likes

 ./ati-stream-sdk/bin/x86_64/clc   --emit=llvmbc --march=x86-64 -o "/tmp/OCL0iSf0e111.bc" ati-stream-sdk/samples/opencl/cl/app/Mandelbrot/Mandelbrot_Kernels.cl

 

This works fine.

ls /tmp/OCL0iSf0e111.bc
/tmp/OCL0iSf0e111.bc

0 Likes