I am attempting to add CUDA support to the LAMMPS installation in Yggdrasil. However, I have been having trouble getting CUDA implementations to successfully compile. After some investigation, I found that the came
command find_package(CUDA)
fails to locate the CUDA Toolkit. I have attempted to set the CUDA_PATH
and CUDA_HOME
environment variables. I have also tried setting CMAKE_PREFIX_PATH
, CMAKE_INSTALL_PREFIX
, CUDA_TOOLKIT_ROOT_DIR
, and CMAKE_CUDA_COMPILER
. None of these helped to locate the CUDA toolkit. Does anyone have an idea what I need to set to make the CUDA toolkit discoverable?