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 46 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 108 of file F600IntegrationAlg.cxx.

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

247 {
248 ATH_MSG_INFO("Average Kernel execution time: " << m_sum_kernelTime /m_num_Events /1e6 << " ms");
249 return StatusCode::SUCCESS;
250 }
#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 11 of file F600IntegrationAlg.cxx.

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

◆ 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 25 of file F600IntegrationAlg.cxx.

26 {
27 ATH_MSG_INFO("Running on the FPGA accelerator");
28
29 ATH_CHECK(m_chronoSvc.retrieve());
30
31 {
32 Athena::Chrono chrono("Platform and device initlize", m_chronoSvc.get());
34
35 ATH_MSG_INFO("Initializing xrt::device");
36 m_xrt_accelerator = xrt::opencl::get_xrt_device(m_accelerator.get());
37 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>());
38 }
39
40 {
41 Athena::Chrono chrono("CL::loadProgram", m_chronoSvc.get());
42 ATH_MSG_INFO("LOADING PROGRAM: " + m_xclbin);
44 }
45
46 cl_int err = CL_SUCCESS;
47
48 xrt::uuid loaded_xclbin_uuid = m_xrt_accelerator.get_xclbin_uuid();
49 int cu = 1;
50
51 // Pixel clustering
52 m_pixelClusterL2GKernels.push_back(cl::Kernel(m_program, get_cu_name(m_pixelClusteringKernelName, cu).c_str(), &err));
53
54 // Slicing Engine
55 for (int i = 0; i < 1; ++i) {
56 m_pixelFirstStageSlicingIPs.push_back(xrt::ip(m_xrt_accelerator, loaded_xclbin_uuid, get_cu_name(m_pixelFirstStageSlicingIPName, cu + i)));
57 m_pixelFirstStageSlicingInputKernels.push_back(cl::Kernel(m_program, get_cu_name(m_pixelFirstStageInputKernelName, cu + i).c_str(), &err));
58 m_pixelFirstStageSlicingOutputKernels.push_back(cl::Kernel(m_program, get_cu_name(m_pixelFirstStageOutputKernelName, cu + i).c_str(), &err));
59 }
60
61 m_insideOutInputKernels.push_back(cl::Kernel(m_program, get_cu_name(m_memReadKernelName, cu).c_str(), &err));
62 m_insideOutOutputKernels.push_back(cl::Kernel(m_program, get_cu_name(m_memWriteKernelName, cu).c_str(), &err));
63
64 m_queue = cl::CommandQueue(m_context, m_accelerator, CL_QUEUE_PROFILING_ENABLE , &err);
65
66 if (err != CL_SUCCESS) {
67 return StatusCode::FAILURE;
68 }
69
70 ATH_CHECK(m_xaodClusterMaker.retrieve());
71 ATH_CHECK(m_testVectorTool.retrieve());
73 ATH_CHECK(m_FPGATrackKey.initialize());
75 return StatusCode::SUCCESS;
76 }
#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 17 of file F600IntegrationAlg.cxx.

17 {
18 ATH_MSG_DEBUG("STARTING " << dataDescriptor << " words:");
19 for (size_t i = 0; i < dataLen; i++) {
20 ATH_MSG_DEBUG(std::hex << std::setw(16) << std::setfill('0') << data[i]);
21 }
22 ATH_MSG_DEBUG("ENDING " << dataDescriptor << " words");
23 }
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 88 of file F600IntegrationAlg.cxx.

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

◆ readTVLength()

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

Definition at line 78 of file F600IntegrationAlg.cxx.

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

◆ 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 143 of file F600IntegrationAlg.h.

◆ ATLAS_THREAD_SAFE [2/18]

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

Definition at line 145 of file F600IntegrationAlg.h.

◆ ATLAS_THREAD_SAFE [3/18]

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

Definition at line 146 of file F600IntegrationAlg.h.

◆ ATLAS_THREAD_SAFE [4/18]

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

