ATLAS Offline Software
Loading...
Searching...
No Matches
EFTrackingFPGAIntegration::F600IntegrationAlg Class Reference

#include <F600IntegrationAlg.h>

Inheritance diagram for EFTrackingFPGAIntegration::F600IntegrationAlg:

Public Member Functions

virtual StatusCode initialize () override final
 Detect the OpenCL devices and prepare OpenCL context.
virtual StatusCode execute (const EventContext &ctx) const override final
 Should be overriden by derived classes to perform meaningful work.
virtual StatusCode finalize () override final
StatusCode loadProgram (const std::string &xclbin)
 Find the xclbin file and load it into the OpenCL program object.
StatusCode precheck (const std::vector< Gaudi::Property< std::string > > &inputs) const
 Check if the the desired Gaudi properties are set.
virtual StatusCode sysInitialize () override
 Override sysInitialize.
virtual bool isClonable () const override
 Specify if the algorithm is clonable.
virtual unsigned int cardinality () const override
 Cardinality (Maximum number of clones that can exist) special value 0 means that algorithm is reentrant.
virtual StatusCode sysExecute (const EventContext &ctx) override
 Execute an algorithm.
virtual const DataObjIDColl & extraOutputDeps () const override
 Return the list of extra output dependencies.
virtual bool filterPassed (const EventContext &ctx) const
virtual void setFilterPassed (bool state, const EventContext &ctx) const
ServiceHandle< StoreGateSvc > & evtStore ()
 The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.
const ServiceHandle< StoreGateSvc > & detStore () const
 The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.
virtual StatusCode sysStart () override
 Handle START transition.
virtual std::vector< Gaudi::DataHandle * > inputHandles () const override
 Return this algorithm's input handles.
virtual std::vector< Gaudi::DataHandle * > outputHandles () const override
 Return this algorithm's output handles.
Gaudi::Details::PropertyBase & declareProperty (Gaudi::Property< T, V, H > &t)
void updateVHKA (Gaudi::Details::PropertyBase &)
MsgStream & msg () const
bool msgLvl (const MSG::Level lvl) const

Protected Member Functions

void renounceArray (SG::VarHandleKeyArray &handlesArray)
 remove all handles from I/O resolution
std::enable_if_t< std::is_void_v< std::result_of_t< decltype(&T::renounce)(T)> > &&!std::is_base_of_v< SG::VarHandleKeyArray, T > &&std::is_base_of_v< Gaudi::DataHandle, T >, void > renounce (T &h)
void extraDeps_update_handler (Gaudi::Details::PropertyBase &ExtraDeps)
 Add StoreName to extra input/output deps as needed.

Protected Attributes

cl::Device m_accelerator
 Device object for the accelerator card.
cl::Context m_context
 Context object for the application.
cl::Program m_program
 Program object containing the kernel.
Gaudi::Property< std::string > m_deviceBDF {this, "bdfID", "", "BDF ID of the accelerator card"}
 BDF ID of the accelerator card.
Gaudi::Property< bool > m_doEmulation {this, "doEmulation", false, "If software or hardware emulation is being used for debugging"}

Private Types

typedef ServiceHandle< StoreGateSvcStoreGateSvc_t

Private Member Functions

std::string get_cu_name (const std::string &kernel_name, int cu)
int readTVLength (std::string filepath) const
void readTV (const std::string &filepath, int n_words, uint64_t *data) const
void outputHexData (size_t dataLen, uint64_t *data, const std::string &dataDescriptor) const
Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &)
 specialization for handling Gaudi::Property<SG::VarHandleKey>

Private Attributes

ServiceHandle< IChronoSvc > m_chronoSvc
 Service for timing the algorithm.
ToolHandle< xAODClusterMakerm_xaodClusterMaker
 Tool for creating xAOD containers.
ToolHandle< TestVectorToolm_testVectorTool
 Tool for preparing test vectors.
ToolHandle< FPGADataFormatToolm_FPGADataFormatTool
 Tool for formatting FPGA data.
Gaudi::Property< std::string > m_xclbin
 Path and name of the xclbin file.
SG::ReadHandleKey< FPGATrackSimTrackCollectionm_FPGATrackKey {this, "FPGATrackSimTrack1stKey","FPGATracks_1st_reg34","FPGATrackSim Tracks 1st stage key"}
ToolHandle< OutputConversionToolm_outputConversionTool {this, "OutputConversionTool", "OutputConversionTool", "tool for output conversion"}
Gaudi::Property< std::string > m_pixelClusteringKernelName
Gaudi::Property< std::string > m_processHitsKernelName
Gaudi::Property< std::string > m_pixelL2gKernelName
Gaudi::Property< std::string > m_stripL2gKernelName
Gaudi::Property< std::string > m_pixelEdmPrepKernelName
Gaudi::Property< std::string > m_stripEdmPrepKernelName
Gaudi::Property< std::string > m_pixelFirstStageSlicingIPName
Gaudi::Property< std::string > m_pixelFirstStageInputKernelName
Gaudi::Property< std::string > m_pixelFirstStageOutputKernelName
Gaudi::Property< std::string > m_memReadKernelName
Gaudi::Property< std::string > m_memWriteKernelName
Gaudi::Property< std::string > m_spacepointKernelName
Gaudi::Property< std::string > m_loaderKernelName
Gaudi::Property< std::string > m_unloaderKernelName
Gaudi::Property< std::string > m_nnOverlapDecoratorKernelName
Gaudi::Property< std::string > m_runnerKernelName
Gaudi::Property< std::string > m_pixelClusterInputPath
Gaudi::Property< std::string > m_pixelStageOneSlicingInputPath
Gaudi::Property< std::string > m_insideOutInputPath
std::atomic< cl_ulong > m_kernelTime {0}
 Time for kernel execution.
std::atomic< cl_ulong > m_sum_kernelTime {0}
 Sum for the average time of the kernel execution.
std::atomic< ulonglong > m_num_Events {0}
 Number of events for the average time of the kernel execution.
xrt::device m_xrt_accelerator
std::mutex m_fpgaHandleMtx ATLAS_THREAD_SAFE
std::vector< cl::Event > m_pixelFirstStageSlicingInputEndEvents ATLAS_THREAD_SAFE
std::vector< cl::Event > m_pixelFirstStageSlicingOutputEndEvents ATLAS_THREAD_SAFE
std::vector< cl::Event > m_insideOutInputEndEvents ATLAS_THREAD_SAFE
std::vector< cl::Event > m_insideOutOutputEndEvents ATLAS_THREAD_SAFE
std::vector< cl::Kernel > m_pixelClusterL2GKernels ATLAS_THREAD_SAFE
std::vector< cl::Kernel > m_pixelFirstStageSlicingInputKernels ATLAS_THREAD_SAFE
std::vector< xrt::ip > m_pixelFirstStageSlicingIPs ATLAS_THREAD_SAFE
std::vector< cl::Kernel > m_pixelFirstStageSlicingOutputKernels ATLAS_THREAD_SAFE
std::vector< cl::Kernel > m_insideOutInputKernels ATLAS_THREAD_SAFE
std::vector< cl::Kernel > m_insideOutOutputKernels ATLAS_THREAD_SAFE
std::vector< cl::Buffer > m_pixelClusterL2GInputBufferList ATLAS_THREAD_SAFE
std::vector< cl::Buffer > m_pixelClusterL2GOutputBufferList ATLAS_THREAD_SAFE
std::vector< cl::Buffer > m_pixelClusterL2GEDMOutputBufferList ATLAS_THREAD_SAFE
std::vector< cl::Buffer > m_pixelFirstStageSlicingInputBufferList ATLAS_THREAD_SAFE
std::vector< cl::Buffer > m_pixelFirstStageSlicingOutputBufferList ATLAS_THREAD_SAFE
std::vector< cl::Buffer > m_insideOutInputBufferList ATLAS_THREAD_SAFE
std::vector< cl::Buffer > m_insideOutOutputBufferList ATLAS_THREAD_SAFE
cl::CommandQueue m_queue
DataObjIDColl m_extendedExtraObjects
 Extra output dependency collection, extended by AthAlgorithmDHUpdate to add symlinks.
StoreGateSvc_t m_evtStore
 Pointer to StoreGate (event store by default)
StoreGateSvc_t m_detStore
 Pointer to StoreGate (detector store by default)
std::vector< SG::VarHandleKeyArray * > m_vhka
bool m_varHandleArraysDeclared

Detailed Description

Definition at line 47 of file F600IntegrationAlg.h.

Member Typedef Documentation

◆ StoreGateSvc_t

typedef ServiceHandle<StoreGateSvc> AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::StoreGateSvc_t
privateinherited

Definition at line 388 of file AthCommonDataStore.h.

Member Function Documentation

◆ cardinality()

unsigned int AthCommonReentrantAlgorithm< Gaudi::Algorithm >::cardinality ( ) const
overridevirtualinherited

Cardinality (Maximum number of clones that can exist) special value 0 means that algorithm is reentrant.

Override this to return 0 for reentrant algorithms.

Definition at line 75 of file AthCommonReentrantAlgorithm.cxx.

64{
65 return 0;
66}

◆ declareGaudiProperty()

Gaudi::Details::PropertyBase & AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::declareGaudiProperty ( Gaudi::Property< T, V, H > & hndl,
const SG::VarHandleKeyType &  )
inlineprivateinherited

specialization for handling Gaudi::Property<SG::VarHandleKey>

Definition at line 156 of file AthCommonDataStore.h.

158 {
160 hndl.value(),
161 hndl.documentation());
162
163 }
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)

◆ declareProperty()

Gaudi::Details::PropertyBase & AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::declareProperty ( Gaudi::Property< T, V, H > & t)
inlineinherited

Definition at line 145 of file AthCommonDataStore.h.

145 {
146 typedef typename SG::HandleClassifier<T>::type htype;
148 }
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>

◆ detStore()

const ServiceHandle< StoreGateSvc > & AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::detStore ( ) const
inlineinherited

The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.

Definition at line 95 of file AthCommonDataStore.h.

◆ evtStore()

ServiceHandle< StoreGateSvc > & AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::evtStore ( )
inlineinherited

The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.

Definition at line 85 of file AthCommonDataStore.h.

◆ execute()

StatusCode EFTrackingFPGAIntegration::F600IntegrationAlg::execute ( const EventContext & ctx) const
finaloverridevirtual

Should be overriden by derived classes to perform meaningful work.

Reimplemented from IntegrationBase.

Definition at line 109 of file F600IntegrationAlg.cxx.

110 {
111 ATH_MSG_DEBUG("Executing F600IntegrationAlg");
112
113 int n_pixel_words = readTVLength(m_pixelClusterInputPath);
114 int n_pixel_ghitz_words = readTVLength(m_pixelStageOneSlicingInputPath);
115 int n_pixel_first_sliced_words = readTVLength(m_insideOutInputPath);
116 int n_inside_out_words = 4 * 1024;
117
118 ATH_MSG_DEBUG("Pixel Clustering TV words = " << n_pixel_words << " (64b)");
119 ATH_MSG_DEBUG("Pixel GHITZ TV words = " << n_pixel_ghitz_words << " (64b)");
120 ATH_MSG_DEBUG("Pixel Sliced TV words = " << n_pixel_first_sliced_words << " (64b)");
121
122 uint64_t pixel_cls_input_data[n_pixel_words];
123 uint64_t pixel_ghitz_data[n_pixel_ghitz_words];
124 uint64_t pixel_first_sliced_data[n_pixel_first_sliced_words];
125
126 readTV(m_pixelClusterInputPath, n_pixel_words, pixel_cls_input_data);
127 readTV(m_pixelStageOneSlicingInputPath, n_pixel_ghitz_words, pixel_ghitz_data);
128 readTV(m_insideOutInputPath, n_pixel_first_sliced_words, pixel_first_sliced_data);
129
130 std::unique_lock lock(m_fpgaHandleMtx);
131
132 cl_int err = 0;
133 size_t pixel_size_bytes = n_pixel_words * sizeof(uint64_t);
134 size_t pixel_ghitz_size_bytes = n_pixel_ghitz_words * sizeof(uint64_t);
135 size_t pixel_first_sliced_size_bytes = n_pixel_first_sliced_words * sizeof(uint64_t);
136 size_t inside_out_size_bytes = n_inside_out_words * sizeof(uint64_t);
137
138 ATH_MSG_DEBUG("Allocating pxl cls input buffer");
139 m_pixelClusterL2GInputBufferList.push_back(cl::Buffer(m_context, CL_MEM_READ_WRITE, pixel_size_bytes, NULL, &err));
140 ATH_MSG_DEBUG("Allocating pxl cls out buffer");
141 m_pixelClusterL2GOutputBufferList.push_back(cl::Buffer(m_context, CL_MEM_READ_WRITE, pixel_ghitz_size_bytes, NULL, &err));
142 ATH_MSG_DEBUG("Allocating pxl cls EDM out buffer");
143 m_pixelClusterL2GEDMOutputBufferList.push_back(cl::Buffer(m_context, CL_MEM_READ_WRITE, pixel_ghitz_size_bytes, NULL, &err));
144 ATH_MSG_DEBUG("Allocating Input Buffer in Global Memory");
145 m_pixelFirstStageSlicingInputBufferList.push_back(cl::Buffer(m_context, CL_MEM_READ_WRITE, pixel_ghitz_size_bytes, NULL, &err));
146 ATH_MSG_DEBUG("Allocating Output Buffer in Global Memory");
147 m_pixelFirstStageSlicingOutputBufferList.push_back(cl::Buffer(m_context, CL_MEM_READ_WRITE, pixel_first_sliced_size_bytes, NULL, &err));
148 ATH_MSG_DEBUG("Allocating Inside PR Input Buffer in Global Memory");
149 m_insideOutInputBufferList.push_back(cl::Buffer(m_context, CL_MEM_READ_WRITE, pixel_first_sliced_size_bytes, NULL, &err));
150 ATH_MSG_DEBUG("Allocating Inside PR Output Buffer in Global Memory");
151 m_insideOutOutputBufferList.push_back(cl::Buffer(m_context, CL_MEM_READ_WRITE, inside_out_size_bytes, NULL, &err));
152
153 // Create Input/Output Kernel runs and set arguments
154 ATH_MSG_DEBUG("Setting buffer for pxl cls input.");
155 m_pixelClusterL2GKernels[0].setArg(0, m_pixelClusterL2GInputBufferList[0]);
156 ATH_MSG_DEBUG("Setting buffer for pxl cls output.");
157 m_pixelClusterL2GKernels[0].setArg(1, m_pixelClusterL2GOutputBufferList[0]);
158 ATH_MSG_DEBUG("Setting buffer for pxl cls EDM output.");
159 m_pixelClusterL2GKernels[0].setArg(2, m_pixelClusterL2GEDMOutputBufferList[0]);
160
161 ATH_MSG_DEBUG("Setting buffer for Input kernel run.");
162 m_pixelFirstStageSlicingInputKernels[0].setArg(0, m_pixelFirstStageSlicingInputBufferList[0]);
163 ATH_MSG_DEBUG("Setting # words for Input kernel run.");
164 m_pixelFirstStageSlicingInputKernels[0].setArg(1, n_pixel_ghitz_words);
165
166 ATH_MSG_DEBUG("Setting buffer for Output kernel run.");
167 m_pixelFirstStageSlicingOutputKernels[0].setArg(0, m_pixelFirstStageSlicingOutputBufferList[0]);
168 ATH_MSG_DEBUG("Setting # words for Output kernel run.");
169 m_pixelFirstStageSlicingOutputKernels[0].setArg(1, n_pixel_first_sliced_words);
170
171 ATH_MSG_DEBUG("Setting buffer for Input kernel run INSIDE OUT.");
172 m_insideOutInputKernels[0].setArg(0, m_insideOutInputBufferList[0]);
173
174 ATH_MSG_DEBUG("Setting buffer for Output kernel run INSIDE OUT.");
175 m_insideOutOutputKernels[0].setArg(0, m_insideOutOutputBufferList[0]);
176
177 // Pixel Clustering
178 // Write
179 ATH_MSG_DEBUG("Loading input data to pixel clustering kernel...");
180 m_queue.enqueueWriteBuffer(m_pixelClusterL2GInputBufferList[0], CL_TRUE, 0, pixel_size_bytes, &pixel_cls_input_data, NULL, NULL);
181
182 // Verify write
183 outputHexData(n_pixel_words, pixel_cls_input_data, "Pixel Clustering Input");
184
185 // Execute
186 ATH_MSG_DEBUG("Executing pixel clustering");
187 m_queue.enqueueTask(m_pixelClusterL2GKernels[0]);
188 m_queue.finish();
189
190 // Read
191 ATH_MSG_DEBUG("Reading pixel clustering output");
192 uint64_t cls_out_data[n_pixel_ghitz_words];
193 m_queue.enqueueReadBuffer(m_pixelClusterL2GOutputBufferList[0], CL_TRUE, 0, pixel_ghitz_size_bytes, &cls_out_data);
194
195 outputHexData(n_pixel_ghitz_words, cls_out_data, "Real Pixel Clustering Output");
196
197 // Read
198 ATH_MSG_DEBUG("Reading pixel clustering EDM output");
199 uint64_t cls_out_edm_data[n_pixel_ghitz_words];
200 m_queue.enqueueReadBuffer(m_pixelClusterL2GEDMOutputBufferList[0], CL_TRUE, 0, pixel_ghitz_size_bytes, &cls_out_edm_data);
201
202 outputHexData(n_pixel_ghitz_words, cls_out_edm_data, "Real Pixel Clustering EDM Output");
203
204
205 ATH_MSG_DEBUG("Loading input data to Slicing Engine...");
206 m_queue.enqueueWriteBuffer(m_pixelFirstStageSlicingInputBufferList[0], CL_TRUE, 0, pixel_ghitz_size_bytes, &pixel_ghitz_data, NULL, NULL);
207
208 outputHexData(n_pixel_ghitz_words, pixel_ghitz_data, "Ideal Pixel Clustering Output");
209
210 // Reset slicing engine event counters
211 m_pixelFirstStageSlicingIPs[0].write_register(USER_CTRL_OFFSET, EVENT_COUNT_RST);
212
213 ATH_MSG_DEBUG("------------------------------------------------------------------------------------------------");
214
215 // Start Input/Output Kernel runs
216 ATH_MSG_DEBUG("Starting Input kernel run.");
217 m_queue.enqueueTask(m_pixelFirstStageSlicingInputKernels[0]);
218 ATH_MSG_DEBUG("Starting Output kernel run.");
219 m_queue.enqueueTask(m_pixelFirstStageSlicingOutputKernels[0]);
220 m_queue.finish();
221
222 // Get the output;
223 ATH_MSG_DEBUG("Synchronize output buffer data from device global memory");
224 uint64_t se_out_data[n_pixel_first_sliced_words];
225 m_queue.enqueueReadBuffer(m_pixelFirstStageSlicingOutputBufferList[0], CL_TRUE, 0, pixel_first_sliced_size_bytes, &se_out_data);
226
227 outputHexData(n_pixel_first_sliced_words, se_out_data, "Slicing Engine Output");
228
229 ATH_MSG_DEBUG("Write SE output to inside out input (cross DDR banks)");
230 m_queue.enqueueWriteBuffer(m_insideOutInputBufferList[0], CL_TRUE, 0, pixel_first_sliced_size_bytes, &pixel_first_sliced_data, NULL, NULL);
231
232 ATH_MSG_DEBUG("Starting Inside Out Input kernel run.");
233 m_queue.enqueueTask(m_insideOutInputKernels[0]);
234 m_queue.finish();
235 ATH_MSG_DEBUG("Starting Inside Out Output kernel run.");
236 m_queue.enqueueTask(m_insideOutOutputKernels[0]);
237 m_queue.finish();
238
239
240 ATH_MSG_DEBUG("Slicing Engine System Done");
241 ATH_MSG_DEBUG("------------------------------------------------------------------------------------------------");
242
243
244 return StatusCode::SUCCESS;
245 }
#define ATH_MSG_DEBUG(x)
#define USER_CTRL_OFFSET
#define EVENT_COUNT_RST
void outputHexData(size_t dataLen, uint64_t *data, const std::string &dataDescriptor) const
Gaudi::Property< std::string > m_pixelStageOneSlicingInputPath
Gaudi::Property< std::string > m_insideOutInputPath
Gaudi::Property< std::string > m_pixelClusterInputPath
void readTV(const std::string &filepath, int n_words, uint64_t *data) const
cl::Context m_context
Context object for the application.

◆ extraDeps_update_handler()

void AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::extraDeps_update_handler ( Gaudi::Details::PropertyBase & ExtraDeps)
protectedinherited

Add StoreName to extra input/output deps as needed.

use the logic of the VarHandleKey to parse the DataObjID keys supplied via the ExtraInputs and ExtraOuputs Properties to add the StoreName if it's not explicitly given

◆ extraOutputDeps()

const DataObjIDColl & AthCommonReentrantAlgorithm< Gaudi::Algorithm >::extraOutputDeps ( ) const
overridevirtualinherited

Return the list of extra output dependencies.

This list is extended to include symlinks implied by inheritance relations.

Definition at line 94 of file AthCommonReentrantAlgorithm.cxx.

90{
91 // If we didn't find any symlinks to add, just return the collection
92 // from the base class. Otherwise, return the extended collection.
93 if (!m_extendedExtraObjects.empty()) {
95 }
97}
An algorithm that can be simultaneously executed in multiple threads.

◆ filterPassed()

virtual bool AthCommonReentrantAlgorithm< Gaudi::Algorithm >::filterPassed ( const EventContext & ctx) const
inlinevirtualinherited

Definition at line 96 of file AthCommonReentrantAlgorithm.h.

96 {
97 return execState( ctx ).filterPassed();
98 }
virtual bool filterPassed(const EventContext &ctx) const

◆ finalize()

StatusCode EFTrackingFPGAIntegration::F600IntegrationAlg::finalize ( )
finaloverridevirtual

Definition at line 247 of file F600IntegrationAlg.cxx.

248 {
249 ATH_MSG_INFO("Average Kernel execution time: " << m_sum_kernelTime /m_num_Events /1e6 << " ms");
250 return StatusCode::SUCCESS;
251 }
#define ATH_MSG_INFO(x)
std::atomic< cl_ulong > m_sum_kernelTime
Sum for the average time of the kernel execution.
std::atomic< ulonglong > m_num_Events
Number of events for the average time of the kernel execution.

◆ get_cu_name()

std::string EFTrackingFPGAIntegration::F600IntegrationAlg::get_cu_name ( const std::string & kernel_name,
int cu )
private

Definition at line 12 of file F600IntegrationAlg.cxx.

12 {
13 std::string full_cu_name = kernel_name + ":{" + kernel_name + "_" + std::to_string(cu) + "}";
14 ATH_MSG_DEBUG("LOADING " + full_cu_name);
15 return full_cu_name;
16 }

◆ initialize()

StatusCode EFTrackingFPGAIntegration::F600IntegrationAlg::initialize ( )
finaloverridevirtual

Detect the OpenCL devices and prepare OpenCL context.

This should always be called by derived classes when running on the FPGA accelerator.

Reimplemented from IntegrationBase.

Definition at line 26 of file F600IntegrationAlg.cxx.

27 {
28 ATH_MSG_INFO("Running on the FPGA accelerator");
29
30 ATH_CHECK(m_chronoSvc.retrieve());
31
32 {
33 Athena::Chrono chrono("Platform and device initlize", m_chronoSvc.get());
35
36 ATH_MSG_INFO("Initializing xrt::device");
37 m_xrt_accelerator = xrt::opencl::get_xrt_device(m_accelerator.get());
38 ATH_MSG_INFO("xrt::device bdf: " + m_xrt_accelerator.get_info<xrt::info::device::bdf>() + " with name: " + m_xrt_accelerator.get_info<xrt::info::device::name>());
39 }
40
41 {
42 Athena::Chrono chrono("CL::loadProgram", m_chronoSvc.get());
43 ATH_MSG_INFO("LOADING PROGRAM: " + m_xclbin);
45 }
46
47 cl_int err = CL_SUCCESS;
48
49 xrt::uuid loaded_xclbin_uuid = m_xrt_accelerator.get_xclbin_uuid();
50 int cu = 1;
51
52 // Pixel clustering
53 m_pixelClusterL2GKernels.push_back(cl::Kernel(m_program, get_cu_name(m_pixelClusteringKernelName, cu).c_str(), &err));
54
55 // Slicing Engine
56 for (int i = 0; i < 1; ++i) {
57 m_pixelFirstStageSlicingIPs.push_back(xrt::ip(m_xrt_accelerator, loaded_xclbin_uuid, get_cu_name(m_pixelFirstStageSlicingIPName, cu + i)));
58 m_pixelFirstStageSlicingInputKernels.push_back(cl::Kernel(m_program, get_cu_name(m_pixelFirstStageInputKernelName, cu + i).c_str(), &err));
59 m_pixelFirstStageSlicingOutputKernels.push_back(cl::Kernel(m_program, get_cu_name(m_pixelFirstStageOutputKernelName, cu + i).c_str(), &err));
60 }
61
62 m_insideOutInputKernels.push_back(cl::Kernel(m_program, get_cu_name(m_memReadKernelName, cu).c_str(), &err));
63 m_insideOutOutputKernels.push_back(cl::Kernel(m_program, get_cu_name(m_memWriteKernelName, cu).c_str(), &err));
64
65 m_queue = cl::CommandQueue(m_context, m_accelerator, CL_QUEUE_PROFILING_ENABLE , &err);
66
67 if (err != CL_SUCCESS) {
68 return StatusCode::FAILURE;
69 }
70
71 ATH_CHECK(m_xaodClusterMaker.retrieve());
72 ATH_CHECK(m_testVectorTool.retrieve());
74 ATH_CHECK(m_FPGATrackKey.initialize());
76 return StatusCode::SUCCESS;
77 }
#define ATH_CHECK
Evaluate an expression and check for errors.
Gaudi::Property< std::string > m_pixelFirstStageInputKernelName
Gaudi::Property< std::string > m_pixelClusteringKernelName
std::string get_cu_name(const std::string &kernel_name, int cu)
ToolHandle< xAODClusterMaker > m_xaodClusterMaker
Tool for creating xAOD containers.
Gaudi::Property< std::string > m_pixelFirstStageOutputKernelName
Gaudi::Property< std::string > m_memReadKernelName
ToolHandle< TestVectorTool > m_testVectorTool
Tool for preparing test vectors.
Gaudi::Property< std::string > m_xclbin
Path and name of the xclbin file.
Gaudi::Property< std::string > m_memWriteKernelName
ToolHandle< FPGADataFormatTool > m_FPGADataFormatTool
Tool for formatting FPGA data.
Gaudi::Property< std::string > m_pixelFirstStageSlicingIPName
ToolHandle< OutputConversionTool > m_outputConversionTool
SG::ReadHandleKey< FPGATrackSimTrackCollection > m_FPGATrackKey
ServiceHandle< IChronoSvc > m_chronoSvc
Service for timing the algorithm.
StatusCode loadProgram(const std::string &xclbin)
Find the xclbin file and load it into the OpenCL program object.
cl::Program m_program
Program object containing the kernel.
virtual StatusCode initialize() override
Detect the OpenCL devices and prepare OpenCL context.
cl::Device m_accelerator
Device object for the accelerator card.

◆ inputHandles()

virtual std::vector< Gaudi::DataHandle * > AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::inputHandles ( ) const
overridevirtualinherited

Return this algorithm's input handles.

We override this to include handle instances from key arrays if they have not yet been declared. See comments on updateVHKA.

◆ isClonable()

◆ loadProgram()

StatusCode IntegrationBase::loadProgram ( const std::string & xclbin)
inherited

Find the xclbin file and load it into the OpenCL program object.

Definition at line 115 of file IntegrationBase.cxx.

116{
117 // Open binary object in binary mode
118 std::ifstream bin_file(xclbin, std::ios_base::binary);
119 if (!bin_file)
120 {
121 ATH_MSG_ERROR("Couldn't find the xclbin file: " << xclbin);
122 return StatusCode::FAILURE;
123 }
124 // Get the size of the binary file
125 bin_file.seekg(0, bin_file.end);
126 unsigned bin_size = bin_file.tellg();
127 // Reset the reference point back to the beginning
128 bin_file.seekg(0, bin_file.beg);
129 // Create a new pointer for the binary buffer and get the set a pointer to the binary buffer
130 std::vector<char> buf(bin_size);
131 bin_file.read(buf.data(), bin_size);
132
133 // Create binary object and program object
134 cl_int err = 0;
135 std::vector<cl_int> binaryStatus;
136 cl::Program::Binaries bins{{buf.data(), bin_size}};
137 m_program = cl::Program(m_context, {m_accelerator}, bins, &binaryStatus, &err);
138
139 bin_file.close();
140
141 if (err == CL_SUCCESS && binaryStatus.at(0) == CL_SUCCESS)
142 {
143 ATH_MSG_INFO("Successfully loaded xclbin file into " << m_accelerator.getInfo<CL_DEVICE_NAME>());
144 }
145 else
146 {
147 ATH_MSG_ERROR("Error loading xclbin file (" << xclbin << ") into " << m_accelerator.getInfo<CL_DEVICE_NAME>() <<". Error code: " << err);
148 return StatusCode::FAILURE;
149 }
150
151 return StatusCode::SUCCESS;
152}
#define ATH_MSG_ERROR(x)
static const std::vector< std::string > bins

◆ msg()

MsgStream & AthCommonMsg< Gaudi::Algorithm >::msg ( ) const
inlineinherited

Definition at line 24 of file AthCommonMsg.h.

24 {
25 return this->msgStream();
26 }

◆ msgLvl()

bool AthCommonMsg< Gaudi::Algorithm >::msgLvl ( const MSG::Level lvl) const
inlineinherited

Definition at line 30 of file AthCommonMsg.h.

30 {
31 return this->msgLevel(lvl);
32 }

◆ outputHandles()

virtual std::vector< Gaudi::DataHandle * > AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::outputHandles ( ) const
overridevirtualinherited

Return this algorithm's output handles.

We override this to include handle instances from key arrays if they have not yet been declared. See comments on updateVHKA.

◆ outputHexData()

void EFTrackingFPGAIntegration::F600IntegrationAlg::outputHexData ( size_t dataLen,
uint64_t * data,
const std::string & dataDescriptor ) const
private

Definition at line 18 of file F600IntegrationAlg.cxx.

18 {
19 ATH_MSG_DEBUG("STARTING " << dataDescriptor << " words:");
20 for (size_t i = 0; i < dataLen; i++) {
21 ATH_MSG_DEBUG(std::hex << std::setw(16) << std::setfill('0') << data[i]);
22 }
23 ATH_MSG_DEBUG("ENDING " << dataDescriptor << " words");
24 }
char data[hepevt_bytes_allocation_ATLAS]
Definition HepEvt.cxx:11

◆ precheck()

StatusCode IntegrationBase::precheck ( const std::vector< Gaudi::Property< std::string > > & inputs) const
inherited

Check if the the desired Gaudi properties are set.

Definition at line 154 of file IntegrationBase.cxx.

155{
156 for(const auto &item : inputs)
157 {
158 if(item.empty())
159 {
160 ATH_MSG_FATAL(item.documentation()<<" is empty. Please set it to a valid value");
161 return StatusCode::FAILURE;
162 }
163 }
164
165 // Always check if bdf is set
166 if (m_deviceBDF.empty())
167 {
168 ATH_MSG_WARNING("Device BDF is not set. Using the first found accelerator card. Set property 'bdfID' to specify the BDF of the device.");
169 }
170
171 return StatusCode::SUCCESS;
172}
#define ATH_MSG_FATAL(x)
#define ATH_MSG_WARNING(x)
Gaudi::Property< std::string > m_deviceBDF
BDF ID of the accelerator card.

◆ readTV()

void EFTrackingFPGAIntegration::F600IntegrationAlg::readTV ( const std::string & filepath,
int n_words,
uint64_t * data ) const
private

Definition at line 89 of file F600IntegrationAlg.cxx.

89 {
90 std::ifstream file_in;
91 std::string line_in = "";
92
93 std::fill(data, data + n_words, 0);
94
95 ATH_MSG_DEBUG("Reading data from file: " + filepath);
96 file_in.open(filepath);
97 if (file_in.is_open()) {
98 for(int i = 0; i < n_words; i++) {
99 std::getline (file_in, line_in);
100 data[i] = std::stoul(line_in.c_str(), NULL, 16);
101 }
102 } else {
103 ATH_MSG_INFO("ERROR! Unable to open data file: " + filepath);
104 }
105 ATH_MSG_DEBUG("Closing " << filepath);
106 file_in.close();
107 }
constexpr std::size_t n_words

◆ readTVLength()

int EFTrackingFPGAIntegration::F600IntegrationAlg::readTVLength ( std::string filepath) const
private

Definition at line 79 of file F600IntegrationAlg.cxx.

79 {
80 int n_words;
81 int size = 0;
82 ATH_MSG_DEBUG("Reading len of: " << filepath);
83 size = std::filesystem::file_size(filepath);
84 n_words = size / (16 + 1);
85 ATH_MSG_DEBUG("Num TV words (64b): " << n_words);
86 return n_words;
87 }

◆ renounce()

std::enable_if_t< std::is_void_v< std::result_of_t< decltype(&T::renounce)(T)> > &&!std::is_base_of_v< SG::VarHandleKeyArray, T > &&std::is_base_of_v< Gaudi::DataHandle, T >, void > AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::renounce ( T & h)
inlineprotectedinherited

Definition at line 380 of file AthCommonDataStore.h.

381 {
382 h.renounce();
384 }
std::enable_if_t< std::is_void_v< std::result_of_t< decltype(&T::renounce)(T)> > &&!std::is_base_of_v< SG::VarHandleKeyArray, T > &&std::is_base_of_v< Gaudi::DataHandle, T >, void > renounce(T &h)

◆ renounceArray()

void AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::renounceArray ( SG::VarHandleKeyArray & handlesArray)
inlineprotectedinherited

remove all handles from I/O resolution

Definition at line 364 of file AthCommonDataStore.h.

364 {
366 }

◆ setFilterPassed()

virtual void AthCommonReentrantAlgorithm< Gaudi::Algorithm >::setFilterPassed ( bool state,
const EventContext & ctx ) const
inlinevirtualinherited

Definition at line 100 of file AthCommonReentrantAlgorithm.h.

100 {
102 }
virtual void setFilterPassed(bool state, const EventContext &ctx) const

◆ sysExecute()

StatusCode AthCommonReentrantAlgorithm< Gaudi::Algorithm >::sysExecute ( const EventContext & ctx)
overridevirtualinherited

Execute an algorithm.

We override this in order to work around an issue with the Algorithm base class storing the event context in a member variable that can cause crashes in MT jobs.

Definition at line 85 of file AthCommonReentrantAlgorithm.cxx.

77{
78 return BaseAlg::sysExecute (ctx);
79}

◆ sysInitialize()

StatusCode AthCommonReentrantAlgorithm< Gaudi::Algorithm >::sysInitialize ( )
overridevirtualinherited

Override sysInitialize.

Override sysInitialize from the base class.

Loop through all output handles, and if they're WriteCondHandles, automatically register them and this Algorithm with the CondSvc

Scan through all outputHandles, and if they're WriteCondHandles, register them with the CondSvc

Reimplemented from AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >.

Reimplemented in HypoBase, and InputMakerBase.

Definition at line 61 of file AthCommonReentrantAlgorithm.cxx.

107 {
109
110 if (sc.isFailure()) {
111 return sc;
112 }
113
114 ServiceHandle<ICondSvc> cs("CondSvc",name());
115 for (auto h : outputHandles()) {
116 if (h->isCondition() && h->mode() == Gaudi::DataHandle::Writer) {
117 // do this inside the loop so we don't create the CondSvc until needed
118 if ( cs.retrieve().isFailure() ) {
119 ATH_MSG_WARNING("no CondSvc found: won't autoreg WriteCondHandles");
120 return StatusCode::SUCCESS;
121 }
122 if (cs->regHandle(this,*h).isFailure()) {
124 ATH_MSG_ERROR("unable to register WriteCondHandle " << h->fullKey()
125 << " with CondSvc");
126 }
127 }
128 }
129 return sc;
130}
virtual std::vector< Gaudi::DataHandle * > outputHandles() const override

◆ sysStart()

virtual StatusCode AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::sysStart ( )
overridevirtualinherited

Handle START transition.

We override this in order to make sure that conditions handle keys can cache a pointer to the conditions container.

◆ updateVHKA()

void AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::updateVHKA ( Gaudi::Details::PropertyBase & )
inlineinherited

Definition at line 308 of file AthCommonDataStore.h.

308 {
309 // debug() << "updateVHKA for property " << p.name() << " " << p.toString()
310 // << " size: " << m_vhka.size() << endmsg;
311 for (auto &a : m_vhka) {
313 for (auto k : keys) {
314 k->setOwner(this);
315 }
316 }
317 }

Member Data Documentation

◆ ATLAS_THREAD_SAFE [1/18]

std::mutex m_fpgaHandleMtx EFTrackingFPGAIntegration::F600IntegrationAlg::ATLAS_THREAD_SAFE
mutableprivate

Definition at line 144 of file F600IntegrationAlg.h.

◆ ATLAS_THREAD_SAFE [2/18]

std::vector<cl::Event> m_pixelFirstStageSlicingInputEndEvents EFTrackingFPGAIntegration::F600IntegrationAlg::ATLAS_THREAD_SAFE
mutableprivate

Definition at line 146 of file F600IntegrationAlg.h.

◆ ATLAS_THREAD_SAFE [3/18]

std::vector<cl::Event> m_pixelFirstStageSlicingOutputEndEvents EFTrackingFPGAIntegration::F600IntegrationAlg::ATLAS_THREAD_SAFE
mutableprivate

Definition at line 147 of file F600IntegrationAlg.h.

◆ ATLAS_THREAD_SAFE [4/18]

std::vector<cl::Event> m_insideOutInputEndEvents EFTrackingFPGAIntegration::F600IntegrationAlg::ATLAS_THREAD_SAFE
mutableprivate

Definition at line 148 of file F600IntegrationAlg.h.

◆ ATLAS_THREAD_SAFE [5/18]

std::vector<cl::Event> m_insideOutOutputEndEvents EFTrackingFPGAIntegration::F600IntegrationAlg::ATLAS_THREAD_SAFE
mutableprivate

Definition at line 149 of file F600IntegrationAlg.h.

◆ ATLAS_THREAD_SAFE [6/18]

std::vector<cl::Kernel> m_pixelClusterL2GKernels EFTrackingFPGAIntegration::F600IntegrationAlg::ATLAS_THREAD_SAFE
mutableprivate

Definition at line 153 of file F600IntegrationAlg.h.

◆ ATLAS_THREAD_SAFE [7/18]

std::vector<cl::Kernel> m_pixelFirstStageSlicingInputKernels EFTrackingFPGAIntegration::F600IntegrationAlg::ATLAS_THREAD_SAFE
mutableprivate

Definition at line 155 of file F600IntegrationAlg.h.

◆ ATLAS_THREAD_SAFE [8/18]

std::vector<xrt::ip> m_pixelFirstStageSlicingIPs EFTrackingFPGAIntegration::F600IntegrationAlg::ATLAS_THREAD_SAFE
mutableprivate

Definition at line 156 of file F600IntegrationAlg.h.

◆ ATLAS_THREAD_SAFE [9/18]

std::vector<cl::Kernel> m_pixelFirstStageSlicingOutputKernels EFTrackingFPGAIntegration::F600IntegrationAlg::ATLAS_THREAD_SAFE
mutableprivate

Definition at line 157 of file F600IntegrationAlg.h.

◆ ATLAS_THREAD_SAFE [10/18]

std::vector<cl::Kernel> m_insideOutInputKernels EFTrackingFPGAIntegration::F600IntegrationAlg::ATLAS_THREAD_SAFE
mutableprivate

Definition at line 159 of file F600IntegrationAlg.h.

◆ ATLAS_THREAD_SAFE [11/18]

std::vector<cl::Kernel> m_insideOutOutputKernels EFTrackingFPGAIntegration::F600IntegrationAlg::ATLAS_THREAD_SAFE
mutableprivate

Definition at line 160 of file F600IntegrationAlg.h.

◆ ATLAS_THREAD_SAFE [12/18]

std::vector<cl::Buffer> m_pixelClusterL2GInputBufferList EFTrackingFPGAIntegration::F600IntegrationAlg::ATLAS_THREAD_SAFE
mutableprivate

Definition at line 165 of file F600IntegrationAlg.h.

◆ ATLAS_THREAD_SAFE [13/18]

std::vector<cl::Buffer> m_pixelClusterL2GOutputBufferList EFTrackingFPGAIntegration::F600IntegrationAlg::ATLAS_THREAD_SAFE
mutableprivate

Definition at line 166 of file F600IntegrationAlg.h.

◆ ATLAS_THREAD_SAFE [14/18]

std::vector<cl::Buffer> m_pixelClusterL2GEDMOutputBufferList EFTrackingFPGAIntegration::F600IntegrationAlg::ATLAS_THREAD_SAFE
mutableprivate

Definition at line 167 of file F600IntegrationAlg.h.

◆ ATLAS_THREAD_SAFE [15/18]

std::vector<cl::Buffer> m_pixelFirstStageSlicingInputBufferList EFTrackingFPGAIntegration::F600IntegrationAlg::ATLAS_THREAD_SAFE
mutableprivate

Definition at line 169 of file F600IntegrationAlg.h.

◆ ATLAS_THREAD_SAFE [16/18]

std::vector<cl::Buffer> m_pixelFirstStageSlicingOutputBufferList EFTrackingFPGAIntegration::F600IntegrationAlg::ATLAS_THREAD_SAFE
mutableprivate

Definition at line 170 of file F600IntegrationAlg.h.

◆ ATLAS_THREAD_SAFE [17/18]

std::vector<cl::Buffer> m_insideOutInputBufferList EFTrackingFPGAIntegration::F600IntegrationAlg::ATLAS_THREAD_SAFE
mutableprivate

Definition at line 172 of file F600IntegrationAlg.h.

◆ ATLAS_THREAD_SAFE [18/18]

std::vector<cl::Buffer> m_insideOutOutputBufferList EFTrackingFPGAIntegration::F600IntegrationAlg::ATLAS_THREAD_SAFE
mutableprivate

Definition at line 173 of file F600IntegrationAlg.h.

◆ m_accelerator

cl::Device IntegrationBase::m_accelerator
protectedinherited

Device object for the accelerator card.

Definition at line 66 of file IntegrationBase.h.

◆ m_chronoSvc

ServiceHandle<IChronoSvc> EFTrackingFPGAIntegration::F600IntegrationAlg::m_chronoSvc
private
Initial value:
{
"ChronoStatSvc", name()}

Service for timing the algorithm.

Definition at line 57 of file F600IntegrationAlg.h.

57 {
58 "ChronoStatSvc", name()};

◆ m_context

cl::Context IntegrationBase::m_context
protectedinherited

Context object for the application.

Definition at line 67 of file IntegrationBase.h.

◆ m_detStore

StoreGateSvc_t AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::m_detStore
privateinherited

Pointer to StoreGate (detector store by default)

Definition at line 393 of file AthCommonDataStore.h.

◆ m_deviceBDF

Gaudi::Property<std::string> IntegrationBase::m_deviceBDF {this, "bdfID", "", "BDF ID of the accelerator card"}
protectedinherited

BDF ID of the accelerator card.

Definition at line 69 of file IntegrationBase.h.

69{this, "bdfID", "", "BDF ID of the accelerator card"};

◆ m_doEmulation

Gaudi::Property<bool> IntegrationBase::m_doEmulation {this, "doEmulation", false, "If software or hardware emulation is being used for debugging"}
protectedinherited

Definition at line 70 of file IntegrationBase.h.

70{this, "doEmulation", false, "If software or hardware emulation is being used for debugging"};

◆ m_evtStore

StoreGateSvc_t AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::m_evtStore
privateinherited

Pointer to StoreGate (event store by default)

Definition at line 390 of file AthCommonDataStore.h.

◆ m_extendedExtraObjects

DataObjIDColl AthCommonReentrantAlgorithm< Gaudi::Algorithm >::m_extendedExtraObjects
privateinherited

Extra output dependency collection, extended by AthAlgorithmDHUpdate to add symlinks.

Empty if no symlinks were found.

Definition at line 114 of file AthCommonReentrantAlgorithm.h.

◆ m_FPGADataFormatTool

ToolHandle<FPGADataFormatTool> EFTrackingFPGAIntegration::F600IntegrationAlg::m_FPGADataFormatTool
private
Initial value:
{
this, "FPGADataFormatTool", "FPGADataFormatTool", "Tool for formatting FPGA data"}

Tool for formatting FPGA data.

Definition at line 69 of file F600IntegrationAlg.h.

69 {
70 this, "FPGADataFormatTool", "FPGADataFormatTool", "Tool for formatting FPGA data"};

◆ m_FPGATrackKey

SG::ReadHandleKey<FPGATrackSimTrackCollection> EFTrackingFPGAIntegration::F600IntegrationAlg::m_FPGATrackKey {this, "FPGATrackSimTrack1stKey","FPGATracks_1st_reg34","FPGATrackSim Tracks 1st stage key"}
private

Definition at line 75 of file F600IntegrationAlg.h.

75{this, "FPGATrackSimTrack1stKey","FPGATracks_1st_reg34","FPGATrackSim Tracks 1st stage key"};

◆ m_insideOutInputPath

Gaudi::Property<std::string> EFTrackingFPGAIntegration::F600IntegrationAlg::m_insideOutInputPath
private
Initial value:
{
this, "InsideOutInputPath", "", "Filepath for the inside out input data"}

Definition at line 132 of file F600IntegrationAlg.h.

132 {
133 this, "InsideOutInputPath", "", "Filepath for the inside out input data"};

◆ m_kernelTime

std::atomic<cl_ulong> EFTrackingFPGAIntegration::F600IntegrationAlg::m_kernelTime {0}
mutableprivate

Time for kernel execution.

Definition at line 137 of file F600IntegrationAlg.h.

137{0};

◆ m_loaderKernelName

Gaudi::Property<std::string> EFTrackingFPGAIntegration::F600IntegrationAlg::m_loaderKernelName
private
Initial value:
{
this, "LoaderKernelName", "", "Name of the loader kernel"}

Definition at line 114 of file F600IntegrationAlg.h.

114 {
115 this, "LoaderKernelName", "", "Name of the loader kernel"};

◆ m_memReadKernelName

Gaudi::Property<std::string> EFTrackingFPGAIntegration::F600IntegrationAlg::m_memReadKernelName
private
Initial value:
{
this, "MemReadKernelName", "", "Name of the memory read kernel"}

Definition at line 104 of file F600IntegrationAlg.h.

104 {
105 this, "MemReadKernelName", "", "Name of the memory read kernel"};

◆ m_memWriteKernelName

Gaudi::Property<std::string> EFTrackingFPGAIntegration::F600IntegrationAlg::m_memWriteKernelName
private
Initial value:
{
this, "MemWriteKernelName", "", "Name of the memory write kernel"}

Definition at line 106 of file F600IntegrationAlg.h.

106 {
107 this, "MemWriteKernelName", "", "Name of the memory write kernel"};

◆ m_nnOverlapDecoratorKernelName

Gaudi::Property<std::string> EFTrackingFPGAIntegration::F600IntegrationAlg::m_nnOverlapDecoratorKernelName
private
Initial value:
{
this, "NnOverlapDecoratorKernelName", "", "Name of the NN overlap decorator kernel"}

Definition at line 120 of file F600IntegrationAlg.h.

120 {
121 this, "NnOverlapDecoratorKernelName", "", "Name of the NN overlap decorator kernel"};

◆ m_num_Events

std::atomic<ulonglong> EFTrackingFPGAIntegration::F600IntegrationAlg::m_num_Events {0}
mutableprivate

Number of events for the average time of the kernel execution.

Definition at line 139 of file F600IntegrationAlg.h.

139{0};

◆ m_outputConversionTool

ToolHandle<OutputConversionTool> EFTrackingFPGAIntegration::F600IntegrationAlg::m_outputConversionTool {this, "OutputConversionTool", "OutputConversionTool", "tool for output conversion"}
private

Definition at line 78 of file F600IntegrationAlg.h.

78{this, "OutputConversionTool", "OutputConversionTool", "tool for output conversion"};

◆ m_pixelClusteringKernelName

Gaudi::Property<std::string> EFTrackingFPGAIntegration::F600IntegrationAlg::m_pixelClusteringKernelName
private
Initial value:
{
this, "PixelClusteringKernelName", "", "Name of the pixel clustering kernel (pxl cls)"}

Definition at line 82 of file F600IntegrationAlg.h.

82 {
83 this, "PixelClusteringKernelName", "", "Name of the pixel clustering kernel (pxl cls)"};

◆ m_pixelClusterInputPath

Gaudi::Property<std::string> EFTrackingFPGAIntegration::F600IntegrationAlg::m_pixelClusterInputPath
private
Initial value:
{
this, "PixelClusterInputPath", "", "Filepath for the pixel clustering input data"}

Definition at line 128 of file F600IntegrationAlg.h.

128 {
129 this, "PixelClusterInputPath", "", "Filepath for the pixel clustering input data"};

◆ m_pixelEdmPrepKernelName

Gaudi::Property<std::string> EFTrackingFPGAIntegration::F600IntegrationAlg::m_pixelEdmPrepKernelName
private
Initial value:
{
this, "PixelEdmPrepKernelName", "", "Name of the pixel EDM prep kernel"}

Definition at line 90 of file F600IntegrationAlg.h.

90 {
91 this, "PixelEdmPrepKernelName", "", "Name of the pixel EDM prep kernel"};

◆ m_pixelFirstStageInputKernelName

Gaudi::Property<std::string> EFTrackingFPGAIntegration::F600IntegrationAlg::m_pixelFirstStageInputKernelName
private
Initial value:
{
this, "PixelFirstStageInputKernelName", "", "Name of the input stage kernel"}

Definition at line 98 of file F600IntegrationAlg.h.

98 {
99 this, "PixelFirstStageInputKernelName", "", "Name of the input stage kernel"};

◆ m_pixelFirstStageOutputKernelName

Gaudi::Property<std::string> EFTrackingFPGAIntegration::F600IntegrationAlg::m_pixelFirstStageOutputKernelName
private
Initial value:
{
this, "PixelFirstStageOutputKernelName", "", "Name of the output stage kernel"}

Definition at line 100 of file F600IntegrationAlg.h.

100 {
101 this, "PixelFirstStageOutputKernelName", "", "Name of the output stage kernel"};

◆ m_pixelFirstStageSlicingIPName

Gaudi::Property<std::string> EFTrackingFPGAIntegration::F600IntegrationAlg::m_pixelFirstStageSlicingIPName
private
Initial value:
{
this, "PixelFirstStageSlicingIPName", "", "Name of the slicing engine IP"}

Definition at line 96 of file F600IntegrationAlg.h.

96 {
97 this, "PixelFirstStageSlicingIPName", "", "Name of the slicing engine IP"};

◆ m_pixelL2gKernelName

Gaudi::Property<std::string> EFTrackingFPGAIntegration::F600IntegrationAlg::m_pixelL2gKernelName
private
Initial value:
{
this, "PixelL2gKernelName", "", "Name of the pixel L2G transformation kernel"}

Definition at line 86 of file F600IntegrationAlg.h.

86 {
87 this, "PixelL2gKernelName", "", "Name of the pixel L2G transformation kernel"};

◆ m_pixelStageOneSlicingInputPath

Gaudi::Property<std::string> EFTrackingFPGAIntegration::F600IntegrationAlg::m_pixelStageOneSlicingInputPath
private
Initial value:
{
this, "PixelStageOneSlicingInputPath", "", "Filepath for the slicing engine (pixel first stage) input data"}

Definition at line 130 of file F600IntegrationAlg.h.

130 {
131 this, "PixelStageOneSlicingInputPath", "", "Filepath for the slicing engine (pixel first stage) input data"};

◆ m_processHitsKernelName

Gaudi::Property<std::string> EFTrackingFPGAIntegration::F600IntegrationAlg::m_processHitsKernelName
private
Initial value:
{
this, "ProcessHitsKernelName", "", "Name of the strip clustering kernel (strp cls)"}

Definition at line 84 of file F600IntegrationAlg.h.

84 {
85 this, "ProcessHitsKernelName", "", "Name of the strip clustering kernel (strp cls)"};

◆ m_program

cl::Program IntegrationBase::m_program
protectedinherited

Program object containing the kernel.

Definition at line 68 of file IntegrationBase.h.

◆ m_queue

cl::CommandQueue EFTrackingFPGAIntegration::F600IntegrationAlg::m_queue
private

Definition at line 176 of file F600IntegrationAlg.h.

◆ m_runnerKernelName

Gaudi::Property<std::string> EFTrackingFPGAIntegration::F600IntegrationAlg::m_runnerKernelName
private
Initial value:
{
this, "RunnerKernelName", "", "Name of the duplicate remover runner kernel"}

Definition at line 124 of file F600IntegrationAlg.h.

124 {
125 this, "RunnerKernelName", "", "Name of the duplicate remover runner kernel"};

◆ m_spacepointKernelName

Gaudi::Property<std::string> EFTrackingFPGAIntegration::F600IntegrationAlg::m_spacepointKernelName
private
Initial value:
{
this, "SpacepointKernelName", "", "Name of the spacepoint kernel"}

Definition at line 110 of file F600IntegrationAlg.h.

110 {
111 this, "SpacepointKernelName", "", "Name of the spacepoint kernel"};

◆ m_stripEdmPrepKernelName

Gaudi::Property<std::string> EFTrackingFPGAIntegration::F600IntegrationAlg::m_stripEdmPrepKernelName
private
Initial value:
{
this, "StripEdmPrepKernelName", "", "Name of the strip EDM prep kernel"}

Definition at line 92 of file F600IntegrationAlg.h.

92 {
93 this, "StripEdmPrepKernelName", "", "Name of the strip EDM prep kernel"};

◆ m_stripL2gKernelName

Gaudi::Property<std::string> EFTrackingFPGAIntegration::F600IntegrationAlg::m_stripL2gKernelName
private
Initial value:
{
this, "StripL2gKernelName", "", "Name of the strip L2G transformation kernel"}

Definition at line 88 of file F600IntegrationAlg.h.

88 {
89 this, "StripL2gKernelName", "", "Name of the strip L2G transformation kernel"};

◆ m_sum_kernelTime

std::atomic<cl_ulong> EFTrackingFPGAIntegration::F600IntegrationAlg::m_sum_kernelTime {0}
mutableprivate

Sum for the average time of the kernel execution.

Definition at line 138 of file F600IntegrationAlg.h.

138{0};

◆ m_testVectorTool

ToolHandle<TestVectorTool> EFTrackingFPGAIntegration::F600IntegrationAlg::m_testVectorTool
private
Initial value:
{
this, "TestVectorTool", "TestVectorTool", "Tool for preparing test vectors"}

Tool for preparing test vectors.

Definition at line 66 of file F600IntegrationAlg.h.

66 {
67 this, "TestVectorTool", "TestVectorTool", "Tool for preparing test vectors"};

◆ m_unloaderKernelName

Gaudi::Property<std::string> EFTrackingFPGAIntegration::F600IntegrationAlg::m_unloaderKernelName
private
Initial value:
{
this, "UnloaderKernelName", "", "Name of the unloader kernel"}

Definition at line 116 of file F600IntegrationAlg.h.

116 {
117 this, "UnloaderKernelName", "", "Name of the unloader kernel"};

◆ m_varHandleArraysDeclared

bool AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::m_varHandleArraysDeclared
privateinherited

Definition at line 399 of file AthCommonDataStore.h.

◆ m_vhka

std::vector<SG::VarHandleKeyArray*> AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::m_vhka
privateinherited

Definition at line 398 of file AthCommonDataStore.h.

◆ m_xaodClusterMaker

ToolHandle<xAODClusterMaker> EFTrackingFPGAIntegration::F600IntegrationAlg::m_xaodClusterMaker
private
Initial value:
{
this,
"xAODClusterMaker",
"xAODClusterMaker",
"Tool for creating xAOD cluster containers"}

Tool for creating xAOD containers.

Definition at line 60 of file F600IntegrationAlg.h.

60 {
61 this,
62 "xAODClusterMaker",
63 "xAODClusterMaker",
64 "Tool for creating xAOD cluster containers"};

◆ m_xclbin

Gaudi::Property<std::string> EFTrackingFPGAIntegration::F600IntegrationAlg::m_xclbin
private
Initial value:
{
this, "xclbin", "", "xclbin path and name"}

Path and name of the xclbin file.

Definition at line 72 of file F600IntegrationAlg.h.

72 {
73 this, "xclbin", "", "xclbin path and name"};

◆ m_xrt_accelerator

xrt::device EFTrackingFPGAIntegration::F600IntegrationAlg::m_xrt_accelerator
private

Definition at line 142 of file F600IntegrationAlg.h.


The documentation for this class was generated from the following files: