Abaqus Parallel multi-node job

Foe detailed user guide see e.g. Abaqus User Gude, Parallel Execution

To run abaqus on several nodes in parallel you can use the following procedure:


module purge
module load abaqus

Then you can adapt the following slurm submission script, e.g. to launch abaqus job on 2 nodes in mpi mode:

 

#!/bin/bash
#SBATCH --time=24:00:00
#SBATCH --nodes=2
#SBATCH --partition=all
#SBATCH --ntasks-per-node=8
#SBATCH --job-name="abaqusmpi"

#input file
INPUT=Beam1
EXECUTABLE=abaqus

unset SLURM_GTIDS
srun mkdir -p /scratch/${SLURM_JOBID}

cp -f /share/apps/EC_STRUCT_SIM/ABAQUS/abaqus_v6.env ./

hosts="mp_host_list=["

for hostn in `srun hostname`;
do
        hosts1="$hosts['$hostn',1]"
        hosts=$hosts1
done
hosts2="${hosts//][/],[}]"
echo $hosts2 >> abaqus_v6.env


##some arguments if needed for executable

userfile=""

# otherwise if user fortran subroutines are needed, define userfile below
#userfile="user=userfile.f"

ARGS="cpus=${SLURM_NTASKS} scratch=/scratch/${SLURM_JOBID} ${userfile} input=${INPUT}.inp mp_mode=mpi interactive"

rm -f *.lck  # to clean previous run lock file


# launch it


${EXECUTABLE} job=${INPUT} input=$INPUT.inp ${ARGS}

sleep 10
#
while [ -f ${INPUT}.lck ]; do
  sleep 5
done
# terminate gracefully
abaqus terminate ${INPUT}
# clean up
srun rm -fr /scratch/${SLURM_JOBID}

Leave a Comment


NOTE - You can use these HTML tags and attributes:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

css.php