Hello
I run the sample HelloCL, then a message is got:
HelloCL!
Creating a context
Segmentation fault
Please post details like system configuration, steps followed etc to make it possible to identify the problem
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
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
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!
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.
Thanks a lot. Problems have been solved, as you say, the old driver is the source of the problem.