为了配置李飞飞团队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版本
推荐升级到的版