This reverts commit
969fb1d08b7fd33c809ce967b9e3bc38d5ac83cd.
Sorry, my bad for not testing it before submitting. It won't work to
just define the option inside a conditional for whether the option is
set - then it will never be available in the CMake GUI.
Change-Id: Ia8310332932d6ce81c9249560744fdaa2648bee4
if (DEFINED NVML_LIBRARY)
set(NVML_FIND_QUIETLY TRUE)
endif()
-
+ find_package(NVML)
+ option(GMX_USE_NVML "Use NVML support for better CUDA performance" ${NVML_FOUND})
+ mark_as_advanced(GMX_USE_NVML)
if(GMX_USE_NVML)
- find_package(NVML)
- option(GMX_USE_NVML "Use NVML support for better CUDA performance" ${NVML_FOUND})
- mark_as_advanced(GMX_USE_NVML)
-
if(NVML_FOUND)
include_directories(SYSTEM ${NVML_INCLUDE_DIR})
set(HAVE_NVML 1)