Hallo!
First of all I need to run
export DISPLAY=[my IP]:0
or all samples will end with a segfault!
With DISPLAY set I got it working for CPU devices, but I also have a HD4850 and I get a
ERROR: clCreateContextFromType(-1)
when trying to create a context.
-1 probably is CL_DEVICE_NOT_FOUND.
Additionally fglrxinfo only works with DISPLAY=:0
$ fglrxinfo
Error: unable to open display (null)
$ export DISPLAY=:0
$ fglrxinfo
display: :0.0 screen: 0
OpenGL vendor string: ATI Technologies Inc.
OpenGL renderer string: ATI Radeon HD 4800 Series
OpenGL version string: 3.2.9239
The fglrx driver is setup properly.
$ glxgears
46713 frames in 5.0 seconds
Any suggestions?
Could you run the CAL sample FindNumDevices to ensure that driver is installed properly and is able to detect the device?
Did you install the recommended Hotfix driver?
Originally posted by: omkaranathan Could you run the CAL sample FindNumDevices to ensure that driver is installed properly and is able to detect the device?
Did you install the recommended Hotfix driver?
Well...
The cal sample tells me 0 devices.
The cpp sample HelloCL works:
$ ./HelloCL
HelloCL!
Getting Platform Information
Creating a context AMD platform
Getting device info
Loading and compiling CL source
Running CL program
Done
Passed!
The c sample MatrixTranspose doesn't work:
Error: clCreateContextFromType failed. Error code : CL_DEVICE_NOT_FOUND
My own program, that also does some computations, works - but only for CPU.
And yes hotfix driver is installed and running as far as I can see (glxgears, fglrxinfo).
Originally posted by: Tasp
Well... The cal sample tells me 0 devices.
The driver is not installed properly. What is the output of 'glxinfo | grep direct' command line?
Which OS are you running OpenCL? If you are running a supported OS, (OpenSuse 11.0 or Ubuntu 9.04), try uninstalling the drivers and reinstall from scratch.
The cpp sample HelloCL works:
HelloCL sample is written to run in CPU by default.
Oops, I just noticed the OS, Ubuntu 9.10 is not officially supported, you could be facing problems with it.
This thread would give you some info http://forums.amd.com/forum/messageview.cfm?catid=328&threadid=124182&forumid=9
I use Ubuntu 9.10, I know it's unsupported.
$ echo $DISPLAY
:0
$ glxinfo | grep direct
direct rendering: Yes
I need to set DISPLAY=127.0.0.1:0
But then:
$ echo $DISPLAY
127.0.0.1:0
$ glxinfo
Error: unable to open display 127.0.0.1:0
X server does not listen on TCP socket. export DISPLAY=:0. should work.
fgl_glxgears is better test if 3D aceleration work.
HelloCL default run on CPU. you can try other examples run with --device cpu to run on CPU too.
i think you should install older kernel download deb package and install.
DISPLAY=:0.
ups sorry :0 without dot.
i think you must downgrade kernel. or wait to catalyst 10.1 which hopefully will support ubuntu 9.10.
Thanks for the information.
Can you give a hint when 10.1 will be released?