I run HelloCL in ati-stream-sdk-v2.01-lns64/samples/opencl/bin/x86_64 on ubuntu9.10(amd64). This program say as follows.
HelloCL!
Getting Platform Information
Platform::get() failed (-1001)
I think that I have a trouble about get function. Please tell me how to collect this problem.
My Environment:
CPU AthlonIIx4, Mem DDR2/800 4GByte, GPU HD4870+HD5770, OS Ubuntu9.10(amd64), Driver ati-driver-installer-10-2-x86.x86_64
kalab1998,
Did you do the ICD registration?
You must register the OpenCL ICD; samples and other applications will fail to execute if this is not done. To register the ICD:
a. If one does not exist, create a folder /usr/lib/OpenCL/vendors.
b. Create the /usr/lib/OpenCL/vendors folder, if does not already exist.
c. Symlink [INSTALLDIR]/lib/x86/libatiocl32.so into the vendors folder:
sudo ln -sf [INSTALLDIR]/lib/x86/libatiocl32.so /usr/lib/OpenCL/vendors/libatiocl32.so
d. For 64-bit installations, you also must symlink
[INSTALLDIR]/lib/x86_64/libatiocl64.so to the vendors folder:
sudo ln -sf [INSTALLDIR]/lib/x86_64/libatiocl64.so /usr/lib/OpenCL/vendors/libatiocl64.so
Thanks, omkaranathan.
HelloCL program run correctly by your advice.