Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Job TypeRun ScriptOptionExample
Serialruncry17inputfilenameruncry17 inputfilename
Parallelrunmpi17${SLURM_NTASKS} inputfilenamerunmpi17 ${SLURM_NTASKS} inputfilename
Distributed Parallelrunmpi17MPP${SLURM_NTASKS} inputfilenamerunmpi17MPP ${SLURM_NTASKS} inputfilename


Example

Example input files and scripts are available at /share/Apps/examples/crystal/test_cases/inputs.

Code Block
languagebash
titleSerial (/share/Apps/examples/crystal/test_cases/runserial.sh)
collapsetrue
#!/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
languagebash
titleParallel (/share/Apps/examples/crystal/test_cases/runparallel.sh)
collapsetrue
#!/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
languagebash
titleDistributed Parallel (/share/Apps/examples/crystal/test_cases/runmpp.sh)
collapsetrue
#!/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
#

User Manual