Version 1 vs 2
Version 1 vs 2
Content Changes
Content Changes
=SBATCH
Template **submit.sh**
```
lang=bash
#!/bin/bash
#SBATCH -N 6 # Nodes
#SBATCH -n 100 # Total number of tasks
#SBATCH --exclusive # exclusive lock
#SBATCH --mail-type=end
#SBATCH --mail-user=$YOUR_EMAIL
#SBATCH --workdir=/home/YOUR/PROJECT/PATH
#SBATCH -w highmem01,highmem02,node01,node02,node03,node04
FLUENT_HOSTS=highmem01,highmem02,node01,node02,node03,node04
FLUENT_BIN=~/ansys16/v162/fluent/bin/fluent
export FLUENT_GUI=off
if [ -z "$SLURM_NPROCS" ]; then
N=$(( $(echo $SLURM_TASKS_PER_NODE | sed -r 's/([0-9]+)\(x([0-9]+)\)/\1 * \2/') ))
else
N=$SLURM_NPROCS
fi
echo -e "N: $N\n";
~/ansys16/v162/fluent/bin/fluent 3ddp -g -slurm -ssh \
-cnf=$FLUENT_HOSTS -t $N \
-mpi=openmpi -pinfiniband -i journal
```
=Running Jobs
==Interactive
===salloc
```
lang=bash
salloc -N6 -w node01,node02,node03,node04,node05,node06 \
srun --x11 -N1 /opt/ansys17-2/v172/fluent/bin/fluent -r17.2.0 \
3ddp -t110 -pinfiniband -mpi=openmpi \
-cnf=node01,node02,node03,node04,node05,node06 -nm -ssh
```
**salloc** allocates 6 nodes and **srun --x11** runs an interactive job with X forwarding.
===sinteractive
```
lang=bash
sinteractive -p nodes -N 2
```
You can find the name of the allocated hosts with the following:
```
lang=bash
$ nodeset -e $SLURM_JOB_NODELIST
highmem01 highmem02
```
==SBATCH
Template **submit.sh**
```
lang=bash
#!/bin/bash
#SBATCH -N 6 # Nodes
#SBATCH -n 100 # Total number of tasks
#SBATCH --exclusive # exclusive lock
#SBATCH --mail-type=end
#SBATCH --mail-user=$YOUR_EMAIL
#SBATCH --workdir=/home/YOUR/PROJECT/PATH
#SBATCH -w highmem01,highmem02,node01,node02,node03,node04
FLUENT_HOSTS=highmem01,highmem02,node01,node02,node03,node04
FLUENT_BIN=~/ansys16/v162/fluent/bin/fluent
export FLUENT_GUI=off
if [ -z "$SLURM_NPROCS" ]; then
N=$(( $(echo $SLURM_TASKS_PER_NODE | sed -r 's/([0-9]+)\(x([0-9]+)\)/\1 * \2/') ))
else
N=$SLURM_NPROCS
fi
echo -e "N: $N\n";
~/ansys16/v162/fluent/bin/fluent 3ddp -g -slurm -ssh \
-cnf=$FLUENT_HOSTS -t $N \
-mpi=openmpi -pinfiniband -i journal
```
=Running Jobs
==Interactive
===salloc
```
lang=bash
salloc -N6 -w node01,node02,node03,node04,node05,node06 \
srun --x11 -N1 /opt/ansys17-2/v172/fluent/bin/fluent -r17.2.0 \
3ddp -t110 -pinfiniband -mpi=openmpi \
-cnf=node01,node02,node03,node04,node05,node06 -nm -ssh
```
**salloc** allocates 6 nodes and **srun --x11** runs an interactive job with X forwarding.
===sinteractive
```
lang=bash
sinteractive -p nodes -N 2
```
You can find the name of the allocated hosts with the following:
```
lang=bash
$ nodeset -e $SLURM_JOB_NODELIST
highmem01 highmem02
```
==SBATCH
Template **submit.sh**
```
lang=bash
#!/bin/bash
#SBATCH -N 6 # Nodes
#SBATCH -n 100 # Total number of tasks
#SBATCH --exclusive # exclusive lock
#SBATCH --mail-type=end
#SBATCH --mail-user=$YOUR_EMAIL
#SBATCH --workdir=/home/YOUR/PROJECT/PATH
#SBATCH -w highmem01,highmem02,node01,node02,node03,node04
FLUENT_HOSTS=highmem01,highmem02,node01,node02,node03,node04
FLUENT_BIN=~/ansys16/v162/fluent/bin/fluent
export FLUENT_GUI=off
if [ -z "$SLURM_NPROCS" ]; then
N=$(( $(echo $SLURM_TASKS_PER_NODE | sed -r 's/([0-9]+)\(x([0-9]+)\)/\1 * \2/') ))
else
N=$SLURM_NPROCS
fi
echo -e "N: $N\n";
~/ansys16/v162/fluent/bin/fluent 3ddp -g -slurm -ssh \
-cnf=$FLUENT_HOSTS -t $N \
-mpi=openmpi -pinfiniband -i journal
```