nvidia-smi
?发现cuda版本为10.1?
CUDA是用来利用NVIDIA GPU(图形处理器)的并行计算能力来加速各种计算任务的。
dir
cat /etc/issue
pwd
wget https://repo.anaconda.com/archive/Anaconda3-2022.10-Linux-x86_64.sh
sh Anaconda3-2022.10-Linux-x86_64.sh
source /root/anaconda3/bin/activate
nvcc -V
conda create -n pytorch python=3.8
conda activate pytorch
pip install torch==1.4.0 torchvision==0.5.0
python
conda install jupyter
conda install ipykernel
jupyter notebook
conda deactivate
python -m ipykernel install --name pytorch