cancel
Showing results for 
Search instead for 
Did you mean: 

Archives Discussions

Tasp
Journeyman III

Ubuntu 9.10 CPU working, GPU not

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?

0 Likes
10 Replies
omkaranathan
Adept I

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?

0 Likes

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).

0 Likes

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.

0 Likes

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

0 Likes

I use Ubuntu 9.10, I know it's unsupported.

$ echo $DISPLAY
:0
$ glxinfo | grep direct
direct rendering: Yes

But as I have already written! With this setting all opencl samples result in segfault!!!

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

Could this be a hint to the real problem?

 

0 Likes

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.

0 Likes
Tasp
Journeyman III

DISPLAY=:0.

FindNumDevices -> 0
glxinfo -> Error: unable to open display :0.

0 Likes

ups sorry :0 without dot.

i think you must downgrade kernel. or wait to catalyst 10.1 which hopefully will support ubuntu 9.10.

0 Likes

There is a known issue with Ubuntu 9.10 and Stream 2.0 that should be fixed in the upcoming Catalyst version. This is why 9.10 is not yet a supported OS.
0 Likes

Thanks for the information.
Can you give a hint when 10.1 will be released?

0 Likes