Gong-Yi Liao 廖宮毅 <gongyi.liao(a)gmail.com> writes:
I have following setup of LXC:
LXC Host system: Debian Jessie + FGLRX driver + LXC
LXC Host OpenCL Device: AMD Radeon HD 7950
LXC guest: Debian Sid + AMD OpenCL ICD (15.12) + AMD clinfo + PyOpenCL (all
The device "/dev/ati/card0" has been added to LXC guest.
However, when I run clinfo, I got the error message:
I am not sure if it is possible to pass LXC host hardware to LXC guest that
the guest can run OpenCL with the hardware.
Any sharing of experience are greatly appreciated, thank you!
The old-style AMD drivers need an X server running in order to do GPU
compute. If you don't have that running, you may well see the error
you're encountering. On the other hand, I'm not sure if that device node
is sufficient to run an X server against--no experience with that.
My understanding is (though I have not tried it) that the newer AMD
drivers (based on the open-source kernel driver) do not have this
restriction. This may be worth trying though. Check here for more info: