Versions Compared


  • This line was added.
  • This line was removed.
  • Formatting was changed.


No Format
#PBS -c s
#PBS -j oe
#PBS -m ae
#PBS -N jobname
#PBS -l walltime=1000:00:00
#PBS -l nodes=1:ppn=8:
#PBS -l pmem=4gb32gb

ncpu=`wc -l $PBS_NODEFILE`
echo "------------------------------------------------------"
echo " This job is allocated "$ncpu" CPU cores on "
cat $PBS_NODEFILE | uniq
echo "------------------------------------------------------"
echo "PBS: Submitted to $PBS_QUEUE@$PBS_O_HOST"
echo "PBS: Working directory is $PBS_O_WORKDIR"
echo "PBS: Job identifier is $PBS_JOBID"
echo "PBS: Job name is $PBS_JOBNAME"
echo "------------------------------------------------------"

source /etc/profile.d/
module load matlab
matlab -r myjob1.m &
matlab -r myjob2.m &
matlab -r myjob3.m &
matlab -r myjob4.m &
matlab -r myjob5.m &
matlab -r myjob6.m &
matlab -r myjob7.m &
matlab -r myjob8.m &
wait    # Wait for background jobs to finish.