ATLAS Offline Software
CommonStructures.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3 */
4 #ifndef TRIGINDETCUDA_COMMON_H
5 #define TRIGINDETCUDA_COMMON_H
6 typedef struct gpuParameters {
7  int m_nSMX;
11 
12 #include <tbb/tick_count.h>
13 
15 public:
16  WorkTimeStamp(unsigned int id, int ev, const tbb::tick_count& t) :
17  m_workId(id), m_eventType(ev), m_time(t) {};
19  unsigned int m_workId;
21  tbb::tick_count m_time;
22 };
23 
26 {
27 public:
30  void clear();
31  size_t size() const;
32  WorkTimeStamp& operator[]( size_t ndx );
33  void push_back( const WorkTimeStamp& ts );
34 
35 
36 private:
37  std::unique_ptr<WorkTimeStampQueueImpl> m_impl;
38 };
39 
40 #endif
WorkTimeStampQueue::~WorkTimeStampQueue
~WorkTimeStampQueue()
Definition: CommonStructures.cxx:23
WorkTimeStamp::m_workId
unsigned int m_workId
Definition: CommonStructures.h:18
WorkTimeStampQueue::operator[]
WorkTimeStamp & operator[](size_t ndx)
Definition: CommonStructures.cxx:40
WorkTimeStampQueueImpl
Definition: CommonStructures.cxx:11
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
gpuParameters::m_nSMX
int m_nSMX
Definition: CommonStructures.h:7
WorkTimeStamp::m_eventType
int m_eventType
Definition: CommonStructures.h:20
WorkTimeStampQueue::push_back
void push_back(const WorkTimeStamp &ts)
Definition: CommonStructures.cxx:46
WorkTimeStampQueue::clear
void clear()
Definition: CommonStructures.cxx:28
ev
int ev
Definition: globals.cxx:25
WorkTimeStamp::m_time
tbb::tick_count m_time
Definition: CommonStructures.h:21
WorkTimeStamp::WorkTimeStamp
WorkTimeStamp(unsigned int id, int ev, const tbb::tick_count &t)
Definition: CommonStructures.h:16
id
SG::auxid_t id
Definition: Control/AthContainers/Root/debug.cxx:220
gpuParameters::m_nNUM_TRIPLET_BLOCKS
int m_nNUM_TRIPLET_BLOCKS
Definition: CommonStructures.h:9
WorkTimeStampQueue
Definition: CommonStructures.h:26
WorkTimeStampQueue::m_impl
std::unique_ptr< WorkTimeStampQueueImpl > m_impl
Definition: CommonStructures.h:37
gpuParameters
Definition: CommonStructures.h:6
gpuParameters::m_nNUM_SMX_CORES
int m_nNUM_SMX_CORES
Definition: CommonStructures.h:8
WorkTimeStampQueue::WorkTimeStampQueue
WorkTimeStampQueue()
Definition: CommonStructures.cxx:17
WorkTimeStamp::WorkTimeStamp
WorkTimeStamp(const WorkTimeStamp &w)
Definition: CommonStructures.h:18
WorkTimeStamp
Definition: CommonStructures.h:14
python.IoTestsLib.w
def w
Definition: IoTestsLib.py:200
GPU_PARAMETERS
struct gpuParameters GPU_PARAMETERS
python.CaloScaleNoiseConfig.ts
ts
Definition: CaloScaleNoiseConfig.py:86
WorkTimeStampQueue::size
size_t size() const
Definition: CommonStructures.cxx:34