Definition at line 147 of file F600IntegrationAlg.h.

◆ ATLAS_THREAD_SAFE [5/18]

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

Definition at line 148 of file F600IntegrationAlg.h.

◆ ATLAS_THREAD_SAFE [6/18]

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

Definition at line 152 of file F600IntegrationAlg.h.

◆ ATLAS_THREAD_SAFE [7/18]

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

Definition at line 154 of file F600IntegrationAlg.h.

◆ ATLAS_THREAD_SAFE [8/18]

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

Definition at line 155 of file F600IntegrationAlg.h.

◆ ATLAS_THREAD_SAFE [9/18]

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

Definition at line 156 of file F600IntegrationAlg.h.

◆ ATLAS_THREAD_SAFE [10/18]

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

Definition at line 158 of file F600IntegrationAlg.h.

◆ ATLAS_THREAD_SAFE [11/18]

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

Definition at line 159 of file F600IntegrationAlg.h.

◆ ATLAS_THREAD_SAFE [12/18]

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

Definition at line 164 of file F600IntegrationAlg.h.

◆ ATLAS_THREAD_SAFE [13/18]

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

Definition at line 165 of file F600IntegrationAlg.h.

◆ ATLAS_THREAD_SAFE [14/18]

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

Definition at line 166 of file F600IntegrationAlg.h.

◆ ATLAS_THREAD_SAFE [15/18]

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

Definition at line 168 of file F600IntegrationAlg.h.

◆ ATLAS_THREAD_SAFE [16/18]

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

Definition at line 169 of file F600IntegrationAlg.h.

◆ ATLAS_THREAD_SAFE [17/18]

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

Definition at line 171 of file F600IntegrationAlg.h.

◆ ATLAS_THREAD_SAFE [18/18]

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

Definition at line 172 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 56 of file F600IntegrationAlg.h.

56 {
57 "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 68 of file F600IntegrationAlg.h.

68 {
69 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 74 of file F600IntegrationAlg.h.

74{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 131 of file F600IntegrationAlg.h.

131 {
132 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 136 of file F600IntegrationAlg.h.

136{0};

◆ m_loaderKernelName

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

Definition at line 113 of file F600IntegrationAlg.h.

113 {
114 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 103 of file F600IntegrationAlg.h.

103 {
104 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 105 of file F600IntegrationAlg.h.

105 {
106 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 119 of file F600IntegrationAlg.h.

119 {
120 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 138 of file F600IntegrationAlg.h.

138{0};

◆ m_outputConversionTool

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

Definition at line 77 of file F600IntegrationAlg.h.

77{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 81 of file F600IntegrationAlg.h.

81 {
82 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 127 of file F600IntegrationAlg.h.

127 {
128 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 89 of file F600IntegrationAlg.h.

89 {
90 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 97 of file F600IntegrationAlg.h.

97 {
98 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 99 of file F600IntegrationAlg.h.

99 {
100 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 95 of file F600IntegrationAlg.h.

95 {
96 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 85 of file F600IntegrationAlg.h.

85 {
86 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 129 of file F600IntegrationAlg.h.

129 {
130 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 83 of file F600IntegrationAlg.h.

83 {
84 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 175 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 123 of file F600IntegrationAlg.h.

123 {
124 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 109 of file F600IntegrationAlg.h.

109 {
110 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 91 of file F600IntegrationAlg.h.

91 {
92 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 87 of file F600IntegrationAlg.h.

87 {
88 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 137 of file F600IntegrationAlg.h.

137{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 65 of file F600IntegrationAlg.h.

65 {
66 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 115 of file F600IntegrationAlg.h.

115 {
116 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 59 of file F600IntegrationAlg.h.

59 {
60 this,
61 "xAODClusterMaker",
62 "xAODClusterMaker",
63 "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 71 of file F600IntegrationAlg.h.

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

◆ m_xrt_accelerator

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

Definition at line 141 of file F600IntegrationAlg.h.


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