-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: rewrite part of the build system,so that paths are not linked to…
… build directories. Signed-off-by: Franz R. Sattler <[email protected]>
- Loading branch information
Franz R. Sattler
committed
Dec 23, 2024
1 parent
79483c5
commit 17807ec
Showing
23 changed files
with
464 additions
and
284 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,4 @@ | ||
set(BUNDLE_DIR ${CMAKE_SOURCE_DIR}/../external) | ||
|
||
install(DIRECTORY ${BUNDLE_DIR}/autodiff_install DESTINATION bundled MESSAGE_NEVER) | ||
install(DIRECTORY ${BUNDLE_DIR}/Catch2_install DESTINATION bundled MESSAGE_NEVER) | ||
install(DIRECTORY ${BUNDLE_DIR}/dealii_install DESTINATION bundled MESSAGE_NEVER) | ||
install(DIRECTORY ${BUNDLE_DIR}/kokkos_install DESTINATION bundled MESSAGE_NEVER) | ||
install(DIRECTORY ${BUNDLE_DIR}/rapidcsv DESTINATION bundled MESSAGE_NEVER) | ||
install(DIRECTORY ${BUNDLE_DIR}/rmm_build DESTINATION bundled MESSAGE_NEVER) | ||
install(DIRECTORY ${BUNDLE_DIR}/spdlog_install DESTINATION bundled MESSAGE_NEVER) | ||
install(DIRECTORY ${BUNDLE_DIR}/sundials_install DESTINATION bundled MESSAGE_NEVER) | ||
install(DIRECTORY ${BUNDLE_DIR}/eigen_install DESTINATION bundled MESSAGE_NEVER) | ||
install(DIRECTORY ${BUNDLE_DIR}/boost_install DESTINATION bundled MESSAGE_NEVER) | ||
install(DIRECTORY ${BUNDLE_DIR}/qmc_install DESTINATION bundled MESSAGE_NEVER) | ||
install(DIRECTORY ${BUNDLE_DIR}/thread-pool_install DESTINATION bundled MESSAGE_NEVER) | ||
cmake_policy(SET CMP0177 NEW) | ||
|
||
install(DIRECTORY ${CMAKE_SOURCE_DIR}/../python DESTINATION ./ MESSAGE_NEVER) | ||
install(DIRECTORY ${CMAKE_SOURCE_DIR}/../Mathematica DESTINATION ./ MESSAGE_NEVER) |
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 |
---|---|---|
|
@@ -22,5 +22,7 @@ eigen_build/ | |
eigen_install/ | ||
qmc_install/ | ||
thread-pool_install/ | ||
rapidcsv_build/ | ||
rapidcsv_install/ | ||
logs/ | ||
*.log |
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,94 @@ | ||
#!/bin/bash | ||
|
||
# ############################################################################## | ||
# Script setup | ||
# ############################################################################## | ||
|
||
threads='1' | ||
while getopts j:c flag; do | ||
case "${flag}" in | ||
j) threads=${OPTARG} ;; | ||
c) cuda="-c" ;; | ||
?) | ||
exit 2 | ||
;; | ||
esac | ||
done | ||
|
||
source ../config | ||
|
||
################################################################################ | ||
# This script builds all the dependencies for the project. | ||
################################################################################ | ||
|
||
echo " Building QMC..." | ||
bash -i ./build_qmc.sh -j ${threads} &>/dev/null || { | ||
echo " Failed to build qmc, aborting." | ||
exit 1 | ||
} | ||
|
||
echo " Building autodiff..." | ||
bash -i ./build_autodiff.sh -j ${threads} &>/dev/null || { | ||
echo " Failed to build autodiff, aborting." | ||
exit 1 | ||
} | ||
|
||
echo " Building rapidcsv..." | ||
bash -i ./build_rapidcsv.sh -j ${threads} &>/dev/null || { | ||
echo " Failed to build rapidcsv, aborting." | ||
exit 1 | ||
} | ||
|
||
echo " Building Boost..." | ||
bash -i ./build_boost.sh -j ${threads} &>/dev/null || { | ||
echo " Failed to build Boost, aborting." | ||
exit 1 | ||
} | ||
|
||
echo " Building Catch2..." | ||
bash -i ./build_Catch2.sh -j ${threads} &>/dev/null || { | ||
echo " Failed to build Catch2, tests will not work. Continuing setup process." | ||
} | ||
|
||
echo " Building Eigen3..." | ||
bash -i ./build_eigen.sh -j ${threads} &>/dev/null || { | ||
echo " Failed to build Eigen, aborting." | ||
exit 1 | ||
} | ||
|
||
echo " Building thread-pool..." | ||
bash -i ./build_thread-pool.sh -j ${threads} &>/dev/null || { | ||
echo " Failed to build thread-pool, aborting." | ||
exit 1 | ||
} | ||
|
||
echo " Building spdlog..." | ||
bash -i ./build_spdlog.sh -j ${threads} &>/dev/null || { | ||
echo " Failed to build spdlog, aborting." | ||
exit 1 | ||
} | ||
|
||
if [[ "${cuda}" == "-c" ]]; then | ||
echo " Building rmm..." | ||
bash -i ./build_rmm.sh -j ${threads} &>/dev/null || { | ||
echo " Failed to build rmm, CUDA will not work. Continuing setup process." | ||
} | ||
fi | ||
|
||
echo " Building kokkos..." | ||
bash -i ./build_kokkos.sh -j ${threads} &>/dev/null || { | ||
echo " Failed to build kokkos, aborting." | ||
exit 1 | ||
} | ||
|
||
echo " Building sundials..." | ||
bash -i ./build_sundials.sh -j ${threads} &>/dev/null || { | ||
echo " Failed to build SUNDIALS, aborting." | ||
exit 1 | ||
} | ||
|
||
echo " Building deal.II..." | ||
bash -i ./build_dealii.sh -j ${threads} &>/dev/null || { | ||
echo " Failed to build deal.ii, aborting." | ||
exit 1 | ||
} |
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
Oops, something went wrong.