我正试图在我的电脑上安装Torch(Ubuntu)。我按照Torch网站中描述的步骤操作。但是,当我跑
$./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)
linked by target "THC" in directory /home/leonardo/torch/extra/cutorch/lib/THC
所以我试图分析CMake日志,并出现以下错误:
/home/leonardo/torch/extra/cutorch/build/CMakeFiles/CMakeTmp/src.c:5:20: error: ‘luaL_setfuncs’ undeclared (first use in this function); did you mean ‘lua_setfenv’?
long i = sizeof(&luaL_setfuncs);
^~~~~~~~~~~~~
lua_setfenv
/home/leonardo/torch/extra/cutorch/build/CMakeFiles/CMakeTmp/src.c:5:20: note: each undeclared identifier is reported only once for each function it appears in
CMakeFiles/cmTC_0eb19.dir/build.make:65: recipe for target 'CMakeFiles/cmTC_0eb19.dir/src.c.o' failed
为什么我有这个错误?我该如何解决?
对不起我的英语,它有点生疏,如果有人无法理解,请告诉我用另一种方式解释所有这些。感谢所有帮助我的人。
PS:我之前安装了NVidia CUDA工具包,也许火炬是“奇怪的”,因为它。
cublas_device
库已在CUDA 9.2中弃用,并在CUDA 10中删除。看起来您的Torch版本正在针对cuDNN进行构建,该版本预计可与CUDA 9.2或更早版本一起使用。
你可以:
您需要注意的另一个方面是确保您的NVidia GPU驱动程序,cuDNN和CUDA版本一起工作。请参阅https://docs.nvidia.com/deploy/cuda-compatibility/index.html。
火炬似乎不支持CUDA 10.降级到CUDA 9.1