编译 pytorch debug blog
用ubuntu编译的,home底下空间不大,把data底下的磁盘挂载到了home/user 底下的新文件夹,给访问权限
anaconda 装在新文件夹底下
git clone 的地方也在新文件夹底下
conda create -n torch python=3.7
conda activate torch
conda install numpy ninja pyyaml mkl mkl-include setuptools cmake cffi
git clone --recursive https://github.com/pytorch/pytorch
cd pytorch
# if you are updating an existing checkout
git submodule sync
git submodule update --init --recursive
export CMAKE_PREFIX_PATH=${
CONDA_PREFIX:-"