Skip to content

Commit

Permalink
Polaris: PHDF5
Browse files Browse the repository at this point in the history
The Cray module and the regular HDF5 module seem to be
both broken for us in Polaris. Let's just build our
own as we do on LUMI.
  • Loading branch information
ax3l committed Oct 9, 2024
1 parent 27181aa commit 925abef
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
19 changes: 19 additions & 0 deletions Tools/machines/polaris-alcf/install_gpu_dependencies.sh
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,25 @@ cmake -S $HOME/src/c-blosc -B $HOME/src/c-blosc-pm-gpu-build -DBUILD_TESTS=OFF -
cmake --build $HOME/src/c-blosc-pm-gpu-build --target install --parallel 16
rm -rf $HOME/src/c-blosc-pm-gpu-build

# HDF5 (for openPMD)
if [ -d $HOME/src/hdf5 ]
then
cd $HOME/src/hdf5
git fetch --prune
git checkout hdf5-1_14_1-2
cd -
else
git clone -b hdf5-1_14_1-2 https://github.com/HDFGroup/hdf5.git $HOME/src/hdf5
fi
rm -rf $HOME/src/hdf5-build
cmake -S $HOME/src/hdf5 \
-B $HOME/src/hdf5-build \
-DBUILD_TESTING=OFF \
-DHDF5_ENABLE_PARALLEL=ON \
-DCMAKE_INSTALL_PREFIX=${SW_DIR}/hdf5-1.14.1.2
cmake --build $HOME/src/hdf5-build --target install --parallel 10
rm -rf $HOME/src/hdf5-build

# ADIOS2
if [ -d $HOME/src/adios2 ]
then
Expand Down
3 changes: 3 additions & 0 deletions Tools/machines/polaris-alcf/polaris_gpu_warpx.profile.example
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,18 @@ module load boost
# optional: for openPMD and PSATD+RZ support
module load hdf5/1.14.3
export CMAKE_PREFIX_PATH=/home/${USER}/sw/polaris/gpu/c-blosc-1.21.1:$CMAKE_PREFIX_PATH
export CMAKE_PREFIX_PATH=/home/${USER}/sw/polaris/gpu/hdf5-1.14.1.2:$CMAKE_PREFIX_PATH
export CMAKE_PREFIX_PATH=/home/${USER}/sw/polaris/gpu/adios2-2.8.3:$CMAKE_PREFIX_PATH
export CMAKE_PREFIX_PATH=/home/${USER}/sw/polaris/gpu/blaspp-2024.05.31:$CMAKE_PREFIX_PATH
export CMAKE_PREFIX_PATH=/home/${USER}/sw/polaris/gpu/lapackpp-2024.05.31:$CMAKE_PREFIX_PATH

export LD_LIBRARY_PATH=/home/${USER}/sw/polaris/gpu/c-blosc-1.21.1/lib64:$LD_LIBRARY_PATH
export LD_LIBRARY_PATH=/home/${USER}/sw/polaris/gpu/hdf5-1.14.1.2/lib64:$LD_LIBRARY_PATH
export LD_LIBRARY_PATH=/home/${USER}/sw/polaris/gpu/adios2-2.8.3/lib64:$LD_LIBRARY_PATH
export LD_LIBRARY_PATH=/home/${USER}/sw/polaris/gpu/blaspp-2024.05.31/lib64:$LD_LIBRARY_PATH
export LD_LIBRARY_PATH=/home/${USER}/sw/polaris/gpu/lapackpp-2024.05.31/lib64:$LD_LIBRARY_PATH

export PATH=/home/${USER}/sw/polaris/gpu/hdf5-1.14.1.2/bin:${PATH}
export PATH=/home/${USER}/sw/polaris/gpu/adios2-2.8.3/bin:${PATH}

# optional: for Python bindings or libEnsemble
Expand Down

0 comments on commit 925abef

Please sign in to comment.