Open EntityinArray opened 5 months ago
@EntityinArray, starting the container with the --gpus
flag is exactly what is needed to expose the GPUs to the container.
Starting the container directly from the Docker Desktop GUI doesn't add this flag, so the container cannot access the GPU resources.
@EntityinArray, starting the container with the
--gpus
flag is exactly what is needed to expose the GPUs to the container. Starting the container directly from the Docker Desktop GUI doesn't add this flag, so the container cannot access the GPU resources.
Cool, how to add it in GUI?
Description
Executing this command in Docker Engine works fine, NVidia RTX 3060 is detected:
However, using any container via Docker Desktop app fails to expose my NVidia card:
Reproduce
docker run --gpus all nvcr.io/nvidia/k8s/cuda-sample:nbody nbody -gpu -benchmark
and have NVidia card detected.Expected behavior
GPU should be detected
docker version
docker info
Diagnostics ID
8E51C7E1-4513-4ACD-AE1B-DEBC2A042F90/20240413082627
Additional Info
Every Google search for this problem leads to someone just reccomending to do
docker run --gpus all
, but that's not what's needed.