[CMake] CUDA Support

Dustyn Blasig dustyn at blasig.us
Fri Mar 29 11:58:14 EDT 2019


Hi All,

I can't find any documentation on the new-ish "native" CUDA support. I need
to know all the variables that we can use, and (for instance) whether
checking the CUDA version is now supported. When searching online, I'm
always directed to the old FindCUDA pages which don't seem to match what is
available with the native language support.

Currently, I'm "hacking" my way through things by using both flows. I add
CUDA as a language, use the found CUDA compiler to construct a
CUDA_TOOLKIT_ROOT_DIR and then call find_package(CUDA) to get the old
environment variables set up.

Cheers!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://cmake.org/pipermail/cmake/attachments/20190329/f87e394e/attachment.html>


More information about the CMake mailing list