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.”
原文:https://www.cnblogs.com/BambooEatPanda/p/11329775.html