Page MenuHomePhabricator

Cfam
Updated 2,618 Days AgoPublic

Version 2 of 10: You are viewing an older version of this document, as it appeared on Mar 16 2017, 3:56 PM.

Running Jobs

Interactive

salloc

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

sinteractive -p nodes -N 2

You can find the name of the allocated hosts with the following:

$ nodeset -e $SLURM_JOB_NODELIST
highmem01 highmem02

SBATCH

Template submit.sh

#!/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
Last Author
newellz2
Last Edited
Mar 16 2017, 3:56 PM

Document Hierarchy

Event Timeline

newellz2 edited the content of this document. (Show Details)
newellz2 changed the visibility from "All Users" to "Public (No Login Required)".Mar 16 2017, 3:49 PM
newellz2 changed the title from Cfam to CFAM.May 24 2017, 5:15 PM
newellz2 edited the content of this document. (Show Details)
newellz2 edited the content of this document. (Show Details)