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
when trying to create a context.
-1 probably is CL_DEVICE_NOT_FOUND.
Additionally fglrxinfo only works with DISPLAY=:0
Error: unable to open display (null)
$ export DISPLAY=:0
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.
46713 frames in 5.0 seconds