cancel
Showing results for 
Search instead for 
Did you mean: 

Archives Discussions

licoah
Journeyman III

Problem by running HelloCL

Hello

I run the sample HelloCL, then a message is got:

HelloCL!
Creating a context
Segmentation fault

0 Likes
6 Replies
omkaranathan
Journeyman III

Problem by running HelloCL

Please post details like system configuration, steps followed etc to make it possible to identify the problem

0 Likes
licoah
Journeyman III

Problem by running HelloCL

My system is: opensuse 11.2, Radeon HD4870 , AMD opteron 2222

 

and I have created simlink to libatiocl64.so in /usr/lib/OpenCL/vendors directory.

But I still get this:

HelloCL!
Getting Platform Information
Segmentation fault

0 Likes
omkaranathan
Journeyman III

Problem by running HelloCL

licoah,

OpenSuse 11.2 is not an officially supported OS currenlty. You might face issues with the unsupported OS'. Some have reported that adding 'nopat' option in kernel arguments resolved segmentation fault in some of the linux flavors.

Refer to these threads for more info.

http://forums.amd.com/devforum/messageview.cfm?catid=390&threadid=120456&STARTPAGE=2&FTVAR_FORUMVIEWTMP=Linear&#lastunread

http://forums.amd.com/devforum/messageview.cfm?catid=390&threadid=123276

http://forums.amd.com/devforum/messageview.cfm?catid=390&threadid=121946

0 Likes
IRSA
Journeyman III

Problem by running HelloCL

hello omkaranathan,

when runing the HelloCL sample, it is ok. But when changing CL_CONTEXT_TYPE_CPU to CL_CONTEXT_TYPE_GPU, an error occurs, the error message is:

Context::Context() failed (-1)

What is the problem? Thanks a lot!

0 Likes
genaganna
Journeyman III

Problem by running HelloCL

Originally posted by: IRSA hello omkaranathan,

when runing the HelloCL sample, it is ok. But when changing CL_CONTEXT_TYPE_CPU to CL_CONTEXT_TYPE_GPU, an error occurs, the error message is:

Context::Context() failed (-1)

What is the problem? Thanks a lot!

IRSA,

       You are getting CL_DEVICE_NOT_FOUND error. It looks like CAL driver not installed properly. Please installer driver from http://developer.amd.com/gpu/ATIStreamSDK/Pages/default.aspx.  After installing driver, Please run CAL Sample FindNumDevices and it should show number of GPU present on your system.

0 Likes
IRSA
Journeyman III

Problem by running HelloCL

Thanks a lot. Problems have been solved, as you say, the old driver is the source of the problem.

0 Likes