cancel
Showing results for 
Search instead for 
Did you mean: 

Archives Discussions

Jan23
Journeyman III

Using OpenCL without starting X-Windows (on Linux)

Is it possible to use OpenCL on AMD GPUs without the OS's GUI?

Hi,

when I tried to boot my Linux system without starting KDE, my GPU does not seem to be available as an OpenCL device. With KDE started, everything works fine.

Is there a possibility to change this? I guess it would make a lot of sense, as a lot of OpenCL applications do not necessarily need a graphical interface.

Thanks, Jan

0 Likes
3 Replies
Meteorhead
Challenger

No, unfortunately not. The AMD linux driver relies on XServer loading it. Even though it is kernel module, it only works with X running.

This is something community has been asking for a while, to change this, but we'll have to wait longer.

0 Likes

Well, that's a pity.

But thanks for the quick answer!

0 Likes

Starting X at a low resolution with nothing else running would be fairly cheap - much cheaper than a whole 'desktop environment' at any rate.  Also less likely to hit bugs than with some of the new fangled crappy desktop systems out there.

e.g. set a small default resolution in xconfig and perhaps just run

X :0 -ac

Not that i've tried it, but something like that should work (the -ac turns off access control).

 

 

0 Likes