Hi
Now that I am convinced investing time in OpenCL is going to pay, just running my first program from APP SDK 2.4(on RHEL 5.5).
1- I have installed SDK in /root/AMD
2- The icd-registration is unzipped in/etc:
Here are the contents of icd-registration:
[root@localhost /]# cd etc/OpenCL/vendors
[root@localhost vendors]# ls
atiocl32.icd atiocl64.icd
3- The exports are like this:
i) export AMDAPPSDKSAMPLESROOT=/root/AMD/AMD-APP-SDK-v2.4-lnx32
Forgot to mention my System detail:
OS: RHEL 5.5
Propcessor: Intel Core2Duo
Graphics Card: ATI HD5450
try copy libamdocl32.so into /usr/lib
or run clinfo with cltrace
strace ./clinfo 2> trace
cat trace | grep amdocl
Originally posted by: nou try copy libamdocl32.so into /usr/lib
or run clinfo with cltrace
strace ./clinfo 2> trace cat trace | grep amdocl
Thanks for your reply.
I copied the library to /usr/lib and
did the following but still having the same issue:
[root@localhost x86]# ls
clinfo
[root@localhost x86]# strace ./clinfo 2> trace cat trace | grep amdocl
[root@localhost x86]#
now atiocl32.icd is strange. with 2.4 it should be amdocl32.icd
but name of file is irrelevant it matter what is inside this files. it should be libamdocl32.so and libamdocl64.so as libOpenCL.so open this files in /etc/OpenCL/vendors and try load libraries which names are in this files.
Originally posted by: nou now atiocl32.icd is strange. with 2.4 it should be amdocl32.icd
but name of file is irrelevant it matter what is inside this files. it should be libamdocl32.so and libamdocl64.so as libOpenCL.so open this files in /etc/OpenCL/vendors and try load libraries which names are in this files.
Thanks once again!
Content of /etc/OpenCL/vendors are following two files:
atiocl32.icd ( when I open it in gedit, contains a file name: libatiocl32.so)
atiocl64.icd ( when I open in gedit, contains a filename:libatiocl64.so)
What should I do now?
SOLVED
Editted the contents of the two files in etc/opencl/vendor raplacing ati to amd.
Thanks for helping me NOU!
Originally posted by: nou try copy libamdocl32.so into /usr/lib
or run clinfo with cltrace
strace ./clinfo 2> trace
cat trace | grep amdocl
These two comands dont show any output except that a trace file appears in /root/AMD/AMD-APP-SDK...../bin/x86/
When I run clinfo I am having the same output:
terminate called after throwing an instance of 'cl::Error'
what(): clGetPlatformIDs
Aborted