-
Notifications
You must be signed in to change notification settings - Fork 66
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 #342 from koarakawaii/main-scripts_update_for_TwnI…
…II_and_forerunner Add/Update submit scripts and configure files for Forerunner/TaiwaniaIII
- Loading branch information
Showing
8 changed files
with
270 additions
and
21 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,50 @@ | ||
# forerunnerI | ||
### Caution!! Load modules under module_CALAB on TwnIII first before compiling, such that FFTW3_PATH, MPI_PATH, HDF5_PATH and GSL_PATH can be found: | ||
### module use /home/d07222009/module_CALAB | ||
### module load gnu_13.2.0/gcc/13.2.0 gnu_13.2.0/fftw/3.3.10 gnu_13.2.0/gsl/2.8.0 gnu_13.2.0/hdf5/1.14.4 gnu_13.2.0/openmpi/5.0.0 gnu_13.2.0/openucx/1.18.0 | ||
### | ||
CUDA_PATH | ||
FFTW2_PATH | ||
FFTW3_PATH $(FFTW3_PATH) | ||
MPI_PATH $(MPI_PATH) | ||
HDF5_PATH $(HDF5_PATH) | ||
GRACKLE_PATH | ||
GSL_PATH $(GSL_PATH) | ||
LIBYT_PATH | ||
CUFFTDX_PATH | ||
|
||
# compilers | ||
CXX g++-13.2.0 | ||
CXX_MPI mpicxx | ||
|
||
# flags | ||
CXXFLAG -g | ||
CXXFLAG -O3 | ||
#CXXFLAG -std=c++11 | ||
#CXXFLAG -Ofast | ||
CXXFLAG -Wall | ||
CXXFLAG -Wextra | ||
CXXFLAG -Wno-unused-variable | ||
CXXFLAG -Wno-unused-parameter | ||
CXXFLAG -Wno-maybe-uninitialized | ||
CXXFLAG -Wno-unused-but-set-variable | ||
CXXFLAG -Wno-unused-function | ||
CXXFLAG -Wno-unused-result | ||
CXXFLAG -Wno-implicit-fallthrough | ||
CXXFLAG -Wno-parentheses | ||
CXXFLAG -Wno-unknown-pragmas | ||
|
||
OPENMPFLAG -fopenmp | ||
|
||
LIBFLAG | ||
|
||
NVCCFLAG_COM -O3 | ||
#NVCCFLAG_COM -use_fast_math | ||
NVCCFLAG_FLU -Xptxas -dlcm=ca -prec-div=false -ftz=true | ||
NVCCFLAG_POT -Xptxas -dlcm=ca | ||
|
||
# for debugging | ||
#CXXFLAG -fstack-protector-all | ||
#CXXFLAG -fstack-protector-strong | ||
#CXXFLAG -fsanitize=undefined -fsanitize=address | ||
#LIBFLAG -fsanitize=undefined -fsanitize=address |
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,42 @@ | ||
# forerunnerI | ||
### Caution!! Load modules under module_CALAB on TwnIII first before compiling, such that FFTW3_PATH, MPI_PATH, HDF5_PATH and GSL_PATH can be found: | ||
### module use /home/d07222009/module_CALAB | ||
### module load intel/2024_01_46 oneapi_2024/fftw/3.3.10 oneapi_2024/gsl/2.8.0 oneapi_2024/hdf5/1.14.4 oneapi_2024/openmpi/5.0.0 oneapi_2024/openucx/1.18.0 | ||
### | ||
CUDA_PATH | ||
FFTW2_PATH | ||
FFTW3_PATH $(FFTW3_PATH) | ||
MPI_PATH $(MPI_PATH) | ||
HDF5_PATH $(HDF5_PATH) | ||
GRACKLE_PATH | ||
GSL_PATH $(GSL_PATH) | ||
LIBYT_PATH | ||
CUFFTDX_PATH | ||
|
||
# compilers | ||
CXX icpx | ||
CXX_MPI mpicxx | ||
|
||
# flags | ||
# for warning flags fro oneapi, see: https://www.intel.com/content/dam/develop/external/us/en/documents/oneapi_dpcpp_cpp_compiler.pdf | ||
CXXFLAG -g | ||
CXXFLAG -O3 | ||
CXXFLAG -fp-model precise -fstack-protector-all | ||
#CXXFLAG -std=c++11 | ||
#CXXFLAG -gxx-name=YOUR_G++ | ||
CXXFLAG -Werror -Wfatal-errors -Woverflow | ||
CXXFLAG -Wno-uninitialized -Wno-absolute-value -Wno-unknown-pragmas -diag-disable 3180 -diag-disable 10441 | ||
|
||
OPENMPFLAG -qopenmp | ||
|
||
LIBFLAG -limf | ||
|
||
NVCCFLAG_COM -O3 | ||
#NVCCFLAG_COM -use_fast_math | ||
NVCCFLAG_FLU -Xptxas -dlcm=ca -prec-div=false -ftz=true | ||
NVCCFLAG_POT -Xptxas -dlcm=ca | ||
|
||
# for debugging | ||
#CXXFLAG -fstack-protector-all | ||
#CXXFLAG -fstack-protector-strong # somehow it can capture issues not detected by -fstack-protector-all | ||
#LIBFLAG -lssp |
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,51 @@ | ||
# TaiwaniaIII | ||
### Caution!! Load modules under module_CALAB on TwnIII first before compiling, such that FFTW3_PATH, MPI_PATH, HDF5_PATH and GSL_PATH can be found: | ||
### module use /home/d07222009/module_CALAB | ||
### module load gcc/13.2.0 gnu_13.2.0/fftw/3.3.10 gnu_13.2.0/gsl/2.8.0 gnu_13.2.0/hdf5/1.14.4 gnu_13.2.0/openmpi/5.0.5 gnu_13.2.0/openucx/1.18.0 | ||
### | ||
CUDA_PATH | ||
FFTW2_PATH | ||
FFTW3_PATH $(FFTW3_PATH) | ||
MPI_PATH $(MPI_PATH) | ||
HDF5_PATH $(HDF5_PATH) | ||
GRACKLE_PATH | ||
GSL_PATH $(GSL_PATH) | ||
LIBYT_PATH | ||
CUFFTDX_PATH | ||
|
||
# compilers | ||
CXX g++ | ||
CXX_MPI mpicxx | ||
|
||
# flags | ||
CXXFLAG -g | ||
CXXFLAG -O3 | ||
CXXFLAG -std=c++11 | ||
#CXXFLAG -Ofast | ||
CXXFLAG -Wall | ||
CXXFLAG -Wextra | ||
CXXFLAG -Wno-unused-variable | ||
CXXFLAG -Wno-unused-parameter | ||
CXXFLAG -Wno-maybe-uninitialized | ||
CXXFLAG -Wno-unused-but-set-variable | ||
CXXFLAG -Wno-unused-function | ||
CXXFLAG -Wno-unused-result | ||
CXXFLAG -Wno-implicit-fallthrough | ||
CXXFLAG -Wno-parentheses | ||
CXXFLAG -Wno-unknown-pragmas | ||
CXXFLAG -Wno-cast-function-type | ||
|
||
OPENMPFLAG -fopenmp | ||
|
||
LIBFLAG | ||
|
||
NVCCFLAG_COM -O3 | ||
#NVCCFLAG_COM -use_fast_math | ||
NVCCFLAG_FLU -Xptxas -dlcm=ca -prec-div=false -ftz=true | ||
NVCCFLAG_POT -Xptxas -dlcm=ca | ||
|
||
# for debugging | ||
#CXXFLAG -fstack-protector-all | ||
#CXXFLAG -fstack-protector-strong | ||
#CXXFLAG -fsanitize=undefined -fsanitize=address | ||
#LIBFLAG -fsanitize=undefined -fsanitize=address |
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,41 @@ | ||
# TaiwaniaIII | ||
### Caution!! Load modules under module_CALAB on TwnIII first before compiling, such that FFTW3_PATH, MPI_PATH, HDF5_PATH and GSL_PATH can be found: | ||
### module use /home/d07222009/module_CALAB | ||
### module load intel/2024 intel_2024/fftw/3.3.10 intel_2024/gsl/2.8.0 intel_2024/hdf5/1.14.4 intel_2024/openmpi/5.0.5 intel_2024/openucx/1.18.0 | ||
### | ||
CUDA_PATH | ||
FFTW2_PATH | ||
FFTW3_PATH $(FFTW3_PATH) | ||
MPI_PATH $(MPI_PATH) | ||
HDF5_PATH $(HDF5_PATH) | ||
GRACKLE_PATH | ||
GSL_PATH $(GSL_PATH) | ||
LIBYT_PATH | ||
CUFFTDX_PATH | ||
|
||
# compilers | ||
CXX icpx | ||
CXX_MPI mpicxx | ||
|
||
# flags | ||
CXXFLAG -g | ||
CXXFLAG -O3 | ||
CXXFLAG -fp-model precise -fstack-protector-all | ||
#CXXFLAG -std=c++11 | ||
#CXXFLAG -gxx-name=YOUR_G++ | ||
CXXFLAG -Werror -Wfatal-errors -Woverflow | ||
CXXFLAG -Wno-uninitialized -Wno-absolute-value -Wno-unknown-pragmas -diag-disable 3180 -diag-disable 10441 | ||
|
||
OPENMPFLAG -qopenmp | ||
|
||
LIBFLAG -limf | ||
|
||
NVCCFLAG_COM -O3 | ||
#NVCCFLAG_COM -use_fast_math | ||
NVCCFLAG_FLU -Xptxas -dlcm=ca -prec-div=false -ftz=true | ||
NVCCFLAG_POT -Xptxas -dlcm=ca | ||
|
||
# for debugging | ||
#CXXFLAG -fstack-protector-all | ||
#CXXFLAG -fstack-protector-strong # somehow it can capture issues not detected by -fstack-protector-all | ||
#LIBFLAG -lssp |
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,32 @@ | ||
#!/bin/bash | ||
|
||
################################################################# | ||
# OpenMPI(compiled by GNU) job script example # | ||
################################################################# | ||
|
||
#SBATCH --account=ACCOUNT # (-A) Account/project number | ||
#SBATCH --job-name=JOB_NAME # (-J) Job name | ||
#SBATCH --partition=ct448 # (-p) Specific slurm partition | ||
#SBATCH --nodes=2 # (-N) Maximum number of nodes to be allocated | ||
#SBATCH --ntasks=32 # (-n) Number of total MPI tasks (i.e. processes) | ||
#SBATCH --cpus-per-task=7 # (-c) Number of cores per MPI task | ||
#SBATCH --ntasks-per-node=16 # Maximum number of tasks on each node | ||
#SBATCH --mem=482000M # Memory limit per compute node for the job. Do not use with mem-per-cpu flag. | ||
#SBATCH --time=2:00:00 # (-t) Wall time limit (days-hrs:min:sec) | ||
##SBATCH -o job.%j.out | ||
##SBATCH -e job.%j.err | ||
##SBATCH --mail-type=BEGIN,END,FAIL # Mail events (NONE, BEGIN, END, FAIL, ALL) | ||
##SBATCH --mail-user=EMAIL_ADDRESS # Where to send mail. Set this to your email address | ||
##SBATCH --exclude=icpnp[101-102,255-256] # Example for excluding specified nodes | ||
|
||
LOG_FILE=log | ||
|
||
module purge | ||
module use /home/d07222009/module_CALAB | ||
module load gnu_13.2.0/gcc/13.2.0 gnu_13.2.0/fftw/3.3.10 gnu_13.2.0/gsl/2.8.0 gnu_13.2.0/hdf5/1.14.4 gnu_13.2.0/openmpi/5.0.0 gnu_13.2.0/openucx/1.18.0 | ||
module list 1>>$LOG_FILE 2>&1 | ||
|
||
# See: https://docs.open-mpi.org/en/v5.0.x/man-openmpi/man1/mpirun.1.html#the-map-by-option | ||
# There are 8 NUMA nodes on each node, 4 per socket | ||
mpirun -map-by ppr:2:numa:pe=7 --report-bindings ./gamer 1>>$LOG_FILE 2>&1 | ||
echo "=============================================================" >> $LOG_FILE |
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,32 @@ | ||
#!/bin/bash | ||
|
||
################################################################# | ||
# OpenMPI(compiled by OneAPI) job script example # | ||
################################################################# | ||
|
||
#SBATCH --account=ACCOUNT # (-A) Account/project number | ||
#SBATCH --job-name=JOB_NAME # (-J) Job name | ||
#SBATCH --partition=ct448 # (-p) Specific slurm partition | ||
#SBATCH --nodes=2 # (-N) Maximum number of nodes to be allocated | ||
#SBATCH --ntasks=32 # (-n) Number of total MPI tasks (i.e. processes) | ||
#SBATCH --cpus-per-task=7 # (-c) Number of cores per MPI task | ||
#SBATCH --ntasks-per-node=16 # Maximum number of tasks on each node | ||
#SBATCH --mem=482000M # Memory limit per compute node for the job. Do not use with mem-per-cpu flag. | ||
#SBATCH --time=2:00:00 # (-t) Wall time limit (days-hrs:min:sec) | ||
##SBATCH -o job.%j.out | ||
##SBATCH -e job.%j.err | ||
##SBATCH --mail-type=BEGIN,END,FAIL # Mail events (NONE, BEGIN, END, FAIL, ALL) | ||
##SBATCH --mail-user=EMAIL_ADDRESS # Where to send mail. Set this to your email address | ||
##SBATCH --exclude=icpnp[101-102,255-256] # Example for excluding specified nodes | ||
|
||
LOG_FILE=log | ||
|
||
module purge | ||
module use /home/d07222009/module_CALAB | ||
module load intel/2024_01_46 oneapi_2024/fftw/3.3.10 oneapi_2024/gsl/2.8.0 oneapi_2024/hdf5/1.14.4 oneapi_2024/openmpi/5.0.0 oneapi_2024/openucx/1.18.0 | ||
module list 1>>$LOG_FILE 2>&1 | ||
|
||
# See: https://docs.open-mpi.org/en/v5.0.x/man-openmpi/man1/mpirun.1.html#the-map-by-option | ||
# There are 8 NUMA nodes on each node, 4 per socket | ||
mpirun -map-by ppr:2:numa:pe=7 --report-bindings ./gamer 1>>$LOG_FILE 2>&1 | ||
echo "=============================================================" >> $LOG_FILE |
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