首先说一下感触,如果没必要别装这个东西,有毒!!!
我的电脑配置:
CUDA10 + cudnn7.3。
Torch7官网上说是这样安装的:
git clone https://github.com/torch/distro.git ~/torch --recursive
cd ~/torch; bash install-deps;
./install.sh
克隆包,然后安装依赖,接着安装。我跟着坐结果出现这样的错误:
CUDA_cublas_device_LIBRARY (ADVANCED)
linked by target "THC" in directory /home/lgdx/torch/extra
原因在于:谷歌了好久,试了很多原因(一开始以为是我cudnn的问题),后来才知道CUDA10移除了cublas。
== 所以如果你使用Torch7官网提供的教程只限于CUDA9.0-,即使安装torch安装成功(输入th可正常运行),使用luarocks安装cutorch 、cunn等包的时候一样会出现如下错误:==
recipe for target 'lib/THC/CMakeFiles/THC.dir/all' failed
所以对于CUDA10需要使用别的安装包。
+++++++++++++++++++++++++++++++++++++++++++++
Torch7 对于 CUDA10正确打开方式
删掉原有的安装包,然后从nagadomi克隆:
rm torch/
git clone https://github.com/nagadomi/distro ~/torch --recursize
cd ~/torch;