Search code examples
cudacmakepoint-cloudspoint-cloud-library

Finding CUDA_SDK_ROOT_DIR


I am trying to set up Point Cloud Library trunk build with CUDA options enabled.

I believe I have installed CUDA correctly, following these instructions.

In the cmake options for the PCL build, some options are unrecognised:

enter image description here

Is there something I can manually set CUDA_SDK_ROOT_DIR to? Likewise for the other unfound options.


Solution

  • 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.

    Edit:

    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.