...
Job Type | Run Script | Option | Example |
---|
Serial | runcry17 | inputfilename | runcry17 inputfilename |
Parallel | runmpi17 | ${SLURM_NTASKS} inputfilename | runmpi17 ${SLURM_NTASKS} inputfilename |
Distributed Parallel | runmpi17MPP | ${SLURM_NTASKS} inputfilename | runmpi17MPP ${SLURM_NTASKS} inputfilename |
Example
Example input files and scripts are available at /share/Apps/examples/crystal/test_cases/inputs.
Code Block |
---|
language | bash |
---|
title | Serial (/share/Apps/examples/crystal/test_cases/runserial.sh) |
---|
collapse | true |
---|
|
#!/bin/bash
#SBATCH -t 12:00:00
#SBATCH -p health
#SBATCH --ntasks-per-node=1
#SBATCH --nodes=1
#SBATCH -J crystal17_serial
module load crystal17/1.0.2
cd ${SLURM_SUBMIT_DIR}
cd serial
# Run a specific example
runcry17 test04
runprop17 test04 test04
# Run all examples
#for id in $(ls test??.* | awk -F. '{print $1}' | sort | uniq | sed -e 's/test//g' | xargs)
#do
# runcry17 test$id
# runprop17 test$id test$id
#done |
Code Block |
---|
language | bash |
---|
title | Parallel (/share/Apps/examples/crystal/test_cases/runparallel.sh) |
---|
collapse | true |
---|
|
#!/bin/bash
#SBATCH -t 12:00:00
#SBATCH -p health
#SBATCH --ntasks-per-node=12
#SBATCH --nodes=1
#SBATCH -J crystal17_parallel
module load crystal17/1.0.2
cd ${SLURM_SUBMIT_DIR}
cd parallel
# Run a specific example
runcry17 ${SLURM_NTASKS} test07
runprop17 ${SLURM_NTASKS} test07 test07
# Run all examples
#for id in $(ls test??.* | awk -F. '{print $1}' | sort | uniq | sed -e 's/test//g' | xargs)
#do
# runmpi17 ${SLURM_NTASKS} test$id
# runmpi_prop17 ${SLURM_NTASKS} test$id test$id
#done |
Code Block |
---|
language | bash |
---|
title | Distributed Parallel (/share/Apps/examples/crystal/test_cases/runmpp.sh) |
---|
collapse | true |
---|
|
#!/bin/bash
#SBATCH -t 12:00:00
#SBATCH -p health
#SBATCH --ntasks-per-node=12
#SBATCH --nodes=2
#SBATCH -J crystal17_mpp
module load crystal17/1.0.2
cd ${SLURM_SUBMIT_DIR}
cd mpp
# Run a specific example
runcry17 ${SLURM_NTASKS} test22
runprop17 ${SLURM_NTASKS} test22 test22
# Run all examples
#for id in $(ls test??.* | awk -F. '{print $1}' | sort | uniq | sed -e 's/test//g' | xargs)
#do
# runmpi17MPP ${SLURM_NTASKS} test$id
# runmpi_prop17 ${SLURM_NTASKS} test$id test$id
#done
# |
Links
User Manual