Abaqus : Exemple de script multi-noeud
Article mis en ligne le 2 juin 2020
#!/bin/bash
#SBATCH -J INP_v11
#SBATCH -N 2
#SBATCH -n 72
#SBATCH --time=01:00:00
#SBATCH --ntasks-per-node=36
#SBATCH --ntasks-per-core=1

module purge

module load intel/09.1
module load intelmpi/13.2
module load intel/12.1.5
#module show abaqus/2016
#module load intel/18.2
#module load intelmpi/18.2

export OMP_NUM_THREADS=1

export HERE=`pwd`
export WD=/tmpdir/$LOGNAME/TEST_ABAQUS/$SLURM_JOBID
mkdir $WD

cp $HERE/INP_v11.inp $WD
cp $HERE/INP_v11.cmd $WD
cp $HERE/ldc_v11.f $WD


cd $WD
cp /usr/local/abaqus/abaqus2016/linux_a64/SMA/site/abaqus_v6.env .

node_list=`scontrol show hostname $SLURM_NODELIST | sort | uniq `
echo $node_list

mp_host_list="["
for i in  ${node_list} ; do
    mp_host_list="${mp_host_list}['$i', 36],"
done

mp_host_list=`echo ${mp_host_list} | sed -e "s/,$//"`
mp_host_list="${mp_host_list}]"

#export MP_HOST_LIST=mp_host_list

echo "mp_host_list=${mp_host_list}"  >> abaqus_v6.env

ln -s /usr/local/abaqus/Commands/abq2016 abq2016

./abq2016 interactive job=INP_v11 input=INP_v11.inp user=ldc_v11 cpus=72 output_precision=full double=both parallel=domain domains=72 mp_mode=MPI scratch=$WD