torch7安装的坑

https://github.com/torch/torch7/issues/1086

sudo su
export TORCH_NVCC_FLAGS="-D__CUDA_NO_HALF_OPERATORS__"
bash install-deps
yes | bash ./install.sh

按照官网的安装方法会出现问题,类似于什么不能编译

上面的安装方法work,但要注意“Be careful with the solution that @adam-dziedzic provided because installing torch under sudo su changes the installation path of torch which may break your luarocks package manager.”

 

posted @ 2019-08-09 21:49  Bamboo123  阅读(272)  评论(0编辑  收藏  举报