NVIDIA / nvidia-container-toolkit

Build and run containers leveraging NVIDIA GPUs
Apache License 2.0
2.48k stars 270 forks source link

How to know minimum required driver version for particular docker image? #213

Open kwonmha opened 1 year ago

kwonmha commented 1 year ago

I want to know what driver version is required for particular docker image. Now, 460.73 version driver is installed and failed to run 11.5.2, succeeded to run 11.4.3.

Running 11.5.2 image, the error says

docker: Error response from daemon: OCI runtime create failed: container_linux.go:380: starting container process caused: process_linux.go:545: container init caused: Running hook #0:: error running hook: exit status 1, stdout: , stderr: nvidia-container-cli: requirement error: unsatisfied condition: cuda>=11.5, please update your driver to a newer version, or use an earlier cuda container: unknown.

How can I find minimum required driver version spec?

I found https://gitlab.com/nvidia/container-images/cuda/-/blob/master/doc/container_tags.pdf but it doesn't give me complete information. By looking at the doc, I can't figure out why 11.5.2 failed and 11.4.3 didn't with 460.73 driver.

https://github.com/NVIDIA/nvidia-docker/wiki/CUDA#requirements is out of date.

According to https://docs.nvidia.com/cuda/cuda-toolkit-release-notes/index.html, the minimum required driver version for CUDA 11.x is 450.80.02 but I failed running 11.5.2 image with 460.73.01.

benz0li commented 5 months ago

@kwonmha Try driver version 470 as https://gitlab.com/nvidia/container-images/cuda/-/blob/master/doc/container_tags.pdf suggests.
ℹ️ This is a driver from the LTSB (Long Term Support Branch) and supports newer CUDA versions through forward compatibility.

kwonmha commented 5 months ago

Thanks.

benz0li commented 5 months ago

Thanks.

Does it work? Which Linux distribution are you using?