-
Notifications
You must be signed in to change notification settings - Fork 87
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
29 additions
and
19 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
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
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,34 +1,36 @@ | ||
message(STATUS "Configuring and building HWLOC") | ||
if(WIN32) | ||
if(MSVC OR WIN32) | ||
message(STATUS "Downloading HWLOC binaries for win32") | ||
ginkgo_download_file("https://download.open-mpi.org/release/hwloc/v2.3/hwloc-win32-build-2.3.0.zip" | ||
"${PROJECT_BINARY_DIR}/third_party/hwloc/hwloc.zip" | ||
"SHA1" | ||
"1d53dc8db809dd19d8281556f5f3785105aba97f" | ||
) | ||
file(ARCHIVE_EXTRACT INPUT "${PROJECT_BINARY_DIR}/third_party/hwloc/hwloc.zip") | ||
elseif(WIN64) | ||
ginkgo_download_file("https://download.open-mpi.org/release/hwloc/v2.3/hwloc-win64-build-2.3.0.zip" | ||
"${PROJECT_BINARY_DIR}/third_party/hwloc/hwloc.zip" | ||
"SHA1" | ||
"943e0ca50262dcf256b5956c73faded0141e06b9" | ||
) | ||
file(ARCHIVE_EXTRACT INPUT "${PROJECT_BINARY_DIR}/third_party/hwloc/hwloc.zip") | ||
# elseif(WIN64) | ||
# ginkgo_download_file("https://download.open-mpi.org/release/hwloc/v2.3/hwloc-win64-build-2.3.0.zip" | ||
# "${PROJECT_BINARY_DIR}/third_party/hwloc/hwloc.zip" | ||
# "SHA1" | ||
# "943e0ca50262dcf256b5956c73faded0141e06b9" | ||
# ) | ||
# file(ARCHIVE_EXTRACT INPUT "${PROJECT_BINARY_DIR}/third_party/hwloc/hwloc.zip") | ||
else() | ||
message(STATUS "Downloading HWLOC tars and building") | ||
ginkgo_load_and_configure_package(hwloc_external "https://download.open-mpi.org/release/hwloc/v2.3/hwloc-2.3.0.tar.gz" | ||
"SHA1=69d8e2f088d365cf5e86d04f049c6b1e09e2b9c3" | ||
"${CMAKE_BINARY_DIR}/third_party/hwloc/src/configure" | ||
) | ||
|
||
endif() | ||
|
||
if(WIN32 OR WIN64) | ||
if(MSVC OR WIN32) | ||
add_library(hwloc STATIC IMPORTED GLOBAL) | ||
add_dependencies(hwloc hwloc_external) | ||
set_target_properties(hwloc PROPERTIES IMPORTED_LOCATION "${CMAKE_BINARY_DIR}/third_party/hwloc/hwloc/lib/libhwloc.a" ) | ||
set_target_properties(hwloc PROPERTIES INTERFACE_INCLUDE_DIRECTORIES "${CMAKE_BINARY_DIR}/third_party/hwloc/hwloc/include") | ||
set_target_properties(hwloc PROPERTIES IMPORTED_LOCATION "${PROJECT_BINARY_DIR}/third_party/hwloc/hwloc/lib/libhwloc.a" ) | ||
set_target_properties(hwloc PROPERTIES INTERFACE_INCLUDE_DIRECTORIES "${PROJECT_BINARY_DIR}/third_party/hwloc/hwloc/include") | ||
else() | ||
add_library(hwloc SHARED IMPORTED GLOBAL) | ||
add_dependencies(hwloc hwloc_external ) | ||
set_target_properties(hwloc PROPERTIES IMPORTED_LOCATION "${CMAKE_BINARY_DIR}/third_party/hwloc/build/hwloc/.libs/libhwloc.so" ) | ||
set_target_properties(hwloc PROPERTIES INTERFACE_INCLUDE_DIRECTORIES "${CMAKE_BINARY_DIR}/third_party/hwloc/build/include") | ||
set_target_properties(hwloc PROPERTIES IMPORTED_LOCATION "${PROJECT_BINARY_DIR}/third_party/hwloc/build/hwloc/.libs/libhwloc.so" ) | ||
set_target_properties(hwloc PROPERTIES INTERFACE_INCLUDE_DIRECTORIES "${PROJECT_BINARY_DIR}/third_party/hwloc/build/include") | ||
endif() |
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