Leo*_*ins 6 linux install cmake torch
我正在尝试在PC(Ubuntu)中安装Torch。我遵循Torch网站中描述的步骤。但是,当我跑步时
$./install.sh
Run Code Online (Sandbox Code Playgroud)
我得到了错误:
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
Run Code Online (Sandbox Code Playgroud)
因此,我尝试分析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
Run Code Online (Sandbox Code Playgroud)
为什么我出现此错误?我该如何解决呢?
对不起,我的英语有点生锈,如果有人听不懂,请告诉我以另一种方式解释所有这一切。感谢所有为我提供帮助的人。
PS:我在所有工具之前都安装了NVidia CUDA Toolkit,可能是因为它使Torch变得“奇怪”。
该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。