[toc]
WSL2 Ubuntu 22.04测试
安装
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
| nvidia-smi
which nvcc nvcc --version
sudo apt update sudo apt install nvidia-cuda-toolkit
git clone https://github.com/brucefan1983/GPUMD.git cd GPUMD/src make -j4
sudo apt-get purge gcc g++ sudo apt-get purge gcc-11 g++-11 sudo apt-get install gcc-10 g++-10 sudo ln -s /usr/bin/gcc-10 /usr/bin/gcc sudo ln -s /usr/bin/g++-10 /usr/bin/g++
|
The gpumd executable is successfully compiled!
The nep executable is successfully compiled!
测试
1 2
| cd ../examples/gpumd_static/ gpumd
|
- 如果
no CUDA-capable device is detected则:
1
| export LD_LIBRARY_PATH=/usr/lib/wsl/lib:$LD_LIBRARY_PATH
|
参考
[1] https://gpumd.org/installation.html