为了配置李飞飞团队denseCap的代码环境,需要安装torch。
本机环境:Ubuntu16.04 + Nvidia TiTIAN xp + 驱动430 + cuda10.1(后改为cuda8.0)+ cudnn7.6.0(后改为cudnn5.0)
根据官网http://torch.ch/docs/getting-started.html#_给出的安装torch的步骤
git clone https://github.com/torch/distro.git ~/torch --recursive
cd ~/torch; bash install-deps;
./install.sh
在最后一步./install.sh时遇到错误:
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
CUDA_cublas_device_LIBRARY (ADVANCED)
发现很少有博客谈及这个错误,唯一可参考的https://blog.csdn.net/DumpDoctorWang/article/details/89644762
以及github上几个issue上都推荐升级Cmake版本
推荐升级到的版本都不一样,我按照Cmake升级方式,尝试了好几个不同版本的Cmake(3.15.3,3.14.2),依旧同样错误。
最后使用的3.13