Abaqus: Difference between revisions

Jump to navigation Jump to search
m
no edit summary
mNo edit summary
mNo edit summary
Line 51: Line 51:
#SBATCH --mem=8G              # Specify total memory > 5G
#SBATCH --mem=8G              # Specify total memory > 5G
#SBATCH --nodes=1              # Do not change !
#SBATCH --nodes=1              # Do not change !
##SBATCH --constraint=cascade  # Uncomment to specify node
##SBATCH --gres=gpu:t4:1      # Uncomment to specify gpu


<!--T:20869-->
<!--T:20869-->
Line 70: Line 72:
abaqus job=testsp1 input=mystd-sim.inp \
abaqus job=testsp1 input=mystd-sim.inp \
   scratch=$SLURM_TMPDIR cpus=$SLURM_CPUS_ON_NODE interactive \
   scratch=$SLURM_TMPDIR cpus=$SLURM_CPUS_ON_NODE interactive \
   mp_mode=threads memory="$((${SLURM_MEM_PER_NODE}-3072))MB"
   mp_mode=threads memory="$((${SLURM_MEM_PER_NODE}-3072))MB" \
#  gpus=$SLURM_GPUS_ON_NODE  # uncomment this line to use gpu
}}
}}


Line 96: Line 99:
#SBATCH --mem=8G              # Specify total memory > 5G
#SBATCH --mem=8G              # Specify total memory > 5G
#SBATCH --nodes=1              # Do not change !
#SBATCH --nodes=1              # Do not change !
##SBATCH --constraint=cascade  # Uncomment to specify node
##SBATCH --gres=gpu:t4:1      # Uncomment to specify gpu


<!--T:20874-->
<!--T:20874-->
Line 111: Line 116:
abaqus job=testsp2 oldjob=testsp1 input=mystd-sim-restart.inp \
abaqus job=testsp2 oldjob=testsp1 input=mystd-sim-restart.inp \
   scratch=$SLURM_TMPDIR cpus=$SLURM_CPUS_ON_NODE interactive \
   scratch=$SLURM_TMPDIR cpus=$SLURM_CPUS_ON_NODE interactive \
   mp_mode=threads memory="$((${SLURM_MEM_PER_NODE}-3072))MB"
   mp_mode=threads memory="$((${SLURM_MEM_PER_NODE}-3072))MB" \
#  gpus=$SLURM_GPUS_ON_NODE  # uncomment this line to use gpu
}}
}}


Line 132: Line 138:
#SBATCH --mem=8G              # Specify total memory > 5G
#SBATCH --mem=8G              # Specify total memory > 5G
#SBATCH --nodes=1              # Do not change !
#SBATCH --nodes=1              # Do not change !
##SBATCH --constraint=cascade  # Uncomment to specify node
##SBATCH --gres=gpu:t4:1      # Uncomment to specify gpu


<!--T:20877-->
<!--T:20877-->
Line 147: Line 155:
<!--T:20879-->
<!--T:20879-->
rm -f testst1* testst2*
rm -f testst1* testst2*
mkdir $SLURM_TMPDIR/scratch
cd $SLURM_TMPDIR
cd $SLURM_TMPDIR
while sleep 6h; do
while sleep 6h; do
   cp -f * $SLURM_SUBMIT_DIR 2>/dev/null
  echo "Saving data due to time limit ..."
   cp -fv * $SLURM_SUBMIT_DIR 2>/dev/null
done &
done &
WPID=$!
WPID=$!
abaqus job=testst1 input=$SLURM_SUBMIT_DIR/mystd-sim.inp \
abaqus job=testst1 input=$SLURM_SUBMIT_DIR/mystd-sim.inp \
   scratch=$SLURM_TMPDIR cpus=$SLURM_CPUS_ON_NODE interactive \
   scratch=$SLURM_TMPDIR/scratch cpus=$SLURM_CPUS_ON_NODE interactive \
   mp_mode=threads memory="$((${SLURM_MEM_PER_NODE}-3072))MB"
   mp_mode=threads memory="$((${SLURM_MEM_PER_NODE}-3072))MB" \
#  gpus=$SLURM_GPUS_ON_NODE  # uncomment this line to use gpu
{ kill $WPID && wait $WPID; } 2>/dev/null
{ kill $WPID && wait $WPID; } 2>/dev/null
cp -f * $SLURM_SUBMIT_DIR
cp -fv * $SLURM_SUBMIT_DIR
}}
}}


Line 180: Line 191:
#SBATCH --mem=8G              # Specify total memory > 5G
#SBATCH --mem=8G              # Specify total memory > 5G
#SBATCH --nodes=1              # Do not change !
#SBATCH --nodes=1              # Do not change !
##SBATCH --constraint=cascade  # Uncomment to specify node
##SBATCH --gres=gpu:t4:1      # Uncomment to specify gpu


<!--T:20881-->
<!--T:20881-->
Line 196: Line 209:
rm -f testst2* testst1.lck
rm -f testst2* testst1.lck
cp testst1* $SLURM_TMPDIR
cp testst1* $SLURM_TMPDIR
mkdir $SLURM_TMPDIR/scratch
cd $SLURM_TMPDIR
cd $SLURM_TMPDIR
while sleep 3h; do
while sleep 6h; do
   cp -f testst2* $SLURM_SUBMIT_DIR 2>/dev/null
  echo "Saving data due to time limit ..."
   cp -fv testst2* $SLURM_SUBMIT_DIR 2>/dev/null
done &
done &
WHILEPID=$!
WPID=$!
abaqus job=testst2 oldjob=testst1 input=$SLURM_SUBMIT_DIR/mystd-sim-restart.inp \
abaqus job=testst2 oldjob=testst1 input=$SLURM_SUBMIT_DIR/mystd-sim-restart.inp \
   scratch=$SLURM_TMPDIR cpus=$SLURM_CPUS_ON_NODE interactive \
   scratch=$SLURM_TMPDIR/scratch cpus=$SLURM_CPUS_ON_NODE interactive \
   mp_mode=threads memory="$((${SLURM_MEM_PER_NODE}-3072))MB"
   mp_mode=threads memory="$((${SLURM_MEM_PER_NODE}-3072))MB" \
#  gpus=$SLURM_GPUS_ON_NODE  # uncomment this line to use gpu
{ kill $WPID && wait $WPID; } 2>/dev/null
{ kill $WPID && wait $WPID; } 2>/dev/null
cp -f testst2* $SLURM_SUBMIT_DIR
cp -fv testst2* $SLURM_SUBMIT_DIR
}}
}}


Line 213: Line 229:
  *RESTART, READ
  *RESTART, READ


<!--T:20884-->
</tab>
</tab>
</tabs>
</tabs>
cc_staff
1,894

edits

Navigation menu