Skip to content

Commit

Permalink
Build atl and ffs manually to avoid CMake import error
Browse files Browse the repository at this point in the history
  • Loading branch information
franzpoeschel committed Mar 16, 2023
1 parent a2fc4d1 commit c5469a3
Showing 1 changed file with 37 additions and 1 deletion.
38 changes: 37 additions & 1 deletion library_builders.sh
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,41 @@ function build_adios2 {
tar -xzf adios2*.tar.gz
rm adios2*.tar.gz

CMAKE_BIN="$(${PY_BIN} -m pip show cmake 2>/dev/null | grep Location | cut -d' ' -f2)/cmake/data/bin/"

mkdir build-atl
cd build-atl
PATH=${CMAKE_BIN}:${PATH} cmake \
-DBUILD_SHARED_LIBS=OFF \
-DBUILD_TESTING=OFF \
-DCMAKE_POSITION_INDEPENDENT_CODE=ON \
-DCMAKE_INSTALL_PREFIX=${BUILD_PREFIX} ../ADIOS2-*/thirdparty/atl/atl
make -j${CPU_COUNT}
make install
cd -

mkdir build-dill
cd build-dill
PATH=${CMAKE_BIN}:${PATH} cmake \
-DBUILD_SHARED_LIBS=OFF \
-DBUILD_TESTING=OFF \
-DCMAKE_POSITION_INDEPENDENT_CODE=ON \
-DCMAKE_INSTALL_PREFIX=${BUILD_PREFIX} ../ADIOS2-*/thirdparty/dill/dill
make -j${CPU_COUNT}
make install
cd -

mkdir build-ffs
cd build-ffs
PATH=${CMAKE_BIN}:${PATH} cmake \
-DBUILD_SHARED_LIBS=OFF \
-DBUILD_TESTING=OFF \
-DCMAKE_POSITION_INDEPENDENT_CODE=ON \
-DCMAKE_INSTALL_PREFIX=${BUILD_PREFIX} ../ADIOS2-*/thirdparty/ffs/ffs
make -j${CPU_COUNT}
make install
cd -

# Patch PThread Propagation
# curl -sLo adios-pthread.patch \
# https://patch-diff.githubusercontent.com/raw/ornladios/ADIOS2/pull/2768.patch
Expand All @@ -121,7 +156,6 @@ function build_adios2 {
mkdir build-ADIOS2
cd build-ADIOS2
PY_BIN=$(which python3)
CMAKE_BIN="$(${PY_BIN} -m pip show cmake 2>/dev/null | grep Location | cut -d' ' -f2)/cmake/data/bin/"
if [ "$(uname -s)" = "Linux" ]
then
EVPATH_ZPL="ON"
Expand All @@ -135,6 +169,8 @@ function build_adios2 {
-DBUILD_TESTING=OFF \
-DCMAKE_POSITION_INDEPENDENT_CODE=ON \
-DADIOS2_BUILD_EXAMPLES=OFF \
-DADIOS2_USE_EXTERNAL_ATL=ON \
-DADIOS2_USE_EXTERNAL_FFS=ON \
-DADIOS2_USE_BZip2=OFF \
-DADIOS2_USE_Blosc2=ON \
-DADIOS2_USE_Fortran=OFF \
Expand Down

0 comments on commit c5469a3

Please sign in to comment.