wsl安装gpu版mindspore(一)
刚出炉的新机,wsl和windows的nvidia共享
win+shift+s截图
wget https://gitee.com/mindspore/mindspore/raw/r1.8/scripts/install/ubuntu-gpu-pip.sh
PYTHON_VERSION=3.9 MINDSPORE_VERSION=1.8.1 bash -i ./ubuntu-gpu-pip.sh
- 1
- 2
这里要选择yes
难道是我移动网卡的问题?
把网卡拔了,用本地网。
ping通,那么不是我的问题
echo 'deb https://developer.download.nvidia.cn/compute/cuda/repos/ubuntu1804/x86_64' > /etc/apt/sources.list.d/cuda.list
- 1
E: Malformed entry 1 in list file /etc/apt/sources.list.d/cuda.list (Suite)
E: The list of sources could not be read.
说明该方法不行
gpg --keyserver keyserver.ubuntu.com --recv-keys A4B469963BF863CC
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys A4B469963BF863CC
- 1
- 2
成功!
如果没有nvidia-smi,这个逻辑可以在bash里面实现?
sudo apt install nvidia-utils-390
出了错,重来又在下载了,建议新建一个如果已有文件不再下载的逻辑。
提个pr
安装后半截验证
[ERROR] ME(31402,7f3c64a52740,python):2022-09-12-17:05:24.234.635 [mindspore/ccsrc/runtime/hardware/device_context_manager.cc:93] WaitTaskFinishOnDevice] SyncStream failed, exception:The stream_id: 0 is greater than stream array size: 0
出错了,那我们
sudo apt install nvidia-cuda-toolkit
排错
WARNING: The scripts f2py, f2py3 and f2py3.9 are installed in ‘/home/kewei/.local/bin’ which is not on PATH.
Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
WARNING: The script cache_admin is installed in ‘/home/kewei/.local/bin’ which is not on PATH.
Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
然后,我突然发现一键运行的脚本是不支持wsl的,这下搞崩了,只有重新下载wsl,卸了重来。
卸载
wsl --list
Ubuntu替换成要卸载的内核
wsl --unregister Ubuntu
- 1
- 2
- 3
文章来源: blog.csdn.net,作者:irrationality,版权归原作者所有,如需转载,请联系作者。
原文链接:blog.csdn.net/weixin_54227557/article/details/126818714
- 点赞
- 收藏
- 关注作者
评论(0)