32 testInvariant ()
const
48 doManagerStep (Detail::ManagerData& data)
const
51 using namespace msgEventLoop;
57 data.batchJobId =
"EL_JOBID=$(($SGE_TASK_ID-1))\n";
67 assert (!data.batchJobIndices.empty());
68 assert (data.batchJobIndices.back() + 1 == data.batchJobIndices.size());
69 const std::size_t njob = data.batchJobIndices.size();
71 std::ostringstream cmd;
72 cmd <<
"cd " << data.submitDir <<
"/submit && qsub "
74 <<
" -t 1-" << (njob) <<
" run";
75 if (gSystem->Exec (cmd.str().c_str()) != 0)
77 data.submitted =
true;
84 return ::StatusCode::SUCCESS;
#define RCU_NEW_INVARIANT(x)
#define RCU_READ_INVARIANT(x)
#define RCU_THROW_MSG(message)
ClassImp(EL::SoGEDriver) namespace EL
virtual::StatusCode doManagerStep(Detail::ManagerData &data) const override
static const std::string optSubmitFlags
description: the name of the option for supplying extra submit parameters to batch systems rationale:...
a Driver for running on SoGE(?) batch systems
@ doResubmit
call the actual doResubmit method
@ submitJob
do the actual job submission
@ batchScriptVar
create the variables needed for the batch-run script
This module defines the arguments passed from the BATCH driver to the BATCH worker.
::StatusCode StatusCode
StatusCode definition for legacy code.