ATLAS Offline Software
SlurmDriver.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
3 */
4 
6 
7 
8 #ifndef EVENT_LOOP_SLURM_DRIVER_HH
9 #define EVENT_LOOP_SLURM_DRIVER_HH
10 
11 #include <EventLoop/Global.h>
12 
13 #include <EventLoop/BatchDriver.h>
14 #include <SampleHandler/Global.h>
15 
16 #include <iostream>
17 
18 namespace EL
19 {
21 
22  class SlurmDriver final : public BatchDriver
23  {
24  //
25  // public interface
26  //
27 
30  public:
31  void testInvariant () const;
32 
33 
37  public:
39 
40  void SetJobName(std::string job_name);
41  void SetAccount(std::string account);
42  void SetPartition(std::string partition);
43  void SetRunTime(std::string run_time);
44  void SetMemory(std::string memory);
45  void SetConstrain(std::string constraint);
46 
47 
48  std::string m_job_name;
49  std::string m_account;
50  std::string m_partition;
51  std::string m_run_time;
52  std::string m_memory;
53  std::string m_constraint;
54 
58 
59 
60 
61  //
62  // interface inherited from BatchDriver
63  //
64 
65  protected:
68 
69  //
70  // private interface
71  //
72 
73 #pragma GCC diagnostic push
74 #pragma GCC diagnostic ignored "-Wpragmas"
75 #pragma GCC diagnostic ignored "-Wunknown-pragmas"
76 #pragma GCC diagnostic ignored "-Winconsistent-missing-override"
78 #pragma GCC diagnostic pop
79  };
80 }
81 
82 #endif
EL::SlurmDriver::m_b_account
bool m_b_account
Definition: SlurmDriver.h:56
data
char data[hepevt_bytes_allocation_ATLAS]
Definition: HepEvt.cxx:11
EL::SlurmDriver::m_run_time
std::string m_run_time
Definition: SlurmDriver.h:51
EL::SlurmDriver::m_account
std::string m_account
Definition: SlurmDriver.h:49
EL::BatchDriver
the base class for all drivers running on batch systems
Definition: BatchDriver.h:24
EL::SlurmDriver::SetJobName
void SetJobName(std::string job_name)
EL::SlurmDriver::m_b_job_name
bool m_b_job_name
Definition: SlurmDriver.h:55
EL::SlurmDriver::doManagerStep
virtual ::StatusCode doManagerStep(Detail::ManagerData &data) const override
EL::SlurmDriver::m_b_run_time
bool m_b_run_time
Definition: SlurmDriver.h:57
EL::SlurmDriver::m_partition
std::string m_partition
Definition: SlurmDriver.h:50
python.utils.AtlRunQueryMemUtil.memory
def memory(since=0.0)
Definition: AtlRunQueryMemUtil.py:30
EL::SlurmDriver::m_constraint
std::string m_constraint
Definition: SlurmDriver.h:53
EL::SlurmDriver::m_job_name
std::string m_job_name
Definition: SlurmDriver.h:48
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
EL::SlurmDriver::SlurmDriver
SlurmDriver()
effects: standard default constructor guarantee: strong failures: low level errors I
EL
This module defines the arguments passed from the BATCH driver to the BATCH worker.
Definition: AlgorithmWorkerData.h:24
EL::SlurmDriver
a Driver for running on SLURM batch systems
Definition: SlurmDriver.h:23
EL::SlurmDriver::ClassDef
ClassDef(SlurmDriver, 1)
EL::SlurmDriver::SetAccount
void SetAccount(std::string account)
EL::SlurmDriver::m_memory
std::string m_memory
Definition: SlurmDriver.h:52
EL::SlurmDriver::SetConstrain
void SetConstrain(std::string constraint)
EL::SlurmDriver::testInvariant
void testInvariant() const
effects: test the invariant of this object guarantee: no-fail
StateLessPT_NewConfig.partition
partition
Definition: StateLessPT_NewConfig.py:49
BatchDriver.h
EL::Detail::ManagerData
an internal data structure for passing data between different manager objects anbd step
Definition: ManagerData.h:46
EL::SlurmDriver::SetPartition
void SetPartition(std::string partition)
EL::SlurmDriver::SetMemory
void SetMemory(std::string memory)
EL::SlurmDriver::SetRunTime
void SetRunTime(std::string run_time)
Global.h
Global.h