cancel
Showing results for 
Search instead for 
Did you mean: 

Archives Discussions

ebfe
Journeyman III

HelloCL: clGetPlatformIDs() fails with undefined error value

Output of HelloCL:

HelloCL!
Getting Platform Information
Platform::get() failed (-1000)
Creating a context AMD platform
Speicherzugriffsfehler

 

None of the examples work, running Ubuntu9.04 with fglrx 8.68.2 on a HD4850

0 Likes
3 Replies
omkaranathan
Adept I

Are you able to run the CAL samples? Could you run the 'FindNumDevices' sample and post the results? 

Also the output of command line 'glxinfo | grep direct'

0 Likes

And, 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]/x86/libatiocl32.so into the vendors folder:

sudo ln -sf [INSTALLDIR]/x86/libatiocl32.so /usr/lib/OpenCL/vendors/libatiocl32.so

d. For 64-bit installations, you also must symlink

[INSTALLDIR]/x86_64/libatiocl64.so to the vendors folder:

sudo ln -sf [INSTALLDIR]/x86_64/libatiocl64.so /usr/lib/OpenCL/vendors/libatiocl64.so



0 Likes

ebfe,
Uninstall the sdk, make sure everything is cleanly removed from the installation directories and then reinstall the SDK. This should fix this issue.
0 Likes