lkwq007 / lkwq007/stablediffusion-infinity

[Bug] Docker Script does not detect GPU

Open
#83 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
3.9k
Forks
294
PR merge metrics
No merged PRs in 30d

Description

**Describe the bug**
The docker test conditions fail even when nvidia gpus are properly installed and available in docker.
```
$ ./docker-run.sh
OS/Arch: linux/amd64
OS/Arch: linux/amd64
Docker Compose version v2.2.2
Docker could not find your NVIDIA GPU
```
I'm not sure exactly what this is searching for in nvidia-smi
`egrep -e 'NVIDIA.*On' `

```
$ docker run -it --gpus=all --rm nvidia/cuda:11.4.2-base-ubuntu20.04 nvidia-smi
Fri Oct 21 20:26:41 2022
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 470.141.03 Driver Version: 470.141.03 CUDA Version: 11.4 |
|-------------------------------+----------------------+----------------------+
| 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 Quadro P2000 Off | 00000000:09:00.0 Off | N/A |
| 51% 44C P0 18W / 75W | 3863MiB / 5057MiB | 2% Default |
| | | N/A |
+-------------------------------+----------------------+----------------------+

+-----------------------------------------------------------------------------+
| Processes: |
| GPU GI CI PID Type Process name GPU Memory |
| ID ID Usage |
|=============================================================================|
+-----------------------------------------------------------------------------+
```

**To Reproduce**
Steps to reproduce the behavior:
1. git clone
2. cd stablediffusion-infinity/docker
3. ./docker-run.sh
4. See error

**Expected behavior**
I would expect any output from nvidia-smi would be sufficient.

**Screenshots**
N/A

**Desktop (please complete the following information):**
- OS: Ubuntu Server 20.04
- Browser N/A

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with docker/docker-run.sh and inspect the NVIDIA detection around the `egrep -e 'NVIDIA.*On'` condition. Reproduce with `./docker-run.sh` and compare its check with the provided `nvidia-smi` output. Done means the script recognizes a working NVIDIA GPU in the reported Docker environment without the false error.

Written by the indexing model from the issue text.

Assessment

Tech stack
bash, docker
Domain
infrastructure
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.