-
Notifications
You must be signed in to change notification settings - Fork 494
Expand file tree
/
Copy pathDeviceSpec.h
More file actions
75 lines (68 loc) · 2.54 KB
/
DeviceSpec.h
File metadata and controls
75 lines (68 loc) · 2.54 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
// Copyright CERN and copyright holders of ALICE O2. This software is
// distributed under the terms of the GNU General Public License v3 (GPL
// Version 3), copied verbatim in the file "COPYING".
//
// See http://alice-o2.web.cern.ch/license for full licensing information.
//
// In applying this license CERN does not waive the privileges and immunities
// granted to it by virtue of its status as an Intergovernmental Organization
// or submit itself to any jurisdiction.
#ifndef O2_FRAMEWORK_DEVICESPEC_H_
#define O2_FRAMEWORK_DEVICESPEC_H_
#include "Framework/WorkflowSpec.h"
#include "Framework/ComputingResource.h"
#include "Framework/DataProcessorSpec.h"
#include "Framework/DataProcessorLabel.h"
#include "Framework/ChannelSpec.h"
#include "Framework/ChannelInfo.h"
#include "Framework/DeviceControl.h"
#include "Framework/AlgorithmSpec.h"
#include "Framework/ConfigParamSpec.h"
#include "Framework/ForwardRoute.h"
#include "Framework/InputRoute.h"
#include "Framework/OutputRoute.h"
#include "Framework/CompletionPolicy.h"
#include "Framework/DispatchPolicy.h"
#include "Framework/ResourcePolicy.h"
#include "Framework/ServiceSpec.h"
#include <vector>
#include <string>
#include <map>
#include <utility>
namespace o2::framework
{
/// Concrete description of the device which will actually run
/// a DataProcessor.
struct DeviceSpec {
/// The name of the associated DataProcessorSpec
std::string name;
/// The id of the device, including time-pipelining and suffix
std::string id;
std::string channelPrefix;
std::vector<InputChannelSpec> inputChannels;
std::vector<OutputChannelSpec> outputChannels;
std::vector<std::string> arguments;
std::vector<ConfigParamSpec> options;
std::vector<ServiceSpec> services;
AlgorithmSpec algorithm;
std::vector<InputRoute> inputs;
std::vector<OutputRoute> outputs;
std::vector<ForwardRoute> forwards;
size_t rank; // Id of a parallel processing I am part of
size_t nSlots; // Total number of parallel units I am part of
/// The time pipelining id of this particular device.
size_t inputTimesliceId;
/// The maximum number of time pipelining for this device.
size_t maxInputTimeslices;
/// The completion policy to use for this device.
CompletionPolicy completionPolicy;
DispatchPolicy dispatchPolicy;
/// Policy on when the available resources are enough to run
/// a computation.
ResourcePolicy resourcePolicy;
ComputingResource resource;
unsigned short resourceMonitoringInterval;
std::vector<DataProcessorLabel> labels;
};
} // namespace o2::framework
#endif // O2_FRAMEWORK_DEVICESPEC_H_