Software/Geant4/UCL HEP Batch Farm: Difference between revisions
SimonJolly (talk | contribs) (Created page with "Placeholder.") |
No edit summary |
||
Line 1: | Line 1: | ||
This page describes how to run a Geant4 simulation on the [https://www.hep.ucl.ac.uk/twiki/bin/view/Computing/BatchFacilities HEP Batch Farm]. | |||
Keep in mind that the current maximum CPU time for jobs on the batch farm is 120 hours. It is therefore important to split the simulation into jobs that do not exceed this time limit. | |||
=== Send jobs to the batch farm === | |||
Jobs are submitted to the batch farm by using the command <code>qsub</code>. Type <code>man qsub</code> to see the available options. The submission of one such script corresponds to one job. | |||
<pre> | |||
qsub name-of-bash-script.sh | |||
</pre> | |||
=== Sourcing the pbt production environment === | |||
The submitted bash script needs to load the pbt production environment before you can direct into your build directory and run the compiled simulation. This can be done in the following way: | |||
<pre> | |||
scl enable devtoolset-3 bash <<EOF | |||
source /unix/pbt/software/scripts/prod-sl6/pbt-prod-sl6.bashrc | |||
cd /your/simulation/build/directory | |||
./name-of-executable-simulation | |||
EOF | |||
</pre> | |||
<code>scl enable devtoolset-3 bash</code> provides the new gcc compiler and the use of the here document <code><<EOF ... EOF</code> makes sure the following block of code is executed in the new environment. |
Revision as of 13:40, 20 July 2017
This page describes how to run a Geant4 simulation on the HEP Batch Farm.
Keep in mind that the current maximum CPU time for jobs on the batch farm is 120 hours. It is therefore important to split the simulation into jobs that do not exceed this time limit.
Send jobs to the batch farm
Jobs are submitted to the batch farm by using the command qsub
. Type man qsub
to see the available options. The submission of one such script corresponds to one job.
qsub name-of-bash-script.sh
Sourcing the pbt production environment
The submitted bash script needs to load the pbt production environment before you can direct into your build directory and run the compiled simulation. This can be done in the following way:
scl enable devtoolset-3 bash <<EOF source /unix/pbt/software/scripts/prod-sl6/pbt-prod-sl6.bashrc cd /your/simulation/build/directory ./name-of-executable-simulation EOF
scl enable devtoolset-3 bash
provides the new gcc compiler and the use of the here document <<EOF ... EOF
makes sure the following block of code is executed in the new environment.