-
Notifications
You must be signed in to change notification settings - Fork 96
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Build adios2 for the first ubuntu build
- Loading branch information
Showing
2 changed files
with
68 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,62 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
if test $BUILD_ADIOS2 ; then | ||
if [[ ! -d $HOME/local/adios/include/adios2.h ]] || test $1 ; then | ||
echo "****************************************" | ||
echo "Building ADIOS2" | ||
echo "****************************************" | ||
|
||
branch=${1:-release_29} | ||
if [ ! -d adios2 ]; then | ||
git clone -b $branch https://github.com/ornladios/ADIOS2.git adios2 --depth=1 | ||
fi | ||
|
||
pushd adios2 | ||
rm -rf build | ||
mkdir -p build | ||
pushd build | ||
|
||
cmake .. \ | ||
-DCMAKE_INSTALL_PREFIX=$HOME/local/adios2 \ | ||
-DADIOS2_USE_MPI=ON \ | ||
-DADIOS2_USE_Fortran=OFF \ | ||
-DADIOS2_USE_Python=OFF \ | ||
-DADIOS2_BUILD_EXAMPLES=OFF \ | ||
-DCMAKE_BUILD_TYPE=Release \ | ||
-DCMAKE_POSITION_INDEPENDENT_CODE=ON \ | ||
-DADIOS2_BUILD_TESTING=OFF \ | ||
-DADIOS2_USE_SST=OFF \ | ||
-DADIOS2_USE_MGARD=OFF \ | ||
-DADIOS2_USE_HDF5=OFF \ | ||
-DADIOS2_USE_BZip2=OFF \ | ||
-DADIOS2_USE_Blosc2=OFF \ | ||
-DADIOS2_USE_SZ=OFF \ | ||
-DADIOS2_USE_ZFP=OFF \ | ||
-DADIOS2_USE_DAOS=OFF \ | ||
-DADIOS2_USE_UCX=OFF \ | ||
-DADIOS2_USE_LIBPRESSIO=OFF \ | ||
-DADIOS2_USE_Sodium=OFF \ | ||
-DADIOS2_USE_ZeroMQ=OFF \ | ||
-DADIOS2_USE_MHS=OFF \ | ||
-DADIOS2_USE_DataMan=OFF | ||
|
||
make -j 4 && make install | ||
popd | ||
|
||
echo "****************************************" | ||
echo " Finished building ADIOS2" | ||
echo "****************************************" | ||
|
||
else | ||
|
||
echo "****************************************" | ||
echo " ADIOS2 already installed" | ||
echo "****************************************" | ||
fi | ||
else | ||
echo "****************************************" | ||
echo " ADIOS2 not requested" | ||
echo "****************************************" | ||
fi |
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