# Could not select device driver "" with capabilities: \[\[gpu\]\]

**URL:** https://community.drivendata.org/t/could-not-select-device-driver-with-capabilities-gpu/7783
**Category:** Where's Whale-do?
**Created:** [June 8, 2022, 10:07am UTC](https://community.drivendata.org/t/could-not-select-device-driver-with-capabilities-gpu/7783 "2022-06-08T10:07:36Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![olliethomas](https://avatars.discourse-cdn.com/v4/letter/o/a698b9/32.png) [@olliethomas](https://community.drivendata.org/u/olliethomas)
#### Post date: [June 8, 2022, 10:07am UTC](https://community.drivendata.org/t/could-not-select-device-driver-with-capabilities-gpu/7783/1 "2022-06-08T10:07:36Z")

</div>

Hi, thanks for running this competition. I’ve just forked the repository and run the suggested `make` commands both locally on a macbook, and on a server with a GPU. Everything runs smoothly for the CPU version, but when I get to `make-test-submission` on the GPU server, I get:

```auto
➜ make test-submission

chmod -R 0777 submission/
docker run \
        -it \
        --gpus all \
         \
        --network none \
        --mount type=bind,source="<repo-path>"/data,target=/code_execution/data,readonly \
        --mount type=bind,source="<repo-path>"/submission,target=/code_execution/submission \
        --shm-size 8g \
        --name belugas-competition \
        --rm \
        2cc32eca98e4
docker: Error response from daemon: could not select device driver "" with capabilities: [[gpu]].
Makefile:119: recipe for target 'test-submission' failed
make: *** [test-submission] Error 125

```

I tried on an alternative machine with a GPU as well and received the same message.

In case it’s useful:

```auto
➜ nvidia-smi 
Wed Jun 8 11:05:21 2022       
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 460.91.03 Driver Version: 460.91.03 CUDA Version: 11.2 |
|-------------------------------+----------------------+----------------------+
| GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
| | | MIG M. |
|===============================+======================+======================|
| 0 GeForce RTX 208... Off | 00000000:43:00.0 Off | N/A |
| 32% 36C P0 51W / 250W | 0MiB / 11019MiB | 0% Default |
| | | N/A |
+-------------------------------+----------------------+----------------------+
| 1 GeForce RTX 208... Off | 00000000:44:00.0 Off | N/A |
| 33% 34C P0 42W / 250W | 0MiB / 11019MiB | 0% Default |
| | | N/A |
+-------------------------------+----------------------+----------------------+
                                                                               
+-----------------------------------------------------------------------------+
| Processes: |
| GPU GI CI PID Type Process name GPU Memory |
| ID ID Usage |
|=============================================================================|
| No running processes found |
+-----------------------------------------------------------------------------+

```

Thanks for any help with this. I don’t have much experience with Docker, which is part of the appeal of giving this challenge a go 😄

Oliver

---

<div class="post-metadata">

### Author: ![olliethomas](https://avatars.discourse-cdn.com/v4/letter/o/a698b9/32.png) [@olliethomas](https://community.drivendata.org/u/olliethomas)
#### Post date: [June 8, 2022, 10:43am UTC](https://community.drivendata.org/t/could-not-select-device-driver-with-capabilities-gpu/7783/2 "2022-06-08T10:43:12Z")

</div>

solved. To use docker on a machine with a GPU I needed to install nvidia-docker [GitHub - NVIDIA/nvidia-docker: Build and run Docker containers leveraging NVIDIA GPUs](https://github.com/NVIDIA/nvidia-docker)

I also had to change permissions of the data directory (`chmod -R 777 data/`) and the produced submissions.csv, but I’m assuming that this is a problem with my system. I’m making a note of it though in case anyone else experiences the same thing.
