cancel
Showing results for 
Search instead for 
Did you mean: 

Archives Discussions

pavandsp
Adept I

Error in Getting Platforms

Hi 

I am getting error while executing TemplateC(sample of SDK OpenCL v2.0) .it reports

Error :Getting Platforms.(clGetPlatformIDs)

Error:Setting Kernal argument.(output)

I am getting output as 0.

My Config:Ubuntu 9.10,AMD Cpu,32bit os.

Please let me know if i missed any settings related to platform.

Thanks

Pavan

0 Likes
7 Replies
genaganna
Journeyman III

Originally posted by: pavandsp Hi 

 

I am getting error while executing TemplateC(sample of SDK OpenCL v2.0) .it reports

 

Error :Getting Platforms.(clGetPlatformIDs)

 

Error:Setting Kernal argument.(output) I am getting output as 0.

 

My Config:Ubuntu 9.10,AMD Cpu,32bit os.

 

Please let me know if i missed any settings related to platform.

 

 

PavanDSP,

             Ubuntu 9.10 is not officially supported.  Some users were able to run with specific kernel of 9.10. See following post for more information on Ubuntu.

http://forums.amd.com/forum/messageview.cfm?catid=328&threadid=124182&forumid=9

0 Likes

Hi 

I tested now in Ubuntu 9.04 with 2.6.28-11 kernel .

I found the following error while make Opencl

In file included from MandelbrotDisplay.cpp:98:

../../../../../include/GL/glew.h:1138:20: error: GL/glu.h: No such file or directory

In file included from MandelbrotDisplay.cpp:99:

../../../../../include/GL/glut.h:62:19: error: GL/gl.h: No such file or directory

Indeed I see these file are not there in include/GL/
What shall I do?should i install the below package or need to get the headers downloaded ?
libglu1-mesa-dev 7.4-0ubuntu3.2
Also the same problem  persists (Error :Getting Platforms.(clGetPlatformIDs)while trying to execute the standalone TemplateC
Thanks in advance
Pavan
0 Likes

Originally posted by: pavandsp Hi

I tested now in Ubuntu 9.04 with 2.6.28-11 kernel .

I found the following error while make Opencl

In file included from MandelbrotDisplay.cpp:98:

../../../../../include/GL/glew.h:1138:20: error: GL/glu.h: No such file or directory

In file included from MandelbrotDisplay.cpp:99:

../../../../../include/GL/glut.h:62:19: error: GL/gl.h: No such file or directory

Indeed I see these file are not there in include/GL/
What shall I do?should i install the below package or need to get the headers downloaded ?
libglu1-mesa-dev 7.4-0ubuntu3.2
Also the same problem  persists (Error :Getting Platforms.(clGetPlatformIDs)while trying to execute the standalone TemplateC
Thanks in advance
Pavan

OpenGL is not there on your system. i.e why you are getting these errors (GL/gl.h and GL/glu.h not found )

 

In the case TemplateC, you may be facing ICD issue. 

You must register the OpenCL ICD; otherwise, 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

Hi Genaganna,

Thanks for the reply!

I have downloaded glut and SDK is build with no errors.

While executing HelloCL I got the following error 

./HelloCL

HelloCL!

Getting Platform Information

Platform::get() failed (-1000)

Creating a context AMD platform

Segmentation fault.

I have registed IDC by the following command:sudo ln -sf [INSTALLDIR]/x86/libatiocl32.so /usr/lib/OpenCL/vendors/libatiocl32.so

by exporting 

export INSTALLDIR=/home/myname/ati-stream-sdk-v2.0-lnx32/lib

Please let me know why i am still facing this errors.

Thank you Very much.

Regards

Pavan



0 Likes

Just for Info I am working in x86 machine 32 bit

0 Likes

Originally posted by: pavandsp Just for Info I am working in x86 machine 32 bit

 

It looks like ICD is not registered properly.

0 Likes

you can try my packages. download links are bellow.

0 Likes