<!-- keep this as a security measure: #uncomment if the subject should only be modifiable by the listed groups # * Set ALLOWTOPICCHANGE = Main.TWikiAdminGroup,Main.CMSAdminGroup # * Set ALLOWTOPICRENAME = Main.TWikiAdminGroup,Main.CMSAdminGroup #uncomment this if you want the page only be viewable by the listed groups # * Set ALLOWTOPICVIEW = Main.TWikiAdminGroup,Main.CMSAdminGroup --> ---+ Test simple CMSSW batch submission on local files/SE ---+++ Setup CMSSW environment * source the CMS environment <pre>source /swshare/cms/cmsset_default.sh</pre> * prepare to run CMSSW <pre>cd CMSSW_Version/src; eval `scramv1 runtime -(c)sh`</pre> or <pre>cmsenv</pre> ---+++ Run CMSSW interactively on a file stored on t3se01.psi.ch * To run CMSSW interactively on a file stored on the t3se01.psi.ch, modify the "PoolSource" parameters in the CMSSW config file as follows <pre> source = PoolSource { untracked vstring fileNames = { 'dcap://t3se01.psi.ch:22125/pnfs/psi.ch/cms/catalog/store/user/zlchen/FCF4A854-8705-DD11-ADAE-00304856292C.root' } untracked int32 maxEvents = 10 } </pre> ---+++ Submit CMSSW jobs to SGE * For SGE, Batch jobs are shell scripts. Job submission is telling SGE to execute a shell script. You normally start your program from within that script. You don't need to create old-school job description files since you can talk with SGE from within the job script in case you need. Lines starting with #$ are interpreted by SGE. Below is a sample job script for submitting CMSSW job to SGE: <pre> #!/bin/bash # #$ -cwd #$ -j y #$ -S /bin/bash # date hostname pwd source /swshare/cms/cmsset_default.sh cmsenv cmsRun MyConfig.cfg </pre> Submit it with command <pre>qsub test.job</pre>. In the job script, the lines starting with a #$ are SGE commands. Above, -cwd tells sge to cd to the directory job has been submitted when it starts running(e.g. your cmssw project directory), "-j y" is to transfer the current environment variable state to the shell starting the job and -S tells which shell to dispatch the job with. -- Main.ZhilingChen - 04 Sep 2008
This topic: CmsTier3
>
WebHome
>
AdminArea
>
TestCMSSW
Topic revision: r3 - 2008-09-10 - ZhilingChen
Copyright © 2008-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki?
Send feedback