The FIrst ThING
The first thing is to read the user manual of the cluster:
http://www.uow.edu.au/content/groups/public/@web/@raid/@eresearch/documents/doc/uow092592.pdf
Then you can take the following actions to run your Geant4 applications on the HPC cluster.
1) SET-UP THE ENVIRONMENT
Once you are logged on the HPC cluster, you have to type:
module load cmake < return>
module load geant/4.9.6p02 < return>
module load root /5.34.05 < return>
Note: you may write these three commands in a script file to source when you log in the cluster
2) COmpile your geant4 application
Create your build directory: mkdir my_application_build
Then type:
cd my_application_build < return>
cmake -DGeant4_DIR=/hpc/software/package/geant/4.9.6.p02/share/ ~/path/to/my_application
make
The executable will be created.
3) Run your application
- for testing and development, run your application with limited number of events locally just launching
./my_application < return>
- for producing results with large number of events you have to submit the job via PBS.
Type: qsub file.pbs < return>
where file.pbs is something like the following:
--------------------------------------------------------------------------
#!/bin/bash -l#PBS -N name
#PBS -l nodes=1:ppn=1
#PBS -l walltime=300:00:00
#PBS -l mem=4900mb
#PBS -A Desc005 #export the enviornment variable to get the job ID
#remove suffix for massive
TEMPID=${PBS_JOBID//.m2-m}
#remove suffix for case of lyra
TEMPID=${TEMPID//.pbsserver}
#trim suffix for AC cluster (won't do anything if not)
TEMPID=${TEMPID//.ac.local}
export ID=$TEMPID cd $PBS_O_WORKDIR
/path/to/executable macro.mac
------------------------------------------------------------------------------
For more information on PBS please refer to:
http://www.uow.edu.au/content/groups/public/@web/@raid/@eresearch/documents/doc/uow092592.pdf