如果你在使用CMake来构建项目,确保你的CMakeLists.txt文件中正确设置了CUDA Toolkit的路径。你可以通过find_package(CUDA REQUIRED)来让CMake自动查找CUDA,或者手动设置CUDA_TOOLKIT_ROOT_DIR变量。 例如,在CMake命令行中,你可以这样设置: bash cmake -DCUDA_TOOLKIT_ROOT_DIR=
Invoking CMake setup: 'cmake /home/laura/dlib/tools/python -DCMAKE_LIBRARY_OUTPUT_DIRECTORY=/home/laura/dlib/build/lib.linux-x86_64-3.6 -DPYTHON_EXECUTABLE=/usr/bin/python3 -DUSE_AVX_INSTRUCTIONS=yes -DDLIB_USE_CUDA=yes -DCMAKE_BUILD_TYPE=Release' -- The C compiler identification is...
As mentioned in #472, the variable, CUDA_SDK_ROOT_DIR doesn't get set for Linux users using cmake even though it does find Cuda. On Linux ( Ubuntu 14.04.1 ) this variable doesn't get automatically set during installation of Cuda ( like i...
#85 - NDK: 13b cmake version: 3.6.3 architecture: v7n trying to compile with CUDA I manually added those CUDA variables to the CMakeLists.txt of the torch-android root directory with the result that CUDA_TOOLKIT_ROOT_DIR & CUDA_CUDART_LI...