Skip to content

Instantly share code, notes, and snippets.

@tkphd
Created March 16, 2017 19:01
Show Gist options
  • Save tkphd/69654153cc4f51746b9606b378437811 to your computer and use it in GitHub Desktop.
Save tkphd/69654153cc4f51746b9606b378437811 to your computer and use it in GitHub Desktop.
#!/bin/bash
#SBATCH --partition rack6i # -p, partition
#SBATCH --time 12:00:00 # -t, time (hh:mm:ss or dd-hh:mm:ss)
#SBATCH --nodes=2 # total number of machines
#SBATCH --ntasks=4 # 2 sockets per rack6i machine
#SBATCH --cpus-per-task=28 # 28 OMP threads per rack6i MPI rank
#SBATCH -J Alloy625
#SBATCH -D /data/tnk10/phase-field/alloy625/run2/TKR4p074
export OMP_NUM_THREADS=$SLURM_CPUS_PER_TASK
# Hardware notes:
# rack6: AMD Opteron 6386 SE @ 2.8GHZ, 4 sockets, 64 cores, 64 threads per node
# rack6i: Intel Xeon E5-2697v3 @ 2.6GHZ, 2 sockets, 28 cores, 56 threads per node
# Usage: for hybrid MPI+OpenMP on rack6, compile using make ibtest,
# set --ntasks (-n) equal to the number of target sockets,
# set --cpus-per-task (-c) to a multiple of 16, then launch
# sbatch CTCMS_sbatch.sh
cd /data/tnk10/phase-field/alloy625/run2/TKR4p074
SRCDIR=/users/tnk10/research/projects/phase-field/Zhou718
SCRIPT=ibtest
/usr/local/bin/mpirun --bind-to core $SRCDIR/./$SCRIPT --example 2 superalloy.dat
/usr/local/bin/mpirun --bind-to core $SRCDIR/./$SCRIPT superalloy.dat 200000000 1000000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment