Cbb/Baobab: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 9: | Line 9: | ||
Example PBS script: | Example PBS script: | ||
<PRE> | <PRE> | ||
#PBS -l nodes= | #PBS -l nodes=6:ppn=24,walltime=00:01:00 | ||
module add openmpi-x86_64 | module add openmpi-x86_64 | ||
######################################## | |||
cd $PBS_O_WORKDIR | |||
## How many cores total do we have? | |||
NO_OF_CORES=`cat $PBS_NODEFILE | egrep -v '^#'\|'^$' | wc -l | awk '{print $1}'` | |||
## | |||
## Main execution | |||
echo "Job Started at: `date`" | echo "Job Started at: `date`" | ||
mpiexec -np $NO_OF_CORES -machinefile $PBS_NODEFILE hello2 | |||
mpiexec - | |||
echo "Job Ended at: `date`" | echo "Job Ended at: `date`" | ||
</PRE> | </PRE> |
Revision as of 13:39, 6 November 2014
The Baobab Cluster
CBB's internal cluster.
The new cluster is made up of 6 nodes with 24 cores and 64 GB RAM on each node.
Before submitting your jobs you need a PBS submission script
Example PBS script:
#PBS -l nodes=6:ppn=24,walltime=00:01:00 module add openmpi-x86_64 ######################################## cd $PBS_O_WORKDIR ## How many cores total do we have? NO_OF_CORES=`cat $PBS_NODEFILE | egrep -v '^#'\|'^$' | wc -l | awk '{print $1}'` ## ## Main execution echo "Job Started at: `date`" mpiexec -np $NO_OF_CORES -machinefile $PBS_NODEFILE hello2 echo "Job Ended at: `date`"
To submit the jobs to the cluster from the headnode:
qsub <yoursPBSscript>
To check the status of your jobs:
qstat -a
To delete your jobs from the queue:
qdel <Job_Number/Identifier>