question

NickDeBruyckere-9489 avatar image
0 Votes"
NickDeBruyckere-9489 asked NickDeBruyckere-9489 commented

Gpu support in containers

Hello

I have a container it's made from a .net core c# application together with imagemagick. OpenCL and clinfo are installed and I connected a gpu to it but when I run clinfo the number of platforms is 0. Why is this happening and how can I fix it do I need other things installed. i found https://github.com/NVIDIA/libnvidia-container. But the first packages you need to install are not being found on the container and when I try the drivers trough apt-get they're also not found. It might be since I don't have a base nvidia image. I'm trying this now. Maybe a list or steps of what I need (to do) to allow gpu support to my container, like what base image I should use to install asp.net on with my app, imagemagick and opencl.

Thank you for your time

azure-kubernetes-servicedotnet-ad-docker
· 18
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@NickDeBruyckere, thank you for reaching out to us. Happy to help. There are 2 ways in which you can do this: Installing NVIDIA device plugin and Use the AKS specialized GPU image (preview). For both the methods, different images are used. Please do check out these links in detail and let me know if this helps.


0 Votes 0 ·

i will thank you a lot already

0 Votes 0 ·
singhh-msft avatar image singhh-msft NickDeBruyckere-9489 ·

Does the above comment answer your query completely? If yes, pls let me know, I will post it as an answer.

0 Votes 0 ·

I don't think this really is what I'm looking for a solution so I can just create a container in my container registry add a GPU to it and that ImageMagick together with OpenCL is able to use this GPU. It is for testing purposes. I think this then has to do with my Docker file and the images I use no? I don't think the links you send are for Docker containers. I found that what I was testing was an unsupported version I'm now testing https://docs.microsoft.com/en-us/azure/container-instances/container-instances-gpu with the nvidia/cuda:9.0-runtime-ubuntu16.04 image as base. Woth my last test I had the problem that I couldn't access the cli do you know why this is? I also installed asp.net but my API also didn't respond.

Thank you in advance

0 Votes 0 ·
singhh-msft avatar image singhh-msft NickDeBruyckere-9489 ·

I have shared links for AKS as you have added a tag of AKS, are you not using AKS? If yes, I can share different links with you. Further, I also came across this link, but did not share because I thought that you are using AKS. I assume you specifically want to use Nvidia GPU, that's why you are not using k8s-gcrio.azureedge.net/cuda-vector-add:v0.1 image from the documentation. Check out NVIDIA GPU Cloud Image For Microsoft Azure Release Notes and Using NGC with Azure Setup Guide and let me know if it helps.


0 Votes 0 ·
Show more comments

0 Answers