我在Windows上使用Ubuntu (在WSL中),我有CMake 3.10.1和CUDA工具包9.0。当我跑的时候
cmake ..我发现了一个错误:
CMake Error at CMakeLists.txt:5 (project):
No CMAKE_CUDA_COMPILER could be found.
Tell CMake where to find the compiler by setting either the environment
variable "CUDACXX" or the CMake cache entry CMAKE_CUDA_COMPILER to the full
path to the compiler, or to the compiler name if it is in the PATH.
-- Configuring incomplete, errors occurred!
See also "/mnt/d/Open3D-PointNet2-Semantic3D-master/tf_ops/build/CMakeFiles/CMakeOutput.log".
See also "/mnt/d/Open3D-PointNet2-Semantic3D-master/tf_ops/build/CMakeFiles/CMakeError.log".是否可以将数据自动化系统( CUDA )和CMake链接到WSL中,我如何将路径添加到CUDA?
发布于 2019-07-30 19:05:46
您可以使用:
cmake -D CUDA_TOOLKIT_ROOT_DIR=/usr/local/cuda-10.1 ..只需将路径更改为安装的位置即可。
cuda可以通过命令安装在WSL上:
sudo apt-get install nvidia-cuda-toolkit然后,cmake可以找到构建的路径。但是无法在WSL上运行可执行文件,因为Nvidia还不支持。
https://stackoverflow.com/questions/57278461
复制相似问题