|
ATLAS Offline Software
|
Go to the documentation of this file.
53 using namespace msgEventLoop;
59 data.batchInit =
"export PATH LD_LIBRARY_PATH PYTHONPATH";
73 ANA_MSG_ERROR(
"All parameters need to be set before job can be submitted");
74 return ::StatusCode::FAILURE;
82 assert (!
data.batchJobIndices.empty());
83 assert (
data.batchJobIndices.back() + 1 ==
data.batchJobIndices.size());
84 const std::size_t njob =
data.batchJobIndices.size();
88 int status=gSystem->CopyFile(
"RootCore.par",(
data.submitDir+
"/submit/RootCore.par").c_str());
94 std::ofstream
file ((
data.submitDir +
"/submit/submit").c_str());
96 file <<
"#!/bin/bash \n";
99 file <<
"#SBATCH --output=slurm-%j.out\n";
100 file <<
"#SBATCH --error=slurm-%j.err\n";
111 file <<
"./run ${SLURM_ARRAY_TASK_ID}\n";
115 std::ostringstream
cmd;
117 if (gSystem->Exec (
cmd.str().c_str()) != 0)
120 data.submitted =
true;
127 return ::StatusCode::SUCCESS;
char data[hepevt_bytes_allocation_ATLAS]
static const std::string optBatchSharedFileSystem
description: batch-specific options rationale: these options are for configuring batch drivers
@ batchScriptVar
create the variables needed for the batch-run script
virtual ::StatusCode doManagerStep(Detail::ManagerData &data) const override
void SetJobName(std::string job_name)
virtual ::StatusCode doManagerStep(Detail::ManagerData &data) const override
@ doResubmit
call the actual doResubmit method
::StatusCode StatusCode
StatusCode definition for legacy code.
static const std::string optBatchSlurmWrapperExec
Append a command before the main executable is called This is useful is you want to execute the comma...
SlurmDriver()
effects: standard default constructor guarantee: strong failures: low level errors I
This module defines the arguments passed from the BATCH driver to the BATCH worker.
static const std::string optSubmitFlags
description: the name of the option for supplying extra submit parameters to batch systems rationale:...
static const std::string optBatchSlurmExtraConfigLines
The content of this string will be executed in the job script on the worker node before the main exec...
a Driver for running on SLURM batch systems
void SetAccount(std::string account)
void SetConstrain(std::string constraint)
void testInvariant() const
effects: test the invariant of this object guarantee: no-fail
void SetPartition(std::string partition)
void SetMemory(std::string memory)
#define RCU_THROW_MSG(message)
void SetRunTime(std::string run_time)
#define RCU_READ_INVARIANT(x)
ClassImp(EL::SlurmDriver) namespace EL
@ submitJob
do the actual job submission
#define RCU_NEW_INVARIANT(x)