-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
subrepo: subdir: "umbrella" merged: "7123a7a" upstream: origin: "git@github.com:pdlfs/umbrella.git" branch: "master" commit: "7123a7a" git-subrepo: version: "0.3.1" origin: "???" commit: "???"
- Loading branch information
1 parent
9c4dcfb
commit 2e9e62b
Showing
21 changed files
with
602 additions
and
147 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
Large diffs are not rendered by default.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,77 @@ | ||
# | ||
# amr-tools.cmake umbrella for amr-tools | ||
# 10-May-2023 ankushj@andrew.cmu.edu | ||
# | ||
|
||
# | ||
# config: | ||
# AMR_TOOLS_REPO - url of git repository | ||
# AMR_TOOLS_TAG - tag to checkout of git | ||
# AMR_TOOLS_TAR - cache tar file name (default should be ok) | ||
# | ||
|
||
if (NOT TARGET amr-tools) | ||
|
||
umbrella_defineopt (AMR_TOOLS_REPO "https://github.com/anku94/amr.git" | ||
STRING "AMR_TOOLS GIT repository") | ||
umbrella_defineopt (AMR_TOOLS_TAG "main" STRING "AMR_TOOLS GIT tag") | ||
umbrella_defineopt (AMR_TOOLS_TAR "amr-tools-${AMR_TOOLS_TAG}.tar.gz" | ||
STRING "AMR_TOOLS cache tar file") | ||
|
||
umbrella_defineopt(AMR_TOOLS_GUROBI OFF BOOL "Build amr-tools with Gurobi") | ||
umbrella_defineopt(AMR_TOOLS_TAU OFF BOOL "Build amr-tools with TAU") | ||
|
||
umbrella_defineopt (AMR_TOOLS_OWNMPI OFF BOOL "Use mpirun in install tree") | ||
# | ||
# depends | ||
# | ||
|
||
set (AMR_CMCACHE "${UMBRELLA_CMAKECACHE}") | ||
|
||
set(AMR_TOOLS_DEPENDS glog kokkos pdlfs-common) | ||
|
||
include (umbrella/glog) | ||
include (umbrella/kokkos) | ||
include (umbrella/pdlfs-common) | ||
|
||
if (UMBRELLA_MPI_DEPS) | ||
include (umbrella/${UMBRELLA_MPI_DEPS}) | ||
list(APPEND AMR_TOOLS_DEPENDS ${UMBRELLA_MPI_DEPS}) | ||
list (APPEND AMR_CMCACHE -DAMR_TOOLS_OWNMPI:STRING=1) | ||
endif() | ||
|
||
if (AMR_TOOLS_GUROBI) | ||
include (umbrella/gurobi) | ||
list(APPEND AMR_TOOLS_DEPENDS gurobi) | ||
endif (AMR_TOOLS_GUROBI) | ||
|
||
if (AMR_TOOLS_TAU) | ||
include (umbrella/tau) | ||
list(APPEND AMR_TOOLS_DEPENDS tau) | ||
list (APPEND AMR_CMCACHE -DTAU_ROOT:STRING=${CMAKE_INSTALL_PREFIX}) | ||
endif (AMR_TOOLS_TAU) | ||
|
||
# | ||
# generate parts of the ExternalProject_Add args... | ||
# | ||
umbrella_download (AMR_TOOLS_DOWNLOAD amr-tools | ||
${AMR_TOOLS_TAR} | ||
GIT_REPOSITORY ${AMR_TOOLS_REPO} | ||
GIT_TAG ${AMR_TOOLS_TAG}) | ||
umbrella_patchcheck (AMR_TOOLS_PATCHCMD amr-tools) | ||
# TODO: hook up tests (also add to ExternalProject_Add) | ||
# umbrella_testcommand (amr-tools AMR_TOOLS_TESTCMD | ||
# ctest -R preload -V ) | ||
|
||
|
||
# | ||
# create amr-tools target | ||
# | ||
ExternalProject_Add (amr-tools | ||
DEPENDS ${AMR_TOOLS_DEPENDS} | ||
${AMR_TOOLS_DOWNLOAD} ${AMR_TOOLS_PATCHCMD} | ||
CMAKE_CACHE_ARGS ${AMR_CMCACHE} | ||
UPDATE_COMMAND "" | ||
) | ||
|
||
endif (NOT TARGET amr-tools) |
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
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 |
---|---|---|
@@ -0,0 +1,42 @@ | ||
# | ||
# kokkos.cmake umbrella for kokkos | ||
# 10-May-2023 ankushj@andrew.cmu.edu | ||
# | ||
|
||
# | ||
# config: | ||
# KOKKOS_REPO - url of git repository | ||
# KOKKOS_TAG - tag to checkout of git | ||
# KOKKOS_TAR - cache tar file name (default should be ok) | ||
# | ||
|
||
if (NOT TARGET kokkos) | ||
|
||
umbrella_defineopt (KOKKOS_REPO "https://github.com/kokkos/kokkos.git" | ||
STRING "KOKKOS GIT repository") | ||
umbrella_defineopt (KOKKOS_TAG "4.0.01" STRING "KOKKOS GIT tag") | ||
umbrella_defineopt (KOKKOS_TAR "kokkos-${KOKKOS_TAG}.tar.gz" | ||
STRING "KOKKOS cache tar file") | ||
# | ||
# generate parts of the ExternalProject_Add args... | ||
# | ||
umbrella_download (KOKKOS_DOWNLOAD kokkos | ||
${KOKKOS_TAR} | ||
GIT_REPOSITORY ${KOKKOS_REPO} | ||
GIT_TAG ${KOKKOS_TAG}) | ||
umbrella_patchcheck (KOKKOS_PATCHCMD kokkos) | ||
# TODO: hook up tests (also add to ExternalProject_Add) | ||
# umbrella_testcommand (kokkos KOKKOS_TESTCMD | ||
# ctest -R preload -V ) | ||
|
||
# | ||
# create kokkos target | ||
# | ||
ExternalProject_Add (kokkos | ||
${KOKKOS_DOWNLOAD} ${KOKKOS_PATCHCMD} | ||
CMAKE_ARGS -DKokkos_ENABLE_AGGRESSIVE_VECTORIZATION=ON | ||
CMAKE_CACHE_ARGS ${UMBRELLA_CMAKECACHE} | ||
UPDATE_COMMAND "" | ||
) | ||
|
||
endif (NOT TARGET kokkos) |
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 |
---|---|---|
@@ -0,0 +1,71 @@ | ||
# | ||
# parthenon.cmake umbrella for parthenon | ||
# 10-May-2023 ankushj@andrew.cmu.edu | ||
# | ||
|
||
# | ||
# config: | ||
# PARTHENON_REPO - url of git repository | ||
# PARTHENON_TAG - tag to checkout of git | ||
# PARTHENON_TAR - cache tar file name (default should be ok) | ||
# | ||
|
||
if (NOT TARGET parthenon) | ||
|
||
umbrella_defineopt (PARTHENON_REPO "https://github.com/anku94/parthenon.git" | ||
STRING "PARTHENON GIT repository") | ||
umbrella_defineopt (PARTHENON_TAG "develop" STRING "PARTHENON GIT tag") | ||
umbrella_defineopt (PARTHENON_TAR "parthenon-${PARTHENON_TAG}.tar.gz" | ||
STRING "PARTHENON cache tar file") | ||
# | ||
# generate parts of the ExternalProject_Add args... | ||
# | ||
umbrella_download (PARTHENON_DOWNLOAD parthenon | ||
${PARTHENON_TAR} | ||
GIT_REPOSITORY ${PARTHENON_REPO} | ||
GIT_TAG ${PARTHENON_TAG}) | ||
umbrella_patchcheck (PARTHENON_PATCHCMD parthenon) | ||
# TODO: hook up tests (also add to ExternalProject_Add) | ||
# umbrella_testcommand (parthenon PARTHENON_TESTCMD | ||
# ctest -R preload -V ) | ||
|
||
# | ||
# depends | ||
# | ||
set (PARTHENON_DEPENDS amr-tools) | ||
include (umbrella/amr-tools) | ||
|
||
if (NOT PARTHENON_DISABLE_HDF5) | ||
set (PARTHENON_DEPENDS ${PARTHENON_DEPENDS} hdf5) | ||
endif() | ||
|
||
if (PARTHENON_DISABLE_OPENMP) | ||
set (KOKKOS_ENABLE_OPENMP OFF) | ||
else() | ||
set (KOKKOS_ENABLE_OPENMP ON) | ||
endif() | ||
|
||
set (PARTHENON_CMAKE_ARGS | ||
-DBUILD_SHARED_LIBS=ON | ||
-DTAU_ROOT=${CMAKE_INSTALL_PREFIX} | ||
-DPARTHENON_DISABLE_HDF5=${PARTHENON_DISABLE_HDF5} | ||
-DPARTHENON_DISABLE_OPENMP=${PARTHENON_DISABLE_OPENMP} | ||
-DPARTHENON_ENABLE_TESTING=OFF | ||
-DKokkos_ENABLE_OPENMP=${Kokkos_ENABLE_OPENMP}) | ||
|
||
if (UMBRELLA_MPI_DEPS) | ||
include (umbrella/${UMBRELLA_MPI_DEPS}) | ||
endif() | ||
|
||
# | ||
# create parthenon target | ||
# | ||
ExternalProject_Add (parthenon | ||
DEPENDS ${PARTHENON_DEPENDS} | ||
${PARTHENON_DOWNLOAD} ${PARTHENON_PATCHCMD} | ||
CMAKE_ARGS ${PARTHENON_CMAKE_ARGS} | ||
CMAKE_CACHE_ARGS ${UMBRELLA_CMAKECACHE} | ||
UPDATE_COMMAND "" | ||
) | ||
|
||
endif (NOT TARGET parthenon) |
Oops, something went wrong.