CrabLocalPbsSubmission
What you will learn on this page
As of CRAB_2_7_4_pre2, we found a way to adapt CRAB for local PBS submission in our Tier2. This adaptation mainly involves bringing a few changes in the code of CRAB. We will describe here the full procedure to adapt CRAB for local PBS submission to our Tier2.
Pre-requisites
The i386 version of libtorque (libtorque.so.2.0.0) must be present in /usr/lib/, as well as a symbolic link libtorque.so.2 pointing to it. As this library is not installed on SL5 UIs, you have to copy it from an SL4 UI and create the symbolic link manually.
Adding the Python PBS module to CRAB
The method to compile and to add the pbs_python module to CRAB is described here.
If you are in a hurry, you will find below in the attachments a ready-to-use compiled release of pbs_python version 3.2.0. Just untar it and copy the files in :
$CRABDIR/external/pbs_python/3.2.0/lib/python2.4/site-packages/pbs
Changing a few things in the CRAB code
There are three files to change :
/user/cmssoft/crab/CRAB_X_Y_Z_IIHE/external/ProdCommon/BossLite/Scheduler/SchedulerPbs.py /user/cmssoft/crab/CRAB_X_Y_Z_IIHE/python/SchedulerLocal.py /user/cmssoft/crab/CRAB_X_Y_Z_IIHE/python/cmscp.py
If you want to see what is to change in the code, you can consider CRAB_2_7_4_IIHE as a reference. In the attachment, you will find the three diff files made between CRAB_2_7_4 and CRAB_2_7_4_IIHE for the three files above.
Useful links
Official information about CRAB and local PBS submission can be found here : https://twiki.cern.ch/twiki/bin/viewauth/CMS/SWGuideCrabPBS