ERROR Unexpected bus error encountered in worker. This might be caused by insufficient shared mem

訪問本站觀看效果更佳
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
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章