訪問本站觀看效果更佳
docker
下運行pytorch
報錯
ERROR: Unexpected bus error encountered in worker. This might be caused by insufficient shared memory (shm).
It Looks like the shared memory of the docker container wasn’t set high enough. Setting a higher amount by adding –shm-size 8G to the docker run command.
for example:
docker run --runtime=nvidia -e NVIDIA_VISIBLE_DEVICES=2,3 --shm-size 8G -it --rm dev:v1 /bin/bash