The source code and dockerfile for the GSW2024 AI Lab.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
 
 
 
 
 
 

24 lines
863 B

# Try to find HWLOC
# Once done this will define:
# - HWLOC_FOUND - True if the system has HWLOC
# - HWLOC_INCLUDE_DIRS - include directories for compiling
# - HWLOC_LIBRARIES - libraries for linking
# - HWLOC_DEFINITIONS - cflags suggested by pkg-config
find_package(PkgConfig)
pkg_check_modules(PC_HWLOC QUIET hwloc)
set(HWLOC_DEFINITIONS ${PC_HWLOC_FLAGS_OTHER})
find_path(HWLOC_INCLUDE_DIR hwloc.h
HINTS ${PC_HWLOC_INCLUDEDIR} ${PC_HWLOC_INCLUDE_DIRS})
find_library(HWLOC_LIBRARIES NAMES hwloc
HINTS ${PC_HWLOC_LIBDIR} ${PC_HWLOC_LIBRARY_DIRS})
include(FindPackageHandleStandardArgs)
# handle the QUIETLY and REQUIRED arguments and set HWLOC_FOUND to TRUE
# if all listed variables are TRUE
find_package_handle_standard_args(HWLOC DEFAULT_MSG HWLOC_LIBRARIES HWLOC_INCLUDE_DIR)
mark_as_advanced(HWLOC_INCLUDE_DIR HWLOC_LIBRARIES)