-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #364 from sfiligoi/stampede3
Add Stampede3 platform
- Loading branch information
Showing
9 changed files
with
184 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
#---------------------------------------------------------- | ||
# STAMPEDE3 (TACC) [Ice Lake nodes] | ||
#---------------------------------------------------------- | ||
|
||
IDENTITY="TACC STAMPEDE3 ICX (ifx)" | ||
CORES_PER_NODE=80 | ||
NUMAS_PER_NODE=2 | ||
|
||
# Compilers and flags | ||
#FC = mpiifx -gen-interfaces -module ${GACODE_ROOT}/modules -I${GACODE_ROOT}/module -I${TACC_FFTW3_INC} | ||
FC = mpiifx -gen-interfaces -module ${GACODE_ROOT}/modules -I${GACODE_ROOT}/module -I${TACC_MKL_INC}/fftw | ||
F77 = ${FC} | ||
|
||
FOMP = -qopenmp | ||
FMATH = -real-size 64 | ||
FOPT = -xICELAKE-SERVER -Ofast | ||
FDEBUG = -eD -Ktrap=fp -m 1 | ||
|
||
# System math libraries | ||
LMATH = -qmkl | ||
|
||
# NetCDF | ||
NETCDF_DIR=$TACC_NETCDF_DIR | ||
NETCDF=-L${NETCDF_DIR}/lib -lnetcdff -lnetcdf | ||
NETCDF_INC = ${NETCDF_DIR}/include | ||
|
||
# Archive | ||
ARCH = ar cr | ||
|
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 @@ | ||
#---------------------------------------------------------- | ||
# STAMPEDE2 (TACC) [Skylake nodes] | ||
# | ||
# - 2x24 cores * 2 hyperthreads | ||
#---------------------------------------------------------- | ||
|
||
IDENTITY="TACC STAMPEDE3 SPR (ifx)" | ||
CORES_PER_NODE=112 | ||
NUMAS_PER_NODE=16 | ||
|
||
# Compilers and flags | ||
#FC = mpiifx -gen-interfaces -module ${GACODE_ROOT}/modules -I${GACODE_ROOT}/module -I${TACC_FFTW3_INC} | ||
FC = mpiifx -gen-interfaces -module ${GACODE_ROOT}/modules -I${GACODE_ROOT}/module -I${TACC_MKL_INC}/fftw | ||
F77 = ${FC} | ||
|
||
FOMP = -qopenmp | ||
FMATH = -real-size 64 | ||
FOPT = -xSAPPHIRERAPIDS -Ofast | ||
FDEBUG = -eD -Ktrap=fp -m 1 | ||
|
||
# System math libraries | ||
LMATH = -qmkl | ||
|
||
# NetCDF | ||
NETCDF_DIR=$TACC_NETCDF_DIR | ||
NETCDF=-L${NETCDF_DIR}/lib -lnetcdff -lnetcdf | ||
NETCDF_INC = ${NETCDF_DIR}/include | ||
|
||
# Archive | ||
ARCH = ar cr | ||
|
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,8 @@ | ||
#!/bin/bash | ||
|
||
if [ -n "$SSH_TTY" ] ; then | ||
echo "Setting up $GACODE_PLATFORM environment for gacode" | ||
fi | ||
|
||
module load python | ||
module load netcdf |
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,8 @@ | ||
#!/bin/bash | ||
|
||
if [ -n "$SSH_TTY" ] ; then | ||
echo "Setting up $GACODE_PLATFORM environment for gacode" | ||
fi | ||
|
||
module load python | ||
module load netcdf |
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 @@ | ||
#! /usr/bin/env bash | ||
# | ||
# FUNCTION: | ||
# Parallel execution script | ||
#--------------------------------------------------- | ||
|
||
simdir=${1} | ||
nmpi=${2} | ||
exec=${3} | ||
nomp=${4} | ||
numa=${5} | ||
mpinuma=${6} | ||
nidle=${7} | ||
|
||
# nmpi = MPI tasks | ||
# nomp = OpenMP threads per MPI task | ||
# numa = NUMAs active per node | ||
# mpinuma = MPI tasks per active NUMA | ||
|
||
. $GACODE_ROOT/shared/bin/gacode_mpi_tool | ||
|
||
cd $simdir | ||
|
||
if [ "$nomp" -lt 2 ]; then | ||
echo "WARNING: This mode should only be used with nomp>=2, detected nomp=$nomp" | ||
fi | ||
|
||
export OMP_NUM_THREADS=$nomp | ||
export OMP_STACKSIZE=32M | ||
echo ibrun $exec | ||
ibrun $exec |
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 @@ | ||
#! /usr/bin/env bash | ||
# | ||
# FUNCTION: | ||
# Parallel execution script | ||
#--------------------------------------------------- | ||
|
||
simdir=${1} | ||
nmpi=${2} | ||
exec=${3} | ||
nomp=${4} | ||
numa=${5} | ||
mpinuma=${6} | ||
nidle=${7} | ||
|
||
# nmpi = MPI tasks | ||
# nomp = OpenMP threads per MPI task | ||
# numa = NUMAs active per node | ||
# mpinuma = MPI tasks per active NUMA | ||
|
||
. $GACODE_ROOT/shared/bin/gacode_mpi_tool | ||
|
||
cd $simdir | ||
|
||
if [ "$nomp" -lt 2 ]; then | ||
echo "WARNING: This mode should only be used with nomp>=2, detected nomp=$nomp" | ||
fi | ||
|
||
export OMP_NUM_THREADS=$nomp | ||
export OMP_STACKSIZE=32M | ||
echo ibrun $exec | ||
ibrun $exec |
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,21 @@ | ||
#!/bin/bash | ||
|
||
echo "-queue: icx" | ||
|
||
# Default queue | ||
if [ "$QUEUE" == "null_queue" ] ; then | ||
QUEUE=spr | ||
fi | ||
|
||
bfile=$SIMDIR/batch.src | ||
|
||
echo "#!/bin/bash -l" > $bfile | ||
echo "#SBATCH -J $LOCDIR" >> $bfile | ||
#echo "#SBATCH -A $REPO" >> $bfile | ||
echo "#SBATCH -o $SIMDIR/batch.out" >> $bfile | ||
echo "#SBATCH -e $SIMDIR/batch.err" >> $bfile | ||
echo "#SBATCH -p $QUEUE" >> $bfile | ||
echo "#SBATCH -t $WALLTIME" >> $bfile | ||
echo "#SBATCH -N $nodes" >> $bfile | ||
echo "#SBATCH -n $nmpi" >> $bfile | ||
echo "$CODE -e $LOCDIR -n $nmpi -nomp $nomp -numa $numa -mpinuma $mpinuma -p $SIMROOT" >> $bfile |
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,21 @@ | ||
#!/bin/bash | ||
|
||
echo "-queue: spr" | ||
|
||
# Default queue | ||
if [ "$QUEUE" == "null_queue" ] ; then | ||
QUEUE=spr | ||
fi | ||
|
||
bfile=$SIMDIR/batch.src | ||
|
||
echo "#!/bin/bash -l" > $bfile | ||
echo "#SBATCH -J $LOCDIR" >> $bfile | ||
#echo "#SBATCH -A $REPO" >> $bfile | ||
echo "#SBATCH -o $SIMDIR/batch.out" >> $bfile | ||
echo "#SBATCH -e $SIMDIR/batch.err" >> $bfile | ||
echo "#SBATCH -p $QUEUE" >> $bfile | ||
echo "#SBATCH -t $WALLTIME" >> $bfile | ||
echo "#SBATCH -N $nodes" >> $bfile | ||
echo "#SBATCH -n $nmpi" >> $bfile | ||
echo "$CODE -e $LOCDIR -n $nmpi -nomp $nomp -numa $numa -mpinuma $mpinuma -p $SIMROOT" >> $bfile |