Unraid Beta GPU Driver support + Docker Containers = Lack of Documentation


flexage

Recommended Posts

So, with the recent inclusion of GPU drivers in Unraid, it seems a lot of things should now be possible.

 

We already had Nvidia GPU support, by way of the awesome community Nvidia Build, but now we also have official driver support for AMD GPU's.

 

I wanted to pass my AMD Gpu through to a Docker Container for transcoding, the same way many folks have been doing with Nvidia GPU's.

 

Only thing is (and forgive me if I'm mistaken), there seems to be a complete lack of documentation of how this all fits together. Like on the Unraid docs, I've not seen a single mention of GPU's and Docker in the same context.

 

Searching here on the forums, and on Google, brings up a whole bunch of confusing results, 99% of which are from before the official driver inclusion and specific to the previous Nvidia Community Builds.

 

Ultimately, I think a write-up of information around Docker and GPU's in the official documentation would be the way forward, but immediately I have a couple of queries I was hoping to find answers to, namely:

  1. In my container configuration, and I required to add any new "Vars" or "Devices" in order to successfully pass through a GPU using the new Unraid Drivers (I would assume yes, so I have attempted to pass through my GPU device - `/dev/dri`)
  2. A lot of older topics on this mention that you had to add an extra run parameter to your Docker Container (namely --runtime=nvidia) is this still required? And is there an AMD equivalent (--runtime=amd)?
  3. My container has an FFMPEG build that supports VAAPI, so an AMD GPU should work with it, but the device fails to initialise for FFMPEG's HW Detect - I've read that the same drivers that are available for the GPU on the Unraid Host need to be added to the Docker Container... What is the process for copying the drivers in there?

 

Thanks for your time reading this, it would be really good to get answers to my 3 questions above.

 

I still believe that the need to ask these questions could have been avoided with solid documentation though, so I'd like to cast a vote in that direction.

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.