Skip to content

Commit

Permalink
Revert "fix: improve FindNVML.cmake"
Browse files Browse the repository at this point in the history
This reverts commit 57706f7.
  • Loading branch information
ito-san committed Dec 17, 2024
1 parent 3d87e51 commit 538ed4a
Showing 1 changed file with 2 additions and 15 deletions.
17 changes: 2 additions & 15 deletions system/system_monitor/cmake/FindNVML.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -20,24 +20,11 @@
# NVML_FOUND - True if NVML found.

if(NOT NVML_INCLUDE_DIRS)
find_path(NVML_INCLUDE_DIRS nvml.h
PATHS
/usr/local/cuda/include
/usr/include
/usr/local/include
)
find_path(NVML_INCLUDE_DIRS nvml.h PATHS /usr/local/cuda/include)
endif()

# NVML library
if(NOT NVML_LIBRARIES)
find_library(NVML_LIBRARIES NAMES nvidia-ml
PATHS
/usr/lib
/usr/lib64
/usr/lib/x86_64-linux-gnu
/usr/local/lib
/usr/local/lib64
)
find_library(NVML_LIBRARIES NAMES nvidia-ml)
endif()

include(FindPackageHandleStandardArgs)
Expand Down

0 comments on commit 538ed4a

Please sign in to comment.