ATLAS Offline Software
device_context.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef TRIGINDETCUDA_DEVCONTEXTS_H
6 #define TRIGINDETCUDA_DEVCONTEXTS_H
7 
9 
10 //#include "SeedMakingDataStructures.h"
11 #include <cuda_runtime.h>
12 #include <tbb/tick_count.h>
13 
14 #include "CommonStructures.h"
15 
16 
18 public:
20  size_t hostSize() { return h_size;}
21  size_t deviceSize() { return d_size;}
22 
24  cudaStream_t m_stream;
25  unsigned char *h_settings;
26  unsigned char *d_settings;
27  unsigned char *h_spacepoints;
28  unsigned char *d_spacepoints;
29 
30  unsigned char *d_detmodel;
31 
32  unsigned char *h_outputseeds;
33  unsigned char *d_outputseeds;
34 
35  unsigned char *d_doubletstorage;
36  unsigned char *d_doubletinfo;
37 
38  size_t d_size, h_size;
40 
41 private:
43 };
44 
46 public:
48  size_t hostSize() { return h_size;}
49  size_t deviceSize() { return d_size;}
50  size_t managedSize() { return m_size;}
51 
53  cudaStream_t m_stream;
54 
55 
56  unsigned char *m_settings;
57 
58 
59  unsigned char *m_spacepoints;
60 
61  unsigned char *d_detmodel;
62 
63 
64 
65 
66  unsigned char *m_outputseeds;
67  unsigned char *m_confirmedseeds;
68 
69  unsigned char *d_doubletstorage;
70  unsigned char *d_doubletinfo;
71 
72  size_t d_size, h_size, m_size;
74 
75 private:
77 };
78 
79 
80 
81 
82 #endif
SeedMakingDeviceContext::m_stream
cudaStream_t m_stream
Definition: device_context.h:24
SeedMakingManagedDeviceContext::m_settings
unsigned char * m_settings
Definition: device_context.h:56
SeedMakingDeviceContext::d_spacepoints
unsigned char * d_spacepoints
Definition: device_context.h:28
SeedMakingDeviceContext::h_settings
unsigned char * h_settings
Definition: device_context.h:25
SeedMakingManagedDeviceContext::managedSize
size_t managedSize()
Definition: device_context.h:50
CommonStructures.h
SeedMakingManagedDeviceContext::SeedMakingManagedDeviceContext
SeedMakingManagedDeviceContext()
Definition: device_context.h:47
SeedMakingDeviceContext::hostSize
size_t hostSize()
Definition: device_context.h:20
SeedMakingDeviceContext::d_detmodel
unsigned char * d_detmodel
Definition: device_context.h:30
SeedMakingDeviceContext::m_gpuParams
GPU_PARAMETERS m_gpuParams
Definition: device_context.h:39
SeedMakingManagedDeviceContext::d_doubletinfo
unsigned char * d_doubletinfo
Definition: device_context.h:70
SeedMakingDeviceContext::d_settings
unsigned char * d_settings
Definition: device_context.h:26
SeedMakingManagedDeviceContext::m_spacepoints
unsigned char * m_spacepoints
Definition: device_context.h:59
SeedMakingManagedDeviceContext::m_gpuParams
GPU_PARAMETERS m_gpuParams
Definition: device_context.h:73
SeedMakingDeviceContext::d_doubletinfo
unsigned char * d_doubletinfo
Definition: device_context.h:36
AthenaPoolTestRead.sc
sc
Definition: AthenaPoolTestRead.py:27
SeedMakingManagedDeviceContext::h_size
size_t h_size
Definition: device_context.h:72
SeedMakingDeviceContext::SeedMakingDeviceContext
SeedMakingDeviceContext()
Definition: device_context.h:19
SeedMakingDeviceContext::deviceSize
size_t deviceSize()
Definition: device_context.h:21
SeedMakingManagedDeviceContext::m_outputseeds
unsigned char * m_outputseeds
Definition: device_context.h:66
SeedMakingManagedDeviceContext::m_size
size_t m_size
Definition: device_context.h:72
SeedMakingManagedDeviceContext::m_stream
cudaStream_t m_stream
Definition: device_context.h:53
SeedMakingManagedDeviceContext::deviceSize
size_t deviceSize()
Definition: device_context.h:49
SeedMakingManagedDeviceContext::d_detmodel
unsigned char * d_detmodel
Definition: device_context.h:61
SeedMakingDeviceContext::h_spacepoints
unsigned char * h_spacepoints
Definition: device_context.h:27
SeedMakingDeviceContext::h_size
size_t h_size
Definition: device_context.h:38
SeedMakingManagedDeviceContext::SeedMakingManagedDeviceContext
SeedMakingManagedDeviceContext(const SeedMakingManagedDeviceContext &sc)
Definition: device_context.h:76
SeedMakingDeviceContext::SeedMakingDeviceContext
SeedMakingDeviceContext(const SeedMakingDeviceContext &sc)
Definition: device_context.h:42
SeedMakingManagedDeviceContext::hostSize
size_t hostSize()
Definition: device_context.h:48
gpuParameters
Definition: CommonStructures.h:6
SeedMakingDeviceContext::d_doubletstorage
unsigned char * d_doubletstorage
Definition: device_context.h:35
SeedMakingManagedDeviceContext::d_doubletstorage
unsigned char * d_doubletstorage
Definition: device_context.h:69
SeedMakingManagedDeviceContext::d_size
size_t d_size
Definition: device_context.h:72
SeedMakingDeviceContext::d_size
size_t d_size
Definition: device_context.h:38
SeedMakingDeviceContext::h_outputseeds
unsigned char * h_outputseeds
Definition: device_context.h:32
SeedMakingManagedDeviceContext
Definition: device_context.h:45
SeedMakingDeviceContext
Definition: device_context.h:17
SeedMakingDeviceContext::m_deviceId
int m_deviceId
Definition: device_context.h:23
SeedMakingDeviceContext::d_outputseeds
unsigned char * d_outputseeds
Definition: device_context.h:33
SeedMakingManagedDeviceContext::m_deviceId
int m_deviceId
Definition: device_context.h:52
SeedMakingManagedDeviceContext::m_confirmedseeds
unsigned char * m_confirmedseeds
Definition: device_context.h:67
TrigInDetAccelEDM.h