I have a 32 cores machine, and I need to run 16 different dynamics simulations in parallel on it. I want the 16 jobs to run in parallel, not sequentially, on the same machine. The 16 dynamics input are in different folders and they requires the same time to complete.
#!/bin/bash -l #PBS -l nodes=...:ppn=32,walltime=... # #PBS -N dynamics export OMP_NUM_THREADS=32 export PATH=mypath:$PATH export DIR="my folder" export WORK=/scratch/Work/ cp -r $DIR/dyn1 $WORK/. cp -r $DIR/dyn2 $WORK/. ... cp -r $DIR/dyn3 $WORK/. cd $WORK my_dynamic_program1.x my_dynamic_program2.x