win10/win11 安装liunx子系统
1-控制面板——启用或关闭windows功能。
点选-虚拟平台
点选-适用于liunx的windows子系统
2-微软市场store 安装ubuntu20
3-运行ubuntu 第一次要设置用户 密码
如果打不开需要更新 wsl update
4- # 更新 apt-get
sudo apt-get update
sudo apt-get upgrade
# 安装gcc
sudo apt install gcc
gcc –v
ls /usr/bin/gcc*
# 安装make
sudo apt-get install make
make -v
# 安装gedit
sudo apt install gedit
# 安装vim文本编辑器
sudo apt install vim
5- https://developer.nvidia.com/cuda-downloads
Installation Instructions:
wget https://developer.download.nvidia.com/compute/cuda/repos/wsl-ubuntu/x86_64/cuda-keyring_1.1-1_all.deb
sudo dpkg -i cuda-keyring_1.1-1_all.deb
sudo apt-get update
sudo apt-get -y install cuda-toolkit-12-6
6- git clone https://github.com/wilicc/gpu-burn
cd gpu-burn
直接make 就可以了。
docker build -t gpu_burn .
docker run --rm --gpus all gpu_burn
./GPU_Burn
Usage: gpu_burn [OPTIONS] [TIME]
-m X Use X MB of memory
-m N% Use N% of the available GPU memory
-d Use doubles
-tc Try to use Tensor cores (if available)
-l List all GPUs in the system
-i N Execute only on GPU N
-h Show this help message
Example:
gpu_burn -d 3600