windows登录远程Linux服务器(非root权限)
安装putty
安装Anaconda(Jupyter Notebook)
Linux服务器部署Jupyter Notebook (使用Anaconda)(jia ni)
https://www.jianshu.com/p/b449804adc70
(部署
Jupyter Notebook以后不需要再安装py
)
服务器已经安装好了CUDA+CUDNN
CUDA
CUDA(Compute Unified Device Architecture),是显卡厂商
NVIDIA
推出的运算平台。 CUDA™是一种由NVIDIA推出的通用
并行计算
架构,该架构使
GPU
能够解决复杂的计算问题。 它包含了CUDA
指令集架构
(
ISA
)以及GPU内部的并行计算引擎。 开发人员可以使用
C语言
来为CUDA™架构编写程序,C语言是应用最广泛的一种高级编程语言。所编写出的程序可以在支持CUDA™的处理器上以超高性能运行。CUDA3.0已经开始支持
C++
和
FORTRAN
。
linux查看cuda版本
1.cat /usr/local/cuda/version.txt
2.或者 nvcc -v
Ubuntu下查看cuda版本的两种方法
cat /usr/local/cuda/version.txt
nvidia-smi
安装Pytorch、Pytorch Geometric
查看torch的版本
import torch
print(torch.__version__) #注意是双下划线
Install the relevant packages:
pip install torch-scatter==latest+${CUDA} -f https://pytorch-geometric.com/whl/torch-${TORCH}.html
pip install torch-sparse==latest+${CUDA} -f https://pytorch-geometric.com/whl/torch-${TORCH}.html
pip install torch-cluster==latest+${CUDA} -f https://pytorch-geometric.com/whl/torch-${TORCH}.html
pip install torch-spline-conv==latest+${CUDA} -f https://pytorch-geometric.com/whl/torch-${TORCH}.html
pip install torch-geometric
where
${CUDA}
and
${TORCH}
should be replaced by your specific CUDA version (
cpu
,
cu92
,
cu101
,
cu102
,
cu110
) and PyTorch version (
1.4.0
,
1.5.0
,
1.6.0
,
1.7.0
), respectively. For example, for PyTorch 1.7.0 and CUDA 11.0, type:
pip install torch-scatter==latest+cu110 -f https://pytorch-geometric.com/whl/torch-1.7.0.html
pip install torch-sparse==latest+cu110 -f https://pytorch-geometric.com/whl/torch-1.7.0.html
pip install torch-cluster==latest+cu110 -f https://pytorch-geometric.com/whl/torch-1.7.0.html
pip install torch-spline-conv==latest+cu110 -f https://pytorch-geometric.com/whl/torch-1.7.0.html
pip install torch-geometric
jupyter
notebook
的使用
jupyter notebook如何显示行号?
菜单栏View------Toggle Line Numbers
To be continued......