我是 Rapids 的新手,很少有使用 conda 的良好体验。所以我正在尝试使用容器化版本。我是 Docker 新手,未知数的组合让我无法理清问题。
我有一个 Ubuntu 18.04 服务器,
# uname -v
#30~18.04.1-Ubuntu SMP Fri Jan 17 06:14:09 UTC 2020
我在上面安装了新版本的 Docker
# apt-get install docker docker-ce docker-ce-cli containerd.io
# docker --version
Docker version 19.03.8, build afacb8b7f0
本机已安装 cuda v10.2
# nvcc --version
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2019 NVIDIA Corporation
Built on Wed_Oct_23_19:24:38_PDT_2019
Cuda compilation tools, release 10.2, V10.2.89
和 Python v3.6.9
# python3 --version
Python 3.6.9
如NVIDIA Container Toolkit Quickstart部分所示,我将 nvidia-docker 列表安装到 /etc/apt/sources.list.d/
# curl -s -L https://nvidia.github.io/nvidia-docker/gpgkey | sudo apt-key add -
# curl -s -L https://nvidia.github.io/nvidia-docker/ubuntu18.04/nvidia-docker.list | sudo tee /etc/apt/sources.list.d/nvidia-docker.list
明确替换ubuntu18.04
$distribution,因为这是Linux Mint 19.3 的 Ubuntu 等价物。
按照RAPIDS - Open GPU Data Science中的 Start Container and Notebook Server 说明,我拉取了 0.13-cuda10.2-runtime-ubuntu18.04-py3.6 运行时。
# docker pull rapidsai/rapidsai:0.13-cuda10.2-runtime-ubuntu18.04-py3.6
很长一段时间,几 GB 之后,一切似乎都还好。(没有警告或错误消息。)此外,该图像看起来像是在 Docker 中注册的。
# docker images -a
REPOSITORY TAG IMAGE ID CREATED SIZE
rapidsai/rapidsai 0.13-cuda10.2-runtime-ubuntu18.04-py3.6 c7440af853b5 4 days ago 9.26GB
rapidsai/rapidsai cuda10.2-runtime-ubuntu18.04-py3.6 c7440af853b5 4 days ago 9.26GB
但是,我接下来尝试启动笔记本服务器:
# docker run --gpus all --rm -it -p 8888:8888 -p 8787:8787 -p 8786:8786 \
rapidsai/rapidsai:cuda10.0-runtime-ubuntu18.04-py3.6
docker: Error response from daemon: could not select device driver "" with capabilities: [[gpu]].
这似乎令人惊讶,因为检测到两个 GTX 1080 Ti GPU
# nvidia-smi
Fri May 8 16:41:57 2020
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 440.33.01 Driver Version: 440.33.01 CUDA Version: 10.2 |
|-------------------------------+----------------------+----------------------+
| GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
|===============================+======================+======================|
| 0 GeForce GTX 108... On | 00000000:08:00.0 Off | N/A |
| 21% 38C P8 10W / 250W | 1MiB / 11178MiB | 0% Default |
+-------------------------------+----------------------+----------------------+
| 1 GeForce GTX 108... On | 00000000:42:00.0 Off | N/A |
| 23% 42C P8 10W / 250W | 1MiB / 11177MiB | 0% Default |
+-------------------------------+----------------------+----------------------+
+-----------------------------------------------------------------------------+
| Processes: GPU Memory |
| GPU PID Type Process name Usage |
|=============================================================================|
| No running processes found |
+-----------------------------------------------------------------------------+
收拾东西后
# docker system prune -a
# apt-get purge docker docker-engine docker.io containerd runc
我重新安装了 docker 并再次拉取了 rapidsai 图像。结果没有改变。
与 NVIDIA Driver Version: 440.33.01 是否有冲突?
有什么建议么?