forked from mcoquet642/AliceO2
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGPUO2InterfaceConfiguration.h
More file actions
105 lines (90 loc) · 2.79 KB
/
Copy pathGPUO2InterfaceConfiguration.h
File metadata and controls
105 lines (90 loc) · 2.79 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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
// Copyright 2019-2020 CERN and copyright holders of ALICE O2.
// See https://alice-o2.web.cern.ch/copyright for details of the copyright holders.
// All rights not expressly granted are reserved.
//
// This software is distributed under the terms of the GNU General Public
// License v3 (GPL Version 3), copied verbatim in the file "COPYING".
//
// 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.
/// \file GPUO2InterfaceConfiguration.h
/// \author David Rohr
#ifndef GPUO2INTERFACECONFIGURATION_H
#define GPUO2INTERFACECONFIGURATION_H
#ifndef GPUCA_HAVE_O2HEADERS
#define GPUCA_HAVE_O2HEADERS
#endif
#ifndef GPUCA_TPC_GEOMETRY_O2
#define GPUCA_TPC_GEOMETRY_O2
#endif
#ifndef GPUCA_O2_INTERFACE
#define GPUCA_O2_INTERFACE
#endif
#include <memory>
#include <array>
#include <vector>
#include <functional>
#include <gsl/gsl>
#include "GPUSettings.h"
#include "GPUDataTypes.h"
#include "GPUHostDataTypes.h"
#include "GPUOutputControl.h"
#include "DataFormatsTPC/Constants.h"
class TH1F;
class TH1D;
class TH2F;
namespace o2
{
namespace tpc
{
class TrackTPC;
class Digit;
} // namespace tpc
namespace gpu
{
class TPCFastTransform;
class GPUReconstruction;
struct GPUSettingsO2;
struct GPUInterfaceQAOutputs {
const std::vector<TH1F>* hist1 = nullptr;
const std::vector<TH2F>* hist2 = nullptr;
const std::vector<TH1D>* hist3 = nullptr;
};
struct GPUInterfaceOutputs : public GPUTrackingOutputs {
GPUInterfaceQAOutputs qa;
};
// Full configuration structure with all available settings of GPU...
struct GPUO2InterfaceConfiguration {
GPUO2InterfaceConfiguration() = default;
~GPUO2InterfaceConfiguration() = default;
GPUO2InterfaceConfiguration(const GPUO2InterfaceConfiguration&) = default;
// Settings for the Interface class
struct GPUInterfaceSettings {
int dumpEvents = 0;
bool outputToExternalBuffers = false;
// These constants affect GPU memory allocation only and do not limit the CPU processing
unsigned long maxTPCZS = 8192ul * 1024 * 1024;
unsigned int maxTPCHits = 1024 * 1024 * 1024;
unsigned int maxTRDTracklets = 128 * 1024;
unsigned int maxITSTracks = 96 * 1024;
};
GPUSettingsDeviceBackend configDeviceBackend;
GPUSettingsProcessing configProcessing;
GPUSettingsGRP configGRP;
GPUSettingsRec configReconstruction;
GPUSettingsDisplay configDisplay;
GPUSettingsQA configQA;
GPUInterfaceSettings configInterface;
GPURecoStepConfiguration configWorkflow;
GPUCalibObjectsConst configCalib;
GPUSettingsO2 ReadConfigurableParam();
void PrintParam();
private:
friend class GPUReconstruction;
GPUSettingsO2 ReadConfigurableParam_internal();
void PrintParam_internal();
};
} // namespace gpu
} // namespace o2
#endif