-
Notifications
You must be signed in to change notification settings - Fork 200
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Docs: update instructions for Fugaku supercomputer (Riken, Japan) (#4656
) * update instructions for the Fugaku supercomputer * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * add missing instruction * update Fugaku instructions * fix bug * fix bug * fix bug * fix bug * fix bug * fix bug * fix issue with Fujitsu compiler * update install_dependencies script to save some space * delete BinaryCollision move constructor * update compilation instructions * update submission script --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
- Loading branch information
1 parent
32c5b92
commit 5a7c325
Showing
5 changed files
with
126 additions
and
37 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
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,31 @@ | ||
. /vol0004/apps/oss/spack/share/spack/setup-env.sh | ||
|
||
# required dependencies | ||
spack load cmake@3.24.3%fj@4.10.0 arch=linux-rhel8-a64fx | ||
|
||
# avoid harmless warning messages "[WARN] xos LPG [...]" | ||
export LD_LIBRARY_PATH=/lib64:$LD_LIBRARY_PATH | ||
|
||
# optional: faster builds | ||
spack load ninja@1.11.1%fj@4.10.0 | ||
|
||
# optional: for PSATD | ||
spack load fujitsu-fftw | ||
|
||
# optional: for QED lookup table generation support | ||
spack load boost@1.80.0%fj@4.8.1/zc5pwgc | ||
|
||
# optional: for openPMD support | ||
spack load hdf5@1.12.2%fj@4.8.1/im6lxev | ||
export CMAKE_PREFIX_PATH=${HOME}/sw/fugaku/a64fx/c-blosc-1.21.1-install:$CMAKE_PREFIX_PATH | ||
export CMAKE_PREFIX_PATH=${HOME}/sw/fugaku/a64fx/adios2-2.8.3-install:$CMAKE_PREFIX_PATH | ||
|
||
# compiler environment hints | ||
export CC=$(which mpifcc) | ||
export CXX=$(which mpiFCC) | ||
export FC=$(which mpifrt) | ||
export CFLAGS="-O3 -Nclang -Nlibomp -Klib -g -DNDEBUG" | ||
export CXXFLAGS="-O3 -Nclang -Nlibomp -Klib -g -DNDEBUG" | ||
|
||
# avoid harmless warning messages "[WARN] xos LPG [...]" | ||
export LD_LIBRARY_PATH=/lib64:$LD_LIBRARY_PATH |
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,53 @@ | ||
#!/bin/bash | ||
# | ||
# Copyright 2023 The WarpX Community | ||
# | ||
# This file is part of WarpX. | ||
# | ||
# Author: Axel Huebl, Luca Fedeli | ||
# License: BSD-3-Clause-LBNL | ||
|
||
# Exit on first error encountered ############################################# | ||
# | ||
set -eu -o pipefail | ||
|
||
# Remove old dependencies ##################################################### | ||
# | ||
SRC_DIR="${HOME}/src/" | ||
SW_DIR="${HOME}/sw/fugaku/a64fx/" | ||
rm -rf ${SW_DIR} | ||
mkdir -p ${SW_DIR} | ||
mkdir -p ${SRC_DIR} | ||
|
||
# General extra dependencies ################################################## | ||
# | ||
|
||
# c-blosc (I/O compression) | ||
if [ -d ${SRC_DIR}/c-blosc ] | ||
then | ||
cd ${SRC_DIR}/c-blosc | ||
git fetch --prune | ||
git checkout v1.21.1 | ||
cd - | ||
else | ||
git clone -b v1.21.1 https://github.com/Blosc/c-blosc.git ${SRC_DIR}/c-blosc | ||
fi | ||
rm -rf ${SRC_DIR}/c-blosc-fugaku-build | ||
cmake -S ${SRC_DIR}/c-blosc -B ${SRC_DIR}/c-blosc-fugaku-build -DBUILD_SHARED_LIBS=OFF -DBUILD_SHARED=OFF -DBUILD_STATIC=ON -DBUILD_TESTS=OFF -DBUILD_FUZZERS=OFF -DBUILD_BENCHMARKS=OFF -DDEACTIVATE_AVX2=OFF -DCMAKE_INSTALL_PREFIX=${SW_DIR}/c-blosc-1.21.1-install | ||
cmake --build ${SRC_DIR}/c-blosc-fugaku-build --target install --parallel 48 | ||
rm -rf ${SRC_DIR}/c-blosc-fugaku-build | ||
|
||
# ADIOS2 (I/O) | ||
if [ -d ${SRC_DIR}/c-blosc ] | ||
then | ||
cd ${SRC_DIR}/adios2 | ||
git fetch --prune | ||
git checkout v2.8.3 | ||
cd - | ||
else | ||
git clone -b v2.8.3 https://github.com/ornladios/ADIOS2.git ${SRC_DIR}/adios2 | ||
fi | ||
rm -rf ${SRC_DIR}/adios2-fugaku-build | ||
cmake -S ${SRC_DIR}/adios2 -B ${SRC_DIR}/adios2-fugaku-build -DBUILD_SHARED_LIBS=OFF -DADIOS2_USE_Blosc=ON -DBUILD_TESTING=OFF -DADIOS2_USE_Fortran=OFF -DADIOS2_USE_Python=OFF -DADIOS2_USE_ZeroMQ=OFF -DCMAKE_INSTALL_PREFIX=${SW_DIR}/adios2-2.8.3-install | ||
cmake --build ${SRC_DIR}/adios2-fugaku-build --target install -j 48 | ||
rm -rf ${SRC_DIR}/adios2-fugaku-build |
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