ATLAS Offline Software
Loading...
Searching...
No Matches
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
15
16namespace EL
17{
19
20 class SlurmDriver final : public BatchDriver
21 {
22 //
23 // public interface
24 //
25
28 public:
29 void testInvariant () const;
30
31
35 public:
37
38 void SetJobName(std::string job_name);
39 void SetAccount(std::string account);
40 void SetPartition(std::string partition);
41 void SetRunTime(std::string run_time);
42 void SetMemory(std::string memory);
43 void SetConstrain(std::string constraint);
44
45
46 std::string m_job_name;
47 std::string m_account;
48 std::string m_partition;
49 std::string m_run_time;
50 std::string m_memory;
51 std::string m_constraint;
52
56
57
58
59 //
60 // interface inherited from BatchDriver
61 //
62
63 protected:
64 virtual ::StatusCode
65 doManagerStep (Detail::ManagerData& data) const override;
66
67 //
68 // private interface
69 //
70
71#pragma GCC diagnostic push
72#pragma GCC diagnostic ignored "-Wpragmas"
73#pragma GCC diagnostic ignored "-Wunknown-pragmas"
74#pragma GCC diagnostic ignored "-Winconsistent-missing-override"
76#pragma GCC diagnostic pop
77 };
78}
79
80#endif
BatchDriver()
effects: standard default constructor guarantee: strong failures: low level errors I
void SetAccount(std::string account)
void SetPartition(std::string partition)
void testInvariant() const
effects: test the invariant of this object guarantee: no-fail
void SetConstrain(std::string constraint)
std::string m_constraint
Definition SlurmDriver.h:51
void SetMemory(std::string memory)
virtual::StatusCode doManagerStep(Detail::ManagerData &data) const override
std::string m_job_name
Definition SlurmDriver.h:46
std::string m_partition
Definition SlurmDriver.h:48
std::string m_account
Definition SlurmDriver.h:47
ClassDef(SlurmDriver, 1)
void SetJobName(std::string job_name)
void SetRunTime(std::string run_time)
SlurmDriver()
effects: standard default constructor guarantee: strong failures: low level errors I
std::string m_memory
Definition SlurmDriver.h:50
std::string m_run_time
Definition SlurmDriver.h:49
This module defines the arguments passed from the BATCH driver to the BATCH worker.
an internal data structure for passing data between different manager objects anbd step
Definition ManagerData.h:46