寻找CUDA_SDK_ROOT_DIR [英] Finding CUDA_SDK_ROOT_DIR
问题描述
我正在尝试启用点云库中继构建并启用CUDA选项.
I am trying to set up Point Cloud Library trunk build with CUDA options enabled.
我相信我已经按照这些说明进行了正确的安装,.
在PCL构建的cmake选项中,一些选项未被识别:
In the cmake options for the PCL build, some options are unrecognised:
是否可以手动将CUDA_SDK_ROOT_DIR
设置为?对于其他未找到的选项也是如此.
Is there something I can manually set CUDA_SDK_ROOT_DIR
to? Likewise for the other unfound options.
推荐答案
CUDA_SDK_ROOT_DIR
应该设置为安装NVIDIA GPU计算SDK的方向.可从下载CUDA的NVIDIA的同一页面下载GPU计算SDK.默认情况下,此SDK将安装到$HOME/NVIDIA_GPU_Computing_SDK
.对其进行适当设置,然后重新运行cmake.
CUDA_SDK_ROOT_DIR
should be set to the direction in which you installed the NVIDIA's GPU Computing SDK. The GPU Computing SDK is downloadable from the same page at NVIDIA where you downloaded CUDA. By default, this SDK will install to $HOME/NVIDIA_GPU_Computing_SDK
. Set it appropriately and then rerun cmake.
CUDA_SDK_ROOT_DIR
变量实际上是在$HOME/NVIDIA_GPU_Computing_SDK
下寻找包含您正在使用的CUDA版本的子目录.对我来说,这是$HOME/NVIDIA_GPU_Computing_SDK/CUDA/v4.1
.
The CUDA_SDK_ROOT_DIR
variable is actually looking for the sub-directory beneath $HOME/NVIDIA_GPU_Computing_SDK
that contains the version of CUDA you're using. For me, this is $HOME/NVIDIA_GPU_Computing_SDK/CUDA/v4.1
.
这篇关于寻找CUDA_SDK_ROOT_DIR的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!