Yukyukuon / blog

博客的文章
1 stars 0 forks source link

各种报错,Debug记录 #25

Open Yukyukuon opened 1 year ago

Yukyukuon commented 1 year ago

记录各种模屎,排雷记录(╯‵□′)╯︵┻━┻

jupyter notebook关联

Attempting to perform BLAS operation using StreamExecutor without BLAS support

问题:jupyter notebook拟合模型时出现Attempting to perform BLAS operation using StreamExecutor without BLAS support 原因:jupyter notebook运行 了多个内核,或者在多个GPU上运行? 过程:用nvidia-smi,发现jupyter notebook在GPU0和1上都有进程!(查看GPU0有别人运行的进程,内存占用已经快满了。而GPU1此时基本是空的。此时jupyter notebook可能运行在GPU0上,但是我用的内核跑大型网络是在GPU1上) 解决:

# 指定在GPU1上运行
CUDA_VISIBLE_DEVICES=1 jupyter notebook &

Docker关联

Dockerhub拉取镜像可用GPU,但是找不到CUDA

问题:Dockerhub拉取的pytoch镜像有CUDA驱动,但是nvcc -V无输出,找不到lib文件 原因:拉取的镜像是runtime版,所以只有runtime版本的cuda,并没有compiler版。 解决策:拉取官方deve版本的镜像