You are not logged in.

#1 2021-08-26 18:55:43

Lucretia
Member
Registered: 2021-08-26
Posts: 1

Opencl/general gpu compute on systemd-nspawn

I am trying to run some gpgpu software in an nspawn container due to some packaging issues, upon running it i get the following error

Failed to open GPU device file node

I tried to bind the /dev/dri directory, and straced the program this time, here's the relevant portion of the log:

openat(AT_FDCWD, "/dev/dri/renderD128", O_RDWR) = -1 EPERM (Operation not permitted)

My systemd-nspawn command line is

systemd-nspawn --resolv-conf=off -D ./ubuntuintel --bind=/dev/dri 

What is the proper way to use a gpu from inside a container?

Offline

#2 2021-08-27 21:25:17

xerxes_
Member
Registered: 2018-04-29
Posts: 675

Offline

Board footer

Powered by FluxBB