-
Notifications
You must be signed in to change notification settings - Fork 101
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Fixing FindHWLOC.cmake script for adding support for HWLOC versions
greater than 1.4.0 - Fixing a bug in the thread placements for node threads.
- Loading branch information
1 parent
40aa785
commit 08f4ae5
Showing
4 changed files
with
43 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,24 @@ | ||
# Copyright (c) 2012 Marwan Abdellah <[email protected]> | ||
|
||
find_path(HWLOC_INCLUDE_DIR "hwloc.h" | ||
HINTS ${HWLOC_ROOT}/include | ||
/usr/include | ||
/usr/local/include | ||
/opt/local/include | ||
) | ||
find_package(PkgConfig) | ||
if (PKG_CONFIG_FOUND) | ||
message(STATUS "Found PKG_CONFIG") | ||
else() | ||
message(STATUS "Could NOT Find PKG_CONFIG") | ||
endif() | ||
|
||
find_library(HWLOC_LIBRARIES NAMES hwloc | ||
HINTS ${HWLOC_ROOT}/lib | ||
PATHS /usr/lib /usr/local/lib /opt/local/lib | ||
) | ||
# Search for package files | ||
pkg_search_module(HWLOC hwloc>=1.4.0) | ||
|
||
include(FindPackageHandleStandardArgs) | ||
find_package_handle_standard_args(HWLOC DEFAULT_MSG HWLOC_LIBRARIES | ||
HWLOC_INCLUDE_DIR) | ||
# Other places via "ccmake .." | ||
if(NOT HWLOC_FOUND) | ||
find_path(HWLOC_INCLUDE_DIR "hwloc.h") | ||
find_library(HWLOC_LIBRARIES NAMES hwloc) | ||
|
||
include(FindPackageHandleStandardArgs) | ||
find_package_handle_standard_args(HWLOC DEFAULT_MSG HWLOC_LIBRARIES HWLOC_INCLUDE_DIR) | ||
endif() | ||
|
||
if(HWLOC_FOUND) | ||
message(STATUS "Found HWLOC in ${HWLOC_INCLUDE_DIR};${HWLOC_LIBRARIES}") | ||
endif(HWLOC_FOUND) | ||
endif(HWLOC_FOUND) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters