ATLAS Offline Software
Public Member Functions | Protected Member Functions | Protected Attributes | Private Types | Private Member Functions | Private Attributes | List of all members
EFTrackingFPGAIntegration::F150KernelTesterAlg Class Reference

#include <F150KernelTesterAlg.h>

Inheritance diagram for EFTrackingFPGAIntegration::F150KernelTesterAlg:
Collaboration diagram for EFTrackingFPGAIntegration::F150KernelTesterAlg:

Public Member Functions

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

Protected Member Functions

void renounceArray (SG::VarHandleKeyArray &handlesArray)
 remove all handles from I/O resolution More...
 
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. More...
 

Protected Attributes

cl::Device m_accelerator
 Device object for the accelerator card. More...
 
cl::Context m_context
 Context object for the application. More...
 
cl::Program m_program
 Program object containing the kernel. More...
 
Gaudi::Property< std::string > m_deviceBDF {this, "bdfID", "", "BDF ID of the accelerator card"}
 BDF ID of the accelerator card. More...
 
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)
 
void dumpHexData (std::span< const 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> More...
 
Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyArrayType &)
 specialization for handling Gaudi::Property<SG::VarHandleKeyArray> More...
 
Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T, V, H > &hndl, const SG::VarHandleType &)
 specialization for handling Gaudi::Property<SG::VarHandleBase> More...
 
Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T, V, H > &t, const SG::NotHandleType &)
 specialization for handling everything that's not a Gaudi::Property<SG::VarHandleKey> or a <SG::VarHandleKeyArray> More...
 

Private Attributes

ServiceHandle< IChronoSvc > m_chronoSvc
 Service for timing the algorithm. More...
 
ToolHandle< xAODClusterMakerm_xaodClusterMaker
 Tool for creating xAOD containers. More...
 
ToolHandle< TestVectorToolm_testVectorTool
 Tool for preparing test vectors. More...
 
ToolHandle< FPGADataFormatToolm_FPGADataFormatTool
 Tool for formatting FPGA data. More...
 
Gaudi::Property< std::string > m_xclbin {this, "xclbin", "", "xclbin path and name"}
 Path and name of the xclbin file. More...
 
Gaudi::Property< bool > m_runSE {this, "RunSlicing", "", "Whether to run slicing engine or not"}
 Whether to run SE or not. More...
 
Gaudi::Property< bool > m_runIO {this, "RunInsideOut", "", "Whether to run inside out or not"}
 Whether to run inside out or not. More...
 
Gaudi::Property< bool > m_runIOOnSE {this, "RunInsideOutOnSlicingEngine", "", "Whether to run inside out on the output of the slicing engine"}
 Whether to run inside out on the output of slicing engine. More...
 
Gaudi::Property< bool > m_runFull150 {this, "RunFullF150", "", "Whether to run Full 150 chain"}
 Whether to run the Full F150 include F100 on hy. More...
 
SG::ReadHandleKey< FPGATrackSimHitCollectionm_FPGAHitKey {this, "FPGATrackSimHitKey","FPGAHits", "FPGATrackSim hits key"}
 
SG::ReadHandleKey< FPGATrackSimHitCollectionm_FPGASlicedHitKey {this, "FPGATrackSimHitKey_1st", "FPGAHits_1st_reg34", "FPGATrackSim Hits 1st stage key"}
 
SG::ReadHandleKey< FPGATrackSimTrackCollectionm_FPGATrackKey {this, "FPGATrackSimTrack1stKey","FPGATracks_1st_reg34","FPGATrackSim Tracks 1st stage key"}
 
SG::WriteHandleKey< std::vector< uint64_t > > m_FPGATrackOutput {this, "FPGAOutputTrackKey", "FPGATrackOutput", "Track output from FPGA format"}
 
ToolHandle< OutputConversionToolm_outputConversionTool {this, "OutputConversionTool", "OutputConversionTool", "tool for output conversion"}
 
Gaudi::Property< std::string > m_slicingEngineInputName {this, "SlicingEngineInputName", "", "Name of the slicing engine input kernel"}
 
Gaudi::Property< std::string > m_slicingEngineOutputName {this, "SlicingEngineOutputName", "", "Name of the slicing engine output kernel"}
 
Gaudi::Property< std::string > m_insideOutInputName {this, "InsideOutInputName", "", "Name of the inside out input kernel"}
 
Gaudi::Property< std::string > m_insideOutOutputName {this, "InsideOutOutputName", "", "Name of the inside out output kernel"}
 
Gaudi::Property< std::string > m_pixelEdmKernelName {this, "PixelEDMPrepKernelName", "", "Name of the FPGA kernel"}
 Name of the FPGA kernel. More...
 
Gaudi::Property< std::string > m_stripEdmKernelName {this, "StripEDMPrepKernelName", "", "Name of the FPGA kernel"}
 Name of the FPGA kernel. More...
 
Gaudi::Property< std::string > m_pixelClusterKernelName {this, "PixelClusterKernelName", "", "Name of the pixel clustering kernel"}
 Name of the pixel clustering kernel. More...
 
Gaudi::Property< std::string > m_stripClusterKernelName {this, "StripClusterKernelName", "", "Name of the strip clustering kernel"}
 Name of the strip clustering kernel. More...
 
Gaudi::Property< std::string > m_stripL2GKernelName {this, "StripL2GKernelName", "", "Name of the strip L2G kernel"}
 Name of the strip L2G kernelS. More...
 
std::atomic< cl_ulong > m_IO_kernelTime {0}
 Time for kernel execution. More...
 
std::atomic< cl_ulong > m_SE_kernelTime {0}
 Sum for the average time of the kernel execution. More...
 
std::atomic< ulonglong > m_numEvents {0}
 Number of events for the average time of the kernel execution. More...
 
xrt::device m_xrt_accelerator
 
cl::Event m_slicingEngineInputEndEvent ATLAS_THREAD_SAFE
 
cl::Event m_slicingEngineOutputEndEvent ATLAS_THREAD_SAFE
 
cl::Event m_insideOutEndEvent ATLAS_THREAD_SAFE
 
cl::Kernel m_slicingEngineInput ATLAS_THREAD_SAFE
 
cl::Kernel m_slicingEngineOutput ATLAS_THREAD_SAFE
 
cl::Kernel m_insideOutInput ATLAS_THREAD_SAFE
 
cl::Kernel m_insideOutOutput ATLAS_THREAD_SAFE
 
cl::Buffer m_slicingEngineInputBuffer ATLAS_THREAD_SAFE
 
cl::Buffer m_slicingEngineOutputBuffer ATLAS_THREAD_SAFE
 
cl::Buffer m_insideOutInputBuffer ATLAS_THREAD_SAFE
 
cl::Buffer m_insideOutOutputBuffer ATLAS_THREAD_SAFE
 
cl::Kernel m_pixelClusteringKernel ATLAS_THREAD_SAFE
 
cl::Kernel m_stripClusteringKernel ATLAS_THREAD_SAFE
 
cl::Kernel m_stripL2GKernel ATLAS_THREAD_SAFE
 
cl::Kernel m_pixelEdmPrepKernel ATLAS_THREAD_SAFE
 
cl::Kernel m_stripEdmPrepKernel ATLAS_THREAD_SAFE
 
cl::Buffer m_pixelClusterInputBuffer ATLAS_THREAD_SAFE
 
cl::Buffer m_stripClusterInputBuffer ATLAS_THREAD_SAFE
 
cl::Buffer m_pixelClusterOutputBuffer ATLAS_THREAD_SAFE
 
cl::Buffer m_stripClusterOutputBuffer ATLAS_THREAD_SAFE
 
cl::Buffer m_pixelClusterEDMOutputBuffer ATLAS_THREAD_SAFE
 
cl::Buffer m_stripClusterEDMOutputBuffer ATLAS_THREAD_SAFE
 
cl::Buffer m_stripL2GOutputBuffer ATLAS_THREAD_SAFE
 
cl::Buffer m_stripL2GEDMOutputBuffer ATLAS_THREAD_SAFE
 
cl::Buffer m_edmPixelOutputBuffer ATLAS_THREAD_SAFE
 
cl::Buffer m_edmStripOutputBuffer ATLAS_THREAD_SAFE
 
SG::ReadHandleKey< std::vector< uint64_t > > m_FPGAPixelRDO {this, "FPGAEncodedPixelKey", "FPGAEncodedPixelRDOs", "Pixel RDO converted to FPGA format"}
 
SG::ReadHandleKey< std::vector< uint64_t > > m_FPGAStripRDO {this, "FPGAEncodedStripKey", "FPGAEncodedStripRDOs", "Strip RDO converted to FPGA format"}
 
SG::WriteHandleKey< std::vector< uint64_t > > m_FPGAPixelOutput {this, "FPGAOutputPixelKey", "FPGAPixelOutput", "Pixel output from FPGA format"}
 
SG::WriteHandleKey< std::vector< uint64_t > > m_FPGAStripOutput {this, "FPGAOutputStripKey", "FPGAStripOutput", "Strip output from FPGA format"}
 
cl::CommandQueue m_queue
 
DataObjIDColl m_extendedExtraObjects
 Extra output dependency collection, extended by AthAlgorithmDHUpdate to add symlinks. More...
 
StoreGateSvc_t m_evtStore
 Pointer to StoreGate (event store by default) More...
 
StoreGateSvc_t m_detStore
 Pointer to StoreGate (detector store by default) More...
 
std::vector< SG::VarHandleKeyArray * > m_vhka
 
bool m_varHandleArraysDeclared
 

Detailed Description

Definition at line 40 of file F150KernelTesterAlg.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
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.

Override this to return 0 for reentrant algorithms.

Definition at line 75 of file AthCommonReentrantAlgorithm.cxx.

64 {
65  return 0;
66 }

◆ declareGaudiProperty() [1/4]

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

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

Definition at line 170 of file AthCommonDataStore.h.

172  {
173  return *AthCommonDataStore<PBASE>::declareProperty(hndl.name(),
174  hndl.value(),
175  hndl.documentation());
176 
177  }

◆ declareGaudiProperty() [2/4]

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  {
159  return *AthCommonDataStore<PBASE>::declareProperty(hndl.name(),
160  hndl.value(),
161  hndl.documentation());
162 
163  }

◆ declareGaudiProperty() [3/4]

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

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

Definition at line 184 of file AthCommonDataStore.h.

186  {
187  return *AthCommonDataStore<PBASE>::declareProperty(hndl.name(),
188  hndl.value(),
189  hndl.documentation());
190  }

◆ declareGaudiProperty() [4/4]

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

specialization for handling everything that's not a Gaudi::Property<SG::VarHandleKey> or a <SG::VarHandleKeyArray>

Definition at line 199 of file AthCommonDataStore.h.

200  {
201  return PBASE::declareProperty(t);
202  }

◆ declareProperty() [1/6]

Gaudi::Details::PropertyBase* AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::declareProperty ( const std::string &  name,
SG::VarHandleBase hndl,
const std::string &  doc,
const SG::VarHandleType  
)
inlineinherited

Declare a new Gaudi property.

Parameters
nameName of the property.
hndlObject holding the property value.
docDocumentation string for the property.

This is the version for types that derive from SG::VarHandleBase. The property value object is put on the input and output lists as appropriate; then we forward to the base class.

Definition at line 245 of file AthCommonDataStore.h.

249  {
250  this->declare(hndl.vhKey());
251  hndl.vhKey().setOwner(this);
252 
253  return PBASE::declareProperty(name,hndl,doc);
254  }

◆ declareProperty() [2/6]

Gaudi::Details::PropertyBase* AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::declareProperty ( const std::string &  name,
SG::VarHandleKey hndl,
const std::string &  doc,
const SG::VarHandleKeyType  
)
inlineinherited

Declare a new Gaudi property.

Parameters
nameName of the property.
hndlObject holding the property value.
docDocumentation string for the property.

This is the version for types that derive from SG::VarHandleKey. The property value object is put on the input and output lists as appropriate; then we forward to the base class.

Definition at line 221 of file AthCommonDataStore.h.

225  {
226  this->declare(hndl);
227  hndl.setOwner(this);
228 
229  return PBASE::declareProperty(name,hndl,doc);
230  }

◆ declareProperty() [3/6]

Gaudi::Details::PropertyBase* AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::declareProperty ( const std::string &  name,
SG::VarHandleKeyArray hndArr,
const std::string &  doc,
const SG::VarHandleKeyArrayType  
)
inlineinherited

Definition at line 259 of file AthCommonDataStore.h.

263  {
264 
265  // std::ostringstream ost;
266  // ost << Algorithm::name() << " VHKA declareProp: " << name
267  // << " size: " << hndArr.keys().size()
268  // << " mode: " << hndArr.mode()
269  // << " vhka size: " << m_vhka.size()
270  // << "\n";
271  // debug() << ost.str() << endmsg;
272 
273  hndArr.setOwner(this);
274  m_vhka.push_back(&hndArr);
275 
276  Gaudi::Details::PropertyBase* p = PBASE::declareProperty(name, hndArr, doc);
277  if (p != 0) {
278  p->declareUpdateHandler(&AthCommonDataStore<PBASE>::updateVHKA, this);
279  } else {
280  ATH_MSG_ERROR("unable to call declareProperty on VarHandleKeyArray "
281  << name);
282  }
283 
284  return p;
285 
286  }

◆ declareProperty() [4/6]

Gaudi::Details::PropertyBase* AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::declareProperty ( const std::string &  name,
T &  property,
const std::string &  doc,
const SG::NotHandleType  
)
inlineinherited

Declare a new Gaudi property.

Parameters
nameName of the property.
propertyObject holding the property value.
docDocumentation string for the property.

This is the generic version, for types that do not derive from SG::VarHandleKey. It just forwards to the base class version of declareProperty.

Definition at line 333 of file AthCommonDataStore.h.

337  {
338  return PBASE::declareProperty(name, property, doc);
339  }

◆ declareProperty() [5/6]

Gaudi::Details::PropertyBase* AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::declareProperty ( const std::string &  name,
T &  property,
const std::string &  doc = "none" 
)
inlineinherited

Declare a new Gaudi property.

Parameters
nameName of the property.
propertyObject holding the property value.
docDocumentation string for the property.

This dispatches to either the generic declareProperty or the one for VarHandle/Key/KeyArray.

Definition at line 352 of file AthCommonDataStore.h.

355  {
356  typedef typename SG::HandleClassifier<T>::type htype;
357  return declareProperty (name, property, doc, htype());
358  }

◆ declareProperty() [6/6]

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  }

◆ 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.

95 { return m_detStore; }

◆ dumpHexData()

void EFTrackingFPGAIntegration::F150KernelTesterAlg::dumpHexData ( std::span< const uint64_t >  data,
const std::string &  dataDescriptor 
) const
private

Definition at line 21 of file F150KernelTesterAlg.cxx.

21  {
22  ATH_MSG_DEBUG("STARTING " << dataDescriptor << " words:");
23  std::ofstream outputFile(dataDescriptor);
24 
25  for (uint64_t d : data) {
26  outputFile << std::hex << std::setw(16) << std::setfill('0') << d << '\n';
27  }
28 
29  // Write different data types
30  outputFile.close();
31  }

◆ evtStore() [1/2]

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.

85 { return m_evtStore; }

◆ evtStore() [2/2]

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

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

Definition at line 90 of file AthCommonDataStore.h.

90 { return m_evtStore; }

◆ execute()

StatusCode EFTrackingFPGAIntegration::F150KernelTesterAlg::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 F150KernelTesterAlg.cxx.

109  {
110  ATH_MSG_DEBUG("Executing F150KernelTesterAlg");
111 
112 
114  // if not running the full IO, use the simulation to write the output to storegate
115  if(!m_runIOOnSE)
116  {
118  auto outputVec = std::make_unique<std::vector<uint64_t>>();
119 
120  ATH_CHECK(m_FPGADataFormatTool->convertFPGATracksToFPGADataFormat(outTrackCollection.cptr(), *outputVec, ctx));
121  // Now record the filled vector
122  ATH_CHECK(FPGATrackOutput.record(std::move(outputVec)));
123  }
124 
125  // Prepare the inputs for testing
126  ATH_MSG_DEBUG("Accessing SE In data.");
127  std::vector<uint64_t> pixelDataIN;
128  std::vector<uint64_t> stripDataIN;
130  ATH_CHECK(m_FPGADataFormatTool->convertFPGAHitsToFPGADataFormat(hitCollectionHandle.cptr(), true, false, pixelDataIN, ctx));
131  ATH_CHECK(m_FPGADataFormatTool->convertFPGAHitsToFPGADataFormat(hitCollectionHandle.cptr(), false, true, stripDataIN, ctx));
132  dumpHexData(pixelDataIN, "FPGATrackSim_slicingIn_pixel.txt");
133  dumpHexData(stripDataIN, "FPGATrackSim_slicingIn_strip.txt");
134 
135  ATH_MSG_DEBUG("Accessing SE Out data.");
136  std::vector<uint64_t> dataPixelOut;
137  std::vector<uint64_t> dataStripOut;
139  ATH_CHECK(m_FPGADataFormatTool->convertFPGASliceToFPGADataFormat(outhitCollectionHandle.cptr(), true, false, dataPixelOut, ctx));
140  ATH_CHECK(m_FPGADataFormatTool->convertFPGASliceToFPGADataFormat(outhitCollectionHandle.cptr(), false, true, dataStripOut, ctx));
141  dumpHexData(dataPixelOut, "FPGATrackSim_slicingOut_pixel.txt");
142  dumpHexData(dataStripOut, "FPGATrackSim_slicingOut_strip.txt");
143 
144  ATH_MSG_DEBUG("Accessing SE Out data.");
145  std::vector<uint64_t> dataInsideOut;
146  ATH_CHECK(m_FPGADataFormatTool->convertFPGATracksToFPGADataFormat(outTrackCollection.cptr(), dataInsideOut, ctx));
147  dumpHexData(dataInsideOut, "FPGATrackSim_insideOut.txt");
148 
149 
150  cl_int err = CL_SUCCESS;
151 
152  // increment the event if there is data in this event
153  if(pixelDataIN.size() > 6) m_numEvents++;
154 
155  // initialize buffers
156  m_pixelClusterInputBuffer = cl::Buffer(m_context, CL_MEM_READ_ONLY, EFTrackingTransient::PIXEL_CONTAINER_INPUT_BUF_SIZE * sizeof(uint64_t), NULL, &err);
157  m_stripClusterInputBuffer = cl::Buffer(m_context, CL_MEM_READ_ONLY, EFTrackingTransient::STRIP_CONTAINER_INPUT_BUF_SIZE * sizeof(uint64_t), NULL, &err);
158 
159  // Clustering
160  m_pixelClusterOutputBuffer = cl::Buffer(m_context, CL_MEM_READ_WRITE,EFTrackingTransient::PIXEL_BLOCK_BUF_SIZE * sizeof(uint64_t), NULL, &err);
161  m_stripClusterOutputBuffer = cl::Buffer(m_context, CL_MEM_READ_WRITE, EFTrackingTransient::STRIP_BLOCK_BUF_SIZE * sizeof(uint64_t), NULL, &err);
162  m_pixelClusterEDMOutputBuffer = cl::Buffer(m_context, CL_MEM_READ_WRITE,EFTrackingTransient::PIXEL_BLOCK_BUF_SIZE * sizeof(uint64_t), NULL, &err);
163  m_stripClusterEDMOutputBuffer = cl::Buffer(m_context, CL_MEM_READ_WRITE, EFTrackingTransient::STRIP_BLOCK_BUF_SIZE * sizeof(uint64_t), NULL, &err);
164 
165  // L2G
166  m_stripL2GOutputBuffer = cl::Buffer(m_context, CL_MEM_READ_WRITE, EFTrackingTransient::STRIP_BLOCK_BUF_SIZE * sizeof(uint64_t), NULL, &err);
167  m_stripL2GEDMOutputBuffer = cl::Buffer(m_context, CL_MEM_READ_WRITE, EFTrackingTransient::STRIP_BLOCK_BUF_SIZE * sizeof(uint64_t), NULL, &err);
168 
169  // EDMPrep
170  m_edmPixelOutputBuffer = cl::Buffer(m_context, CL_MEM_READ_WRITE, EFTrackingTransient::PIXEL_CONTAINER_BUF_SIZE * sizeof(uint64_t), NULL, &err);
171  m_edmStripOutputBuffer = cl::Buffer(m_context, CL_MEM_READ_WRITE, EFTrackingTransient::STRIP_CONTAINER_BUF_SIZE * sizeof(uint64_t), NULL, &err);
172 
173  m_slicingEngineInputBuffer = cl::Buffer(m_context, CL_MEM_READ_ONLY, pixelDataIN.size() * sizeof(uint64_t), nullptr, &err);
174  m_slicingEngineOutputBuffer = cl::Buffer(m_context, CL_MEM_READ_WRITE, EFTrackingTransient::TRACK_CONTAINER_BUF_SIZE * sizeof(uint64_t), nullptr, &err);
175  m_insideOutInputBuffer = cl::Buffer(m_context, CL_MEM_READ_WRITE, dataPixelOut.size() * sizeof(uint64_t), nullptr, &err);
176  m_insideOutOutputBuffer = cl::Buffer(m_context, CL_MEM_READ_WRITE, EFTrackingTransient::TRACK_CONTAINER_BUF_SIZE * sizeof(uint64_t), nullptr, &err);
177 
178 
179  if (m_runSE) {
180  // Events (write → kSEInput → kSEOutput → read)
181  cl::Event evtSEWriteIn;
182  cl::Event evtSEKInputDone;
183  cl::Event evtSEKOutputDone;
184  cl::Event evtSEReadOut;
185 
186  m_slicingEngineInput.setArg(0, m_slicingEngineInputBuffer);
187  m_slicingEngineInput.setArg(2, static_cast<unsigned long long>(pixelDataIN.size()));
188 
189  m_slicingEngineOutput.setArg(1, m_slicingEngineOutputBuffer);
190 
191  ATH_MSG_DEBUG("Transferring SE data");
192  m_queue.enqueueWriteBuffer(m_slicingEngineInputBuffer, CL_TRUE, 0, pixelDataIN.size() * sizeof(uint64_t), pixelDataIN.data(), nullptr, &evtSEWriteIn);
193 
194  // Execute
195  ATH_MSG_DEBUG("Executing SE Kernel");
196  std::vector<cl::Event> waitAfterSEWrite{evtSEWriteIn};
197  m_queue.enqueueTask(m_slicingEngineInput, &waitAfterSEWrite, &evtSEKInputDone);
198  m_queue.enqueueTask(m_slicingEngineOutput, NULL, &evtSEKOutputDone);
199 
200  // Read
201  ATH_MSG_DEBUG("Reading output data from kernel");
202  std::vector<uint64_t> out_data(EFTrackingTransient::TRACK_CONTAINER_BUF_SIZE * sizeof(uint64_t), 0);
203  std::vector<cl::Event> waitForSERead{evtSEKOutputDone};
204  m_queue.enqueueReadBuffer(m_slicingEngineOutputBuffer, /*blocking*/ CL_TRUE, 0, EFTrackingTransient::TRACK_CONTAINER_BUF_SIZE * sizeof(uint64_t) ,out_data.data(),&waitForSERead, &evtSEReadOut);
205 
206  // Optional explicit sync (blocking read already waits)
207  cl::Event::waitForEvents({evtSEReadOut});
208 
209  dumpHexData(out_data, "HW_slicingOut_pixel.txt");
210 
211  m_SE_kernelTime += evtSEKOutputDone.getProfilingInfo<CL_PROFILING_COMMAND_END>() - evtSEKInputDone.getProfilingInfo<CL_PROFILING_COMMAND_START>();
212 
213  }
214  if (m_runIO)
215  {
216  cl::Event evtWriteIn;
217  cl::Event evtKInputDone;
218  cl::Event evtKOutputDone;
219  cl::Event evtReadOut;
220 
221  ATH_MSG_DEBUG("Setting IO args");
222  m_insideOutInput.setArg(0, m_insideOutInputBuffer);
223  m_insideOutOutput.setArg(0, m_insideOutOutputBuffer);
224 
225  ATH_MSG_DEBUG("Loading input data to IO input kernel");
226  m_queue.enqueueWriteBuffer(m_insideOutInputBuffer, CL_TRUE, 0, dataPixelOut.size() * sizeof(uint64_t), dataPixelOut.data(), nullptr, &evtWriteIn);
227 
228  // Execute
229  ATH_MSG_DEBUG("Executing IO Kernel");
230  std::vector<cl::Event> waitAfterWrite{evtWriteIn};
231  m_queue.enqueueTask(m_insideOutInput, &waitAfterWrite, &evtKInputDone);
232  m_queue.enqueueTask(m_insideOutOutput, NULL, &evtKOutputDone);
233 
234  // Read
235  ATH_MSG_ALWAYS("Reading output data from kernel");
236  std::vector<uint64_t> out_data(EFTrackingTransient::TRACK_CONTAINER_BUF_SIZE, 0);
237  std::vector<cl::Event> waitForRead{evtKOutputDone};
238  m_queue.enqueueReadBuffer( m_insideOutOutputBuffer, CL_TRUE, 0, EFTrackingTransient::TRACK_CONTAINER_BUF_SIZE * sizeof(uint64_t), out_data.data(), &waitForRead, &evtReadOut);
239 
240  // Ensure completion (optional since read is blocking, but explicit is fine)
241  cl::Event::waitForEvents({evtReadOut});
242  dumpHexData(out_data, "HW_insideOut.txt");
243  m_IO_kernelTime += evtKOutputDone.getProfilingInfo<CL_PROFILING_COMMAND_END>() - evtKInputDone.getProfilingInfo<CL_PROFILING_COMMAND_START>();
244  }
245 
246  if (m_runIOOnSE)
247  {
248  cl::Event evtSEWriteIn;
249  cl::Event evtSEKInputDone;
250  cl::Event evtSEKOutputDone;
251 
252  cl::Event evtKInputDone;
253  cl::Event evtKOutputDone;
254  cl::Event evtReadOut;
255 
256  ATH_MSG_DEBUG("Allocating SE buffers");
257  const size_t pixel_size_bytesIN = pixelDataIN.size() * sizeof(uint64_t);
258 
259  m_slicingEngineInput.setArg(0, m_slicingEngineInputBuffer);
260  m_slicingEngineInput.setArg(2, static_cast<unsigned long long>(pixelDataIN.size()));
261 
262  m_slicingEngineOutput.setArg(1, m_slicingEngineOutputBuffer);
263 
264  ATH_MSG_DEBUG("Setting IO args");
265  m_insideOutInput.setArg(0, m_slicingEngineOutputBuffer);
266  m_insideOutOutput.setArg(0, m_insideOutOutputBuffer);
267 
268 
269  ATH_MSG_DEBUG("Transferring SE data");
270  m_queue.enqueueWriteBuffer(m_slicingEngineInputBuffer, CL_TRUE, 0, pixel_size_bytesIN, pixelDataIN.data(), nullptr, &evtSEWriteIn);
271 
272  // Execute
273  ATH_MSG_DEBUG("Executing SE Kernel");
274  std::vector<cl::Event> waitAfterSEWrite{evtSEWriteIn};
275  m_queue.enqueueTask(m_slicingEngineInput, &waitAfterSEWrite, &evtSEKInputDone);
276  m_queue.enqueueTask(m_slicingEngineOutput, NULL, &evtSEKOutputDone);
277 
278  // Execute
279  ATH_MSG_DEBUG("Executing IO Kernel");
280  std::vector<cl::Event> waitAfterSE{evtSEKOutputDone};
281  m_queue.enqueueTask(m_insideOutInput, &waitAfterSE, &evtKInputDone);
282  m_queue.enqueueTask(m_insideOutOutput, NULL, &evtKOutputDone);
283 
284  // Read
285  ATH_MSG_ALWAYS("Reading output data from kernel");
286  std::vector<cl::Event> waitForRead{evtKOutputDone};
287 
288  // output handles
290  ATH_CHECK(FPGATrackOutput.record(std::make_unique<std::vector<uint64_t> >(EFTrackingTransient::TRACK_CONTAINER_BUF_SIZE, 0)));
291 
292  m_queue.enqueueReadBuffer( m_insideOutOutputBuffer, CL_FALSE, 0, sizeof(uint64_t) * (*FPGATrackOutput).size(), (*FPGATrackOutput).data(), &waitForRead, &evtReadOut);
293 
294  // Ensure completion (optional since read is blocking, but explicit is fine)
295  cl::Event::waitForEvents({evtReadOut});
296 
297  dumpHexData((*FPGATrackOutput), "HW_insideOut.txt");
298 
299  m_SE_kernelTime += evtSEKOutputDone.getProfilingInfo<CL_PROFILING_COMMAND_END>() - evtSEKInputDone.getProfilingInfo<CL_PROFILING_COMMAND_START>();
300  m_IO_kernelTime += evtKOutputDone.getProfilingInfo<CL_PROFILING_COMMAND_END>() - evtKInputDone.getProfilingInfo<CL_PROFILING_COMMAND_START>();
301  }
302 
303  if(m_runFull150)
304  {
305  // Get the input data
306  auto pixelInput = SG::get(m_FPGAPixelRDO, ctx);
307  auto stripInput = SG::get(m_FPGAStripRDO, ctx);
308 
309  // Set kernel arguments
310  m_pixelClusteringKernel.setArg(0, m_pixelClusterInputBuffer);
311  m_pixelClusteringKernel.setArg(1, m_pixelClusterEDMOutputBuffer);
312 
313  m_stripClusteringKernel.setArg(0, m_stripClusterInputBuffer);
314  m_stripClusteringKernel.setArg(1, m_stripClusterOutputBuffer);
315  m_stripClusteringKernel.setArg(2, m_stripClusterEDMOutputBuffer);
316  m_stripClusteringKernel.setArg(3, static_cast<unsigned int>((*stripInput).size()));
317 
318  m_stripL2GKernel.setArg(0, m_stripClusterOutputBuffer);
319  m_stripL2GKernel.setArg(1, m_stripClusterEDMOutputBuffer);
320  m_stripL2GKernel.setArg(2, m_stripL2GOutputBuffer);
321  m_stripL2GKernel.setArg(3, m_stripL2GEDMOutputBuffer);
322 
323  m_pixelEdmPrepKernel.setArg(0, m_pixelClusterEDMOutputBuffer);
324  m_pixelEdmPrepKernel.setArg(1, m_edmPixelOutputBuffer);
325  m_stripEdmPrepKernel.setArg(0, m_stripL2GEDMOutputBuffer);
326  m_stripEdmPrepKernel.setArg(1, m_edmStripOutputBuffer);
327 
328  m_slicingEngineInput.setArg(0, m_pixelClusterInputBuffer); // TO change
329  m_slicingEngineInput.setArg(3, static_cast<unsigned int>((*pixelInput).size()));
330 
331  m_slicingEngineOutput.setArg(1, m_slicingEngineOutputBuffer);
332 
333  m_insideOutInput.setArg(0, m_slicingEngineOutputBuffer);
334  m_insideOutOutput.setArg(0, m_insideOutOutputBuffer);
335 
336  // Start the transfers
337  cl::Event evt_write_pixel_input;
338  cl::Event evt_write_strip_input;
339 
340  m_queue.enqueueWriteBuffer(m_pixelClusterInputBuffer, CL_FALSE, 0, sizeof(uint64_t) * (*pixelInput).size(), (*pixelInput).data(), NULL, &evt_write_pixel_input);
341  m_queue.enqueueWriteBuffer(m_stripClusterInputBuffer, CL_FALSE, 0, sizeof(uint64_t) * (*stripInput).size(), (*stripInput).data(), NULL, &evt_write_strip_input);
342  std::vector<cl::Event> evt_vec_pixel_input{evt_write_pixel_input};
343  std::vector<cl::Event> evt_vec_strip_input{evt_write_strip_input};
344 
345  cl::Event evt_pixel_clustering;
346  cl::Event evt_strip_clustering;
347  cl::Event evt_strip_l2g;
348  cl::Event evt_edm_prep;
349  cl::Event evt_pixel_edm_prep;
350  cl::Event evt_strip_edm_prep;
351  cl::Event evt_Slicing_InputDone;
352  cl::Event evt_Slicing_OutputDone;
353  cl::Event evt_Insideout_InputDone;
354  cl::Event evt_Insideout_OutputDone;
355  cl::Event evt_pixel_cluster_output;
356  cl::Event evt_strip_cluster_output;
357  cl::Event evt_track_output;
358 
359  m_queue.enqueueTask(m_pixelClusteringKernel, &evt_vec_pixel_input, &evt_pixel_clustering);
360  m_queue.enqueueTask(m_stripClusteringKernel, &evt_vec_strip_input, &evt_strip_clustering);
361 
362  std::vector<cl::Event> evt_vec_strip_clustering{evt_strip_clustering};
363  m_queue.enqueueTask(m_stripL2GKernel, &evt_vec_strip_clustering, &evt_strip_l2g);
364 
365  std::vector<cl::Event> evt_vec_pixelEDM {evt_pixel_clustering};
366  std::vector<cl::Event> evt_vec_strip_l2g{evt_strip_l2g};
367  m_queue.enqueueTask(m_pixelEdmPrepKernel, &evt_vec_pixelEDM, &evt_pixel_edm_prep);
368  m_queue.enqueueTask(m_stripEdmPrepKernel, &evt_vec_strip_l2g, &evt_strip_edm_prep);
369 
370  // Execute
371  std::vector<cl::Event> evt_vec_pixelClustering{evt_pixel_clustering};
372  m_queue.enqueueTask(m_slicingEngineInput, &evt_vec_pixelClustering, &evt_Slicing_InputDone);
373  m_queue.enqueueTask(m_slicingEngineOutput, NULL, &evt_Slicing_OutputDone);
374 
375  // Execute
376  std::vector<cl::Event> evt_vec_slicing{evt_Slicing_OutputDone};
377  m_queue.enqueueTask(m_insideOutInput, &evt_vec_slicing, &evt_Insideout_InputDone);
378  m_queue.enqueueTask(m_insideOutOutput, NULL, &evt_Insideout_OutputDone);
379 
380  // output handles
382  ATH_CHECK(FPGAPixelOutput.record(std::make_unique<std::vector<uint64_t> >(EFTrackingTransient::PIXEL_CONTAINER_BUF_SIZE, 0)));
383 
385  ATH_CHECK(FPGAStripOutput.record(std::make_unique<std::vector<uint64_t> >(EFTrackingTransient::STRIP_CONTAINER_BUF_SIZE, 0)));
386 
388  ATH_CHECK(FPGATrackOutput.record(std::make_unique<std::vector<uint64_t> >(EFTrackingTransient::TRACK_CONTAINER_BUF_SIZE, 0)));
389 
390  std::vector<cl::Event> evt_vec_pixel_edm_prep{evt_pixel_edm_prep};
391  std::vector<cl::Event> evt_vec_strip_edm_prep{evt_strip_edm_prep};
392  std::vector<cl::Event> waitForInsideout{evt_Insideout_OutputDone};
393  m_queue.enqueueReadBuffer(m_edmPixelOutputBuffer, CL_FALSE, 0, sizeof(uint64_t) * (*FPGAPixelOutput).size(), (*FPGAPixelOutput).data(), &evt_vec_pixel_edm_prep, &evt_pixel_cluster_output);
394  m_queue.enqueueReadBuffer(m_edmStripOutputBuffer, CL_FALSE, 0, sizeof(uint64_t) * (*FPGAStripOutput).size(), (*FPGAStripOutput).data(), &evt_vec_strip_edm_prep, &evt_strip_cluster_output);
395  m_queue.enqueueReadBuffer( m_insideOutOutputBuffer, CL_FALSE, 0, sizeof(uint64_t) * (*FPGATrackOutput).size(), (*FPGATrackOutput).data(), &waitForInsideout, &evt_track_output);
396 
397  std::vector<cl::Event> wait_for_reads = { evt_pixel_cluster_output, evt_strip_cluster_output, evt_track_output };
398  cl::Event::waitForEvents(wait_for_reads);
399 
400 
401  }
402  return StatusCode::SUCCESS;
403  }

◆ 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
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  }
96  return BaseAlg::extraOutputDeps();
97 }

◆ 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  }

◆ finalize()

StatusCode EFTrackingFPGAIntegration::F150KernelTesterAlg::finalize ( )
finaloverridevirtual

Definition at line 405 of file F150KernelTesterAlg.cxx.

406  {
407  ATH_MSG_INFO("Finalizing F150KernelTesterAlg");
408  ATH_MSG_INFO("Number of events: " << m_numEvents);
409 
410  if(m_numEvents > 0){
411  ATH_MSG_INFO("Inside out ave time: " << m_IO_kernelTime / m_numEvents / 1e6 << " ms");
412  ATH_MSG_INFO("Slicing Engine ave time: " << m_SE_kernelTime / m_numEvents / 1e6 << " ms");
413  }
414 
415  return StatusCode::SUCCESS;
416  }

◆ get_cu_name()

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

Definition at line 15 of file F150KernelTesterAlg.cxx.

15  {
16  std::string full_cu_name = kernel_name + ":{" + kernel_name + "_" + std::to_string(cu) + "}";
17  ATH_MSG_DEBUG("LOADING " + full_cu_name);
18  return full_cu_name;
19  }

◆ initialize()

StatusCode EFTrackingFPGAIntegration::F150KernelTesterAlg::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 33 of file F150KernelTesterAlg.cxx.

34  {
35  ATH_MSG_INFO("Running on the FPGA accelerator");
36  ATH_MSG_INFO("Testing Slicing Engine: " + m_runSE);
37  ATH_MSG_INFO("Testing Inside Out: " + m_runIO);
38  ATH_MSG_INFO("Testing Inside Out on Slicing Engine Output: " + m_runIOOnSE);
39 
40  ATH_CHECK(m_chronoSvc.retrieve());
41 
42  {
43  Athena::Chrono chrono("Platform and device initialize", m_chronoSvc.get());
45  }
46 
47  {
48  Athena::Chrono chrono("CL::loadProgram", m_chronoSvc.get());
49  ATH_MSG_INFO("Loading Program: " + m_xclbin);
51  }
52 
53  cl_int err = CL_SUCCESS;
54 
55  int cu = 1;
56 
57 
58  // Pixel clustering
59  m_pixelClusteringKernel = cl::Kernel(m_program, get_cu_name(m_pixelClusterKernelName, cu).c_str(), &err);
60 
61  // Strip clustering
62  m_stripClusteringKernel = cl::Kernel(m_program, get_cu_name(m_stripClusterKernelName, cu).c_str(), &err);
63 
64  // Strip L2G
65  m_stripL2GKernel = cl::Kernel(m_program, get_cu_name(m_stripL2GKernelName, cu).c_str(), &err);
66 
67  // EDM prep
68  m_pixelEdmPrepKernel = cl::Kernel(m_program, get_cu_name(m_pixelEdmKernelName, cu).c_str(), &err);
69  m_stripEdmPrepKernel = cl::Kernel(m_program, get_cu_name(m_stripEdmKernelName, cu).c_str(), &err);
70 
71  // Slicing
72  m_slicingEngineInput = cl::Kernel(m_program, get_cu_name(m_slicingEngineInputName, cu).c_str(), &err);
73  m_slicingEngineOutput = cl::Kernel(m_program, get_cu_name(m_slicingEngineOutputName, cu).c_str(), &err);
74 
75  // inside out
76  m_insideOutInput = cl::Kernel(m_program, get_cu_name(m_insideOutInputName, cu).c_str(), &err);
77  m_insideOutOutput = cl::Kernel(m_program, get_cu_name(m_insideOutOutputName, cu).c_str(), &err);
78 
79 
80  m_queue = cl::CommandQueue(m_context, m_accelerator, CL_QUEUE_PROFILING_ENABLE | CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE, &err);
81 
82  if (err != CL_SUCCESS) {
83  return StatusCode::FAILURE;
84  }
85 
86  ATH_CHECK(m_xaodClusterMaker.retrieve());
87  ATH_CHECK(m_testVectorTool.retrieve());
88  ATH_CHECK(m_FPGADataFormatTool.retrieve());
90 
91  // Initialize track sim keys
95 
97 
98  // Only needed if we are running the full F150
103 
104 
105  return StatusCode::SUCCESS;
106  }

◆ 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()

bool AthCommonReentrantAlgorithm< Gaudi::Algorithm >::isClonable
overridevirtualinherited

Specify if the algorithm is clonable.

Reentrant algorithms are clonable.

Definition at line 68 of file AthCommonReentrantAlgorithm.cxx.

52 {
53  // Reentrant algorithms are clonable.
54  return true;
55 }

◆ 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 }

◆ msg() [1/2]

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

Definition at line 24 of file AthCommonMsg.h.

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

◆ msg() [2/2]

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

Definition at line 27 of file AthCommonMsg.h.

27  {
28  return this->msgStream(lvl);
29  }

◆ 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.

◆ 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 }

◆ 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();
383  PBASE::renounce (h);
384  }

◆ 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  {
365  handlesArray.renounce();
366  }

◆ setFilterPassed()

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

Definition at line 100 of file AthCommonReentrantAlgorithm.h.

100  {
101  execState( ctx ).setFilterPassed( state );
102  }

◆ 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 InputMakerBase, and HypoBase.

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()) {
123  sc = StatusCode::FAILURE;
124  ATH_MSG_ERROR("unable to register WriteCondHandle " << h->fullKey()
125  << " with CondSvc");
126  }
127  }
128  }
129  return sc;
130 }

◆ 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) {
312  std::vector<SG::VarHandleKey*> keys = a->keys();
313  for (auto k : keys) {
314  k->setOwner(this);
315  }
316  }
317  }

Member Data Documentation

◆ ATLAS_THREAD_SAFE [1/26]

cl::Event m_slicingEngineInputEndEvent EFTrackingFPGAIntegration::F150KernelTesterAlg::ATLAS_THREAD_SAFE
private

Definition at line 101 of file F150KernelTesterAlg.h.

◆ ATLAS_THREAD_SAFE [2/26]

cl::Event m_slicingEngineOutputEndEvent EFTrackingFPGAIntegration::F150KernelTesterAlg::ATLAS_THREAD_SAFE
private

Definition at line 102 of file F150KernelTesterAlg.h.

◆ ATLAS_THREAD_SAFE [3/26]

cl::Event m_insideOutEndEvent EFTrackingFPGAIntegration::F150KernelTesterAlg::ATLAS_THREAD_SAFE
private

Definition at line 103 of file F150KernelTesterAlg.h.

◆ ATLAS_THREAD_SAFE [4/26]

cl::Kernel m_slicingEngineInput EFTrackingFPGAIntegration::F150KernelTesterAlg::ATLAS_THREAD_SAFE
mutableprivate

Definition at line 107 of file F150KernelTesterAlg.h.

◆ ATLAS_THREAD_SAFE [5/26]

cl::Kernel m_slicingEngineOutput EFTrackingFPGAIntegration::F150KernelTesterAlg::ATLAS_THREAD_SAFE
mutableprivate

Definition at line 108 of file F150KernelTesterAlg.h.

◆ ATLAS_THREAD_SAFE [6/26]

cl::Kernel m_insideOutInput EFTrackingFPGAIntegration::F150KernelTesterAlg::ATLAS_THREAD_SAFE
mutableprivate

Definition at line 109 of file F150KernelTesterAlg.h.

◆ ATLAS_THREAD_SAFE [7/26]

cl::Kernel m_insideOutOutput EFTrackingFPGAIntegration::F150KernelTesterAlg::ATLAS_THREAD_SAFE
mutableprivate

Definition at line 110 of file F150KernelTesterAlg.h.

◆ ATLAS_THREAD_SAFE [8/26]

cl::Buffer m_slicingEngineInputBuffer EFTrackingFPGAIntegration::F150KernelTesterAlg::ATLAS_THREAD_SAFE
mutableprivate

Definition at line 114 of file F150KernelTesterAlg.h.

◆ ATLAS_THREAD_SAFE [9/26]

cl::Buffer m_slicingEngineOutputBuffer EFTrackingFPGAIntegration::F150KernelTesterAlg::ATLAS_THREAD_SAFE
mutableprivate

Definition at line 115 of file F150KernelTesterAlg.h.

◆ ATLAS_THREAD_SAFE [10/26]

cl::Buffer m_insideOutInputBuffer EFTrackingFPGAIntegration::F150KernelTesterAlg::ATLAS_THREAD_SAFE
mutableprivate

Definition at line 116 of file F150KernelTesterAlg.h.

◆ ATLAS_THREAD_SAFE [11/26]

cl::Buffer m_insideOutOutputBuffer EFTrackingFPGAIntegration::F150KernelTesterAlg::ATLAS_THREAD_SAFE
mutableprivate

Definition at line 117 of file F150KernelTesterAlg.h.

◆ ATLAS_THREAD_SAFE [12/26]

cl::Kernel m_pixelClusteringKernel EFTrackingFPGAIntegration::F150KernelTesterAlg::ATLAS_THREAD_SAFE
mutableprivate

Definition at line 121 of file F150KernelTesterAlg.h.

◆ ATLAS_THREAD_SAFE [13/26]

cl::Kernel m_stripClusteringKernel EFTrackingFPGAIntegration::F150KernelTesterAlg::ATLAS_THREAD_SAFE
mutableprivate

Definition at line 122 of file F150KernelTesterAlg.h.

◆ ATLAS_THREAD_SAFE [14/26]

cl::Kernel m_stripL2GKernel EFTrackingFPGAIntegration::F150KernelTesterAlg::ATLAS_THREAD_SAFE
mutableprivate

Definition at line 124 of file F150KernelTesterAlg.h.

◆ ATLAS_THREAD_SAFE [15/26]

cl::Kernel m_pixelEdmPrepKernel EFTrackingFPGAIntegration::F150KernelTesterAlg::ATLAS_THREAD_SAFE
mutableprivate

Definition at line 126 of file F150KernelTesterAlg.h.

◆ ATLAS_THREAD_SAFE [16/26]

cl::Kernel m_stripEdmPrepKernel EFTrackingFPGAIntegration::F150KernelTesterAlg::ATLAS_THREAD_SAFE
mutableprivate

Definition at line 127 of file F150KernelTesterAlg.h.

◆ ATLAS_THREAD_SAFE [17/26]

cl::Buffer m_pixelClusterInputBuffer EFTrackingFPGAIntegration::F150KernelTesterAlg::ATLAS_THREAD_SAFE
mutableprivate

Definition at line 130 of file F150KernelTesterAlg.h.

◆ ATLAS_THREAD_SAFE [18/26]

cl::Buffer m_stripClusterInputBuffer EFTrackingFPGAIntegration::F150KernelTesterAlg::ATLAS_THREAD_SAFE
mutableprivate

Definition at line 131 of file F150KernelTesterAlg.h.

◆ ATLAS_THREAD_SAFE [19/26]

cl::Buffer m_pixelClusterOutputBuffer EFTrackingFPGAIntegration::F150KernelTesterAlg::ATLAS_THREAD_SAFE
mutableprivate

Definition at line 133 of file F150KernelTesterAlg.h.

◆ ATLAS_THREAD_SAFE [20/26]

cl::Buffer m_stripClusterOutputBuffer EFTrackingFPGAIntegration::F150KernelTesterAlg::ATLAS_THREAD_SAFE
mutableprivate

Definition at line 134 of file F150KernelTesterAlg.h.

◆ ATLAS_THREAD_SAFE [21/26]

cl::Buffer m_pixelClusterEDMOutputBuffer EFTrackingFPGAIntegration::F150KernelTesterAlg::ATLAS_THREAD_SAFE
mutableprivate

Definition at line 135 of file F150KernelTesterAlg.h.

◆ ATLAS_THREAD_SAFE [22/26]

cl::Buffer m_stripClusterEDMOutputBuffer EFTrackingFPGAIntegration::F150KernelTesterAlg::ATLAS_THREAD_SAFE
mutableprivate

Definition at line 136 of file F150KernelTesterAlg.h.

◆ ATLAS_THREAD_SAFE [23/26]

cl::Buffer m_stripL2GOutputBuffer EFTrackingFPGAIntegration::F150KernelTesterAlg::ATLAS_THREAD_SAFE
mutableprivate

Definition at line 138 of file F150KernelTesterAlg.h.

◆ ATLAS_THREAD_SAFE [24/26]

cl::Buffer m_stripL2GEDMOutputBuffer EFTrackingFPGAIntegration::F150KernelTesterAlg::ATLAS_THREAD_SAFE
mutableprivate

Definition at line 139 of file F150KernelTesterAlg.h.

◆ ATLAS_THREAD_SAFE [25/26]

cl::Buffer m_edmPixelOutputBuffer EFTrackingFPGAIntegration::F150KernelTesterAlg::ATLAS_THREAD_SAFE
mutableprivate

Definition at line 141 of file F150KernelTesterAlg.h.

◆ ATLAS_THREAD_SAFE [26/26]

cl::Buffer m_edmStripOutputBuffer EFTrackingFPGAIntegration::F150KernelTesterAlg::ATLAS_THREAD_SAFE
mutableprivate

Definition at line 142 of file F150KernelTesterAlg.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::F150KernelTesterAlg::m_chronoSvc
private
Initial value:
{
"ChronoStatSvc", name()}

Service for timing the algorithm.

Definition at line 50 of file F150KernelTesterAlg.h.

◆ 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.

◆ 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.

◆ 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::F150KernelTesterAlg::m_FPGADataFormatTool
private
Initial value:
{
this, "FPGADataFormatTool", "FPGADataFormatTool", "Tool for formatting FPGA data"}

Tool for formatting FPGA data.

Definition at line 62 of file F150KernelTesterAlg.h.

◆ m_FPGAHitKey

SG::ReadHandleKey<FPGATrackSimHitCollection> EFTrackingFPGAIntegration::F150KernelTesterAlg::m_FPGAHitKey {this, "FPGATrackSimHitKey","FPGAHits", "FPGATrackSim hits key"}
private

Definition at line 72 of file F150KernelTesterAlg.h.

◆ m_FPGAPixelOutput

SG::WriteHandleKey<std::vector<uint64_t> > EFTrackingFPGAIntegration::F150KernelTesterAlg::m_FPGAPixelOutput {this, "FPGAOutputPixelKey", "FPGAPixelOutput", "Pixel output from FPGA format"}
private

Definition at line 147 of file F150KernelTesterAlg.h.

◆ m_FPGAPixelRDO

SG::ReadHandleKey<std::vector<uint64_t> > EFTrackingFPGAIntegration::F150KernelTesterAlg::m_FPGAPixelRDO {this, "FPGAEncodedPixelKey", "FPGAEncodedPixelRDOs", "Pixel RDO converted to FPGA format"}
private

Definition at line 144 of file F150KernelTesterAlg.h.

◆ m_FPGASlicedHitKey

SG::ReadHandleKey<FPGATrackSimHitCollection> EFTrackingFPGAIntegration::F150KernelTesterAlg::m_FPGASlicedHitKey {this, "FPGATrackSimHitKey_1st", "FPGAHits_1st_reg34", "FPGATrackSim Hits 1st stage key"}
private

Definition at line 73 of file F150KernelTesterAlg.h.

◆ m_FPGAStripOutput

SG::WriteHandleKey<std::vector<uint64_t> > EFTrackingFPGAIntegration::F150KernelTesterAlg::m_FPGAStripOutput {this, "FPGAOutputStripKey", "FPGAStripOutput", "Strip output from FPGA format"}
private

Definition at line 148 of file F150KernelTesterAlg.h.

◆ m_FPGAStripRDO

SG::ReadHandleKey<std::vector<uint64_t> > EFTrackingFPGAIntegration::F150KernelTesterAlg::m_FPGAStripRDO {this, "FPGAEncodedStripKey", "FPGAEncodedStripRDOs", "Strip RDO converted to FPGA format"}
private

Definition at line 145 of file F150KernelTesterAlg.h.

◆ m_FPGATrackKey

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

Definition at line 74 of file F150KernelTesterAlg.h.

◆ m_FPGATrackOutput

SG::WriteHandleKey<std::vector<uint64_t> > EFTrackingFPGAIntegration::F150KernelTesterAlg::m_FPGATrackOutput {this, "FPGAOutputTrackKey", "FPGATrackOutput", "Track output from FPGA format"}
private

Definition at line 76 of file F150KernelTesterAlg.h.

◆ m_insideOutInputName

Gaudi::Property<std::string> EFTrackingFPGAIntegration::F150KernelTesterAlg::m_insideOutInputName {this, "InsideOutInputName", "", "Name of the inside out input kernel"}
private

Definition at line 84 of file F150KernelTesterAlg.h.

◆ m_insideOutOutputName

Gaudi::Property<std::string> EFTrackingFPGAIntegration::F150KernelTesterAlg::m_insideOutOutputName {this, "InsideOutOutputName", "", "Name of the inside out output kernel"}
private

Definition at line 85 of file F150KernelTesterAlg.h.

◆ m_IO_kernelTime

std::atomic<cl_ulong> EFTrackingFPGAIntegration::F150KernelTesterAlg::m_IO_kernelTime {0}
mutableprivate

Time for kernel execution.

Definition at line 95 of file F150KernelTesterAlg.h.

◆ m_numEvents

std::atomic<ulonglong> EFTrackingFPGAIntegration::F150KernelTesterAlg::m_numEvents {0}
mutableprivate

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

Definition at line 97 of file F150KernelTesterAlg.h.

◆ m_outputConversionTool

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

Definition at line 79 of file F150KernelTesterAlg.h.

◆ m_pixelClusterKernelName

Gaudi::Property<std::string> EFTrackingFPGAIntegration::F150KernelTesterAlg::m_pixelClusterKernelName {this, "PixelClusterKernelName", "", "Name of the pixel clustering kernel"}
private

Name of the pixel clustering kernel.

Definition at line 90 of file F150KernelTesterAlg.h.

◆ m_pixelEdmKernelName

Gaudi::Property<std::string> EFTrackingFPGAIntegration::F150KernelTesterAlg::m_pixelEdmKernelName {this, "PixelEDMPrepKernelName", "", "Name of the FPGA kernel"}
private

Name of the FPGA kernel.

Definition at line 88 of file F150KernelTesterAlg.h.

◆ 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::F150KernelTesterAlg::m_queue
private

Definition at line 151 of file F150KernelTesterAlg.h.

◆ m_runFull150

Gaudi::Property<bool> EFTrackingFPGAIntegration::F150KernelTesterAlg::m_runFull150 {this, "RunFullF150", "", "Whether to run Full 150 chain"}
private

Whether to run the Full F150 include F100 on hy.

Definition at line 70 of file F150KernelTesterAlg.h.

◆ m_runIO

Gaudi::Property<bool> EFTrackingFPGAIntegration::F150KernelTesterAlg::m_runIO {this, "RunInsideOut", "", "Whether to run inside out or not"}
private

Whether to run inside out or not.

Definition at line 68 of file F150KernelTesterAlg.h.

◆ m_runIOOnSE

Gaudi::Property<bool> EFTrackingFPGAIntegration::F150KernelTesterAlg::m_runIOOnSE {this, "RunInsideOutOnSlicingEngine", "", "Whether to run inside out on the output of the slicing engine"}
private

Whether to run inside out on the output of slicing engine.

Definition at line 69 of file F150KernelTesterAlg.h.

◆ m_runSE

Gaudi::Property<bool> EFTrackingFPGAIntegration::F150KernelTesterAlg::m_runSE {this, "RunSlicing", "", "Whether to run slicing engine or not"}
private

Whether to run SE or not.

Definition at line 67 of file F150KernelTesterAlg.h.

◆ m_SE_kernelTime

std::atomic<cl_ulong> EFTrackingFPGAIntegration::F150KernelTesterAlg::m_SE_kernelTime {0}
mutableprivate

Sum for the average time of the kernel execution.

Definition at line 96 of file F150KernelTesterAlg.h.

◆ m_slicingEngineInputName

Gaudi::Property<std::string> EFTrackingFPGAIntegration::F150KernelTesterAlg::m_slicingEngineInputName {this, "SlicingEngineInputName", "", "Name of the slicing engine input kernel"}
private

Definition at line 82 of file F150KernelTesterAlg.h.

◆ m_slicingEngineOutputName

Gaudi::Property<std::string> EFTrackingFPGAIntegration::F150KernelTesterAlg::m_slicingEngineOutputName {this, "SlicingEngineOutputName", "", "Name of the slicing engine output kernel"}
private

Definition at line 83 of file F150KernelTesterAlg.h.

◆ m_stripClusterKernelName

Gaudi::Property<std::string> EFTrackingFPGAIntegration::F150KernelTesterAlg::m_stripClusterKernelName {this, "StripClusterKernelName", "", "Name of the strip clustering kernel"}
private

Name of the strip clustering kernel.

Definition at line 91 of file F150KernelTesterAlg.h.

◆ m_stripEdmKernelName

Gaudi::Property<std::string> EFTrackingFPGAIntegration::F150KernelTesterAlg::m_stripEdmKernelName {this, "StripEDMPrepKernelName", "", "Name of the FPGA kernel"}
private

Name of the FPGA kernel.

Definition at line 89 of file F150KernelTesterAlg.h.

◆ m_stripL2GKernelName

Gaudi::Property<std::string> EFTrackingFPGAIntegration::F150KernelTesterAlg::m_stripL2GKernelName {this, "StripL2GKernelName", "", "Name of the strip L2G kernel"}
private

Name of the strip L2G kernelS.

Definition at line 92 of file F150KernelTesterAlg.h.

◆ m_testVectorTool

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

Tool for preparing test vectors.

Definition at line 59 of file F150KernelTesterAlg.h.

◆ 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::F150KernelTesterAlg::m_xaodClusterMaker
private
Initial value:
{
this,
"xAODClusterMaker",
"xAODClusterMaker",
"Tool for creating xAOD cluster containers"}

Tool for creating xAOD containers.

Definition at line 53 of file F150KernelTesterAlg.h.

◆ m_xclbin

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

Path and name of the xclbin file.

Definition at line 65 of file F150KernelTesterAlg.h.

◆ m_xrt_accelerator

xrt::device EFTrackingFPGAIntegration::F150KernelTesterAlg::m_xrt_accelerator
private

Definition at line 99 of file F150KernelTesterAlg.h.


The documentation for this class was generated from the following files:
EFTrackingFPGAIntegration::F150KernelTesterAlg::get_cu_name
std::string get_cu_name(const std::string &kernel_name, int cu)
Definition: F150KernelTesterAlg.cxx:15
IntegrationBase::m_accelerator
cl::Device m_accelerator
Device object for the accelerator card.
Definition: IntegrationBase.h:66
data
char data[hepevt_bytes_allocation_ATLAS]
Definition: HepEvt.cxx:11
IntegrationBase::initialize
virtual StatusCode initialize() override
Detect the OpenCL devices and prepare OpenCL context.
Definition: IntegrationBase.cxx:16
ATH_MSG_FATAL
#define ATH_MSG_FATAL(x)
Definition: AthMsgStreamMacros.h:34
EFTrackingFPGAIntegration::F150KernelTesterAlg::m_slicingEngineInputName
Gaudi::Property< std::string > m_slicingEngineInputName
Definition: F150KernelTesterAlg.h:82
EFTrackingFPGAIntegration::F150KernelTesterAlg::m_FPGADataFormatTool
ToolHandle< FPGADataFormatTool > m_FPGADataFormatTool
Tool for formatting FPGA data.
Definition: F150KernelTesterAlg.h:62
EFTrackingTransient::PIXEL_CONTAINER_BUF_SIZE
constexpr unsigned long PIXEL_CONTAINER_BUF_SIZE
Definition: EFTrackingTransient.h:38
ATH_MSG_INFO
#define ATH_MSG_INFO(x)
Definition: AthMsgStreamMacros.h:31
EFTrackingFPGAIntegration::F150KernelTesterAlg::m_chronoSvc
ServiceHandle< IChronoSvc > m_chronoSvc
Service for timing the algorithm.
Definition: F150KernelTesterAlg.h:50
make_unique
std::unique_ptr< T > make_unique(Args &&... args)
Definition: SkimmingToolEXOT5.cxx:23
EFTrackingFPGAIntegration::F150KernelTesterAlg::m_runFull150
Gaudi::Property< bool > m_runFull150
Whether to run the Full F150 include F100 on hy.
Definition: F150KernelTesterAlg.h:70
EFTrackingFPGAIntegration::F150KernelTesterAlg::m_slicingEngineOutputName
Gaudi::Property< std::string > m_slicingEngineOutputName
Definition: F150KernelTesterAlg.h:83
SG::ReadHandle
Definition: StoreGate/StoreGate/ReadHandle.h:67
hist_file_dump.d
d
Definition: hist_file_dump.py:142
EFTrackingFPGAIntegration::F150KernelTesterAlg::m_outputConversionTool
ToolHandle< OutputConversionTool > m_outputConversionTool
Definition: F150KernelTesterAlg.h:79
JiveXML::Event
struct Event_t Event
Definition: ONCRPCServer.h:65
EFTrackingFPGAIntegration::F150KernelTesterAlg::m_insideOutInputName
Gaudi::Property< std::string > m_insideOutInputName
Definition: F150KernelTesterAlg.h:84
IntegrationBase::m_context
cl::Context m_context
Context object for the application.
Definition: IntegrationBase.h:67
AthCommonDataStore::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 > renounce(T &h)
Definition: AthCommonDataStore.h:380
EFTrackingFPGAIntegration::F150KernelTesterAlg::m_FPGATrackOutput
SG::WriteHandleKey< std::vector< uint64_t > > m_FPGATrackOutput
Definition: F150KernelTesterAlg.h:76
AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::m_evtStore
StoreGateSvc_t m_evtStore
Pointer to StoreGate (event store by default)
Definition: AthCommonDataStore.h:390
AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::m_vhka
std::vector< SG::VarHandleKeyArray * > m_vhka
Definition: AthCommonDataStore.h:398
EFTrackingFPGAIntegration::F150KernelTesterAlg::m_FPGAPixelOutput
SG::WriteHandleKey< std::vector< uint64_t > > m_FPGAPixelOutput
Definition: F150KernelTesterAlg.h:147
EFTrackingFPGAIntegration::F150KernelTesterAlg::m_queue
cl::CommandQueue m_queue
Definition: F150KernelTesterAlg.h:151
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
EFTrackingFPGAIntegration::F150KernelTesterAlg::m_runIOOnSE
Gaudi::Property< bool > m_runIOOnSE
Whether to run inside out on the output of slicing engine.
Definition: F150KernelTesterAlg.h:69
MuonR4::to_string
std::string to_string(const SectorProjector proj)
Definition: MsTrackSeeder.cxx:74
EFTrackingFPGAIntegration::F150KernelTesterAlg::m_FPGAStripOutput
SG::WriteHandleKey< std::vector< uint64_t > > m_FPGAStripOutput
Definition: F150KernelTesterAlg.h:148
EFTrackingFPGAIntegration::F150KernelTesterAlg::m_pixelEdmKernelName
Gaudi::Property< std::string > m_pixelEdmKernelName
Name of the FPGA kernel.
Definition: F150KernelTesterAlg.h:88
postInclude.inputs
inputs
Definition: postInclude.SortInput.py:15
AthenaPoolTestRead.sc
sc
Definition: AthenaPoolTestRead.py:27
SG::VarHandleKeyArray::setOwner
virtual void setOwner(IDataHandleHolder *o)=0
IDTPMcnv.htype
htype
Definition: IDTPMcnv.py:29
compareGeometries.outputFile
string outputFile
Definition: compareGeometries.py:25
EFTrackingTransient::PIXEL_BLOCK_BUF_SIZE
constexpr unsigned long PIXEL_BLOCK_BUF_SIZE
Definition: EFTrackingTransient.h:36
PyPoolBrowser.item
item
Definition: PyPoolBrowser.py:129
AthCommonDataStore::declareGaudiProperty
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
Definition: AthCommonDataStore.h:156
AthCommonReentrantAlgorithm::extraOutputDeps
virtual const DataObjIDColl & extraOutputDeps() const override
Return the list of extra output dependencies.
Definition: AthCommonReentrantAlgorithm.cxx:89
EFTrackingTransient::STRIP_CONTAINER_BUF_SIZE
constexpr unsigned long STRIP_CONTAINER_BUF_SIZE
Definition: EFTrackingTransient.h:39
EFTrackingFPGAIntegration::F150KernelTesterAlg::m_FPGAPixelRDO
SG::ReadHandleKey< std::vector< uint64_t > > m_FPGAPixelRDO
Definition: F150KernelTesterAlg.h:144
python.utils.AtlRunQueryDQUtils.p
p
Definition: AtlRunQueryDQUtils.py:209
AthCommonDataStore
Definition: AthCommonDataStore.h:52
ATH_MSG_ERROR
#define ATH_MSG_ERROR(x)
Definition: AthMsgStreamMacros.h:33
Athena::Chrono
Exception-safe IChronoSvc caller.
Definition: Chrono.h:50
dqt_zlumi_pandas.err
err
Definition: dqt_zlumi_pandas.py:183
AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::outputHandles
virtual std::vector< Gaudi::DataHandle * > outputHandles() const override
Return this algorithm's output handles.
EFTrackingFPGAIntegration::F150KernelTesterAlg::m_xaodClusterMaker
ToolHandle< xAODClusterMaker > m_xaodClusterMaker
Tool for creating xAOD containers.
Definition: F150KernelTesterAlg.h:53
python.DecayParser.buf
buf
print ("=> [%s]"cmd)
Definition: DecayParser.py:26
SG::get
const T * get(const ReadCondHandleKey< T > &key, const EventContext &ctx)
Convenience function to retrieve an object given a ReadCondHandleKey.
Definition: ReadCondHandle.h:287
EFTrackingFPGAIntegration::F150KernelTesterAlg::m_stripClusterKernelName
Gaudi::Property< std::string > m_stripClusterKernelName
Name of the strip clustering kernel.
Definition: F150KernelTesterAlg.h:91
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
ATH_MSG_DEBUG
#define ATH_MSG_DEBUG(x)
Definition: AthMsgStreamMacros.h:29
AthCommonDataStore::declareProperty
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)
Definition: AthCommonDataStore.h:145
EFTrackingTransient::PIXEL_CONTAINER_INPUT_BUF_SIZE
constexpr unsigned long PIXEL_CONTAINER_INPUT_BUF_SIZE
Definition: EFTrackingTransient.h:47
EFTrackingFPGAIntegration::F150KernelTesterAlg::m_FPGAStripRDO
SG::ReadHandleKey< std::vector< uint64_t > > m_FPGAStripRDO
Definition: F150KernelTesterAlg.h:145
AthCommonReentrantAlgorithm::sysExecute
virtual StatusCode sysExecute(const EventContext &ctx) override
Execute an algorithm.
Definition: AthCommonReentrantAlgorithm.cxx:76
IntegrationBase::m_deviceBDF
Gaudi::Property< std::string > m_deviceBDF
BDF ID of the accelerator card.
Definition: IntegrationBase.h:69
ATH_MSG_ALWAYS
#define ATH_MSG_ALWAYS(x)
Definition: AthMsgStreamMacros.h:35
xAOD::uint64_t
uint64_t
Definition: EventInfo_v1.cxx:123
ATH_CHECK
#define ATH_CHECK
Definition: AthCheckMacros.h:40
plotting.yearwise_luminosity_vs_mu.bins
bins
Definition: yearwise_luminosity_vs_mu.py:30
AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::m_detStore
StoreGateSvc_t m_detStore
Pointer to StoreGate (detector store by default)
Definition: AthCommonDataStore.h:393
SG::VarHandleKey::initialize
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.
Definition: AthToolSupport/AsgDataHandles/Root/VarHandleKey.cxx:103
EFTrackingFPGAIntegration::F150KernelTesterAlg::m_SE_kernelTime
std::atomic< cl_ulong > m_SE_kernelTime
Sum for the average time of the kernel execution.
Definition: F150KernelTesterAlg.h:96
IntegrationBase::loadProgram
StatusCode loadProgram(const std::string &xclbin)
Find the xclbin file and load it into the OpenCL program object.
Definition: IntegrationBase.cxx:115
EFTrackingTransient::STRIP_CONTAINER_INPUT_BUF_SIZE
constexpr unsigned long STRIP_CONTAINER_INPUT_BUF_SIZE
Definition: EFTrackingTransient.h:48
SG::VarHandleKeyArray::renounce
virtual void renounce()=0
EFTrackingFPGAIntegration::F150KernelTesterAlg::m_runIO
Gaudi::Property< bool > m_runIO
Whether to run inside out or not.
Definition: F150KernelTesterAlg.h:68
SG::HandleClassifier::type
std::conditional< std::is_base_of< SG::VarHandleKeyArray, T >::value, VarHandleKeyArrayType, type2 >::type type
Definition: HandleClassifier.h:54
EFTrackingFPGAIntegration::F150KernelTesterAlg::m_testVectorTool
ToolHandle< TestVectorTool > m_testVectorTool
Tool for preparing test vectors.
Definition: F150KernelTesterAlg.h:59
merge_scale_histograms.doc
string doc
Definition: merge_scale_histograms.py:9
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:240
EFTrackingFPGAIntegration::F150KernelTesterAlg::m_numEvents
std::atomic< ulonglong > m_numEvents
Number of events for the average time of the kernel execution.
Definition: F150KernelTesterAlg.h:97
EFTrackingFPGAIntegration::F150KernelTesterAlg::m_xclbin
Gaudi::Property< std::string > m_xclbin
Path and name of the xclbin file.
Definition: F150KernelTesterAlg.h:65
EFTrackingTransient::STRIP_BLOCK_BUF_SIZE
constexpr unsigned long STRIP_BLOCK_BUF_SIZE
Definition: EFTrackingTransient.h:37
EFTrackingFPGAIntegration::F150KernelTesterAlg::m_runSE
Gaudi::Property< bool > m_runSE
Whether to run SE or not.
Definition: F150KernelTesterAlg.h:67
SG::WriteHandle
Definition: StoreGate/StoreGate/WriteHandle.h:73
EFTrackingFPGAIntegration::F150KernelTesterAlg::m_pixelClusterKernelName
Gaudi::Property< std::string > m_pixelClusterKernelName
Name of the pixel clustering kernel.
Definition: F150KernelTesterAlg.h:90
EFTrackingFPGAIntegration::F150KernelTesterAlg::m_insideOutOutputName
Gaudi::Property< std::string > m_insideOutOutputName
Definition: F150KernelTesterAlg.h:85
EFTrackingTransient::TRACK_CONTAINER_BUF_SIZE
constexpr unsigned long TRACK_CONTAINER_BUF_SIZE
Definition: EFTrackingTransient.h:41
a
TList * a
Definition: liststreamerinfos.cxx:10
h
EFTrackingFPGAIntegration::F150KernelTesterAlg::m_stripL2GKernelName
Gaudi::Property< std::string > m_stripL2GKernelName
Name of the strip L2G kernelS.
Definition: F150KernelTesterAlg.h:92
ATH_MSG_WARNING
#define ATH_MSG_WARNING(x)
Definition: AthMsgStreamMacros.h:32
EFTrackingFPGAIntegration::F150KernelTesterAlg::m_stripEdmKernelName
Gaudi::Property< std::string > m_stripEdmKernelName
Name of the FPGA kernel.
Definition: F150KernelTesterAlg.h:89
EFTrackingFPGAIntegration::F150KernelTesterAlg::dumpHexData
void dumpHexData(std::span< const uint64_t > data, const std::string &dataDescriptor) const
Definition: F150KernelTesterAlg.cxx:21
SG::VarHandleBase::vhKey
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
Definition: StoreGate/src/VarHandleBase.cxx:629
AthCommonReentrantAlgorithm< Gaudi::Algorithm >::sysInitialize
virtual StatusCode sysInitialize() override
Override sysInitialize.
Definition: AthCommonReentrantAlgorithm.cxx:107
python.Bindings.keys
keys
Definition: Control/AthenaPython/python/Bindings.py:801
LHEF::Writer
Pythia8::Writer Writer
Definition: Prophecy4fMerger.cxx:12
EFTrackingFPGAIntegration::F150KernelTesterAlg::m_IO_kernelTime
std::atomic< cl_ulong > m_IO_kernelTime
Time for kernel execution.
Definition: F150KernelTesterAlg.h:95
AthCommonReentrantAlgorithm< Gaudi::Algorithm >::m_extendedExtraObjects
DataObjIDColl m_extendedExtraObjects
Extra output dependency collection, extended by AthAlgorithmDHUpdate to add symlinks.
Definition: AthCommonReentrantAlgorithm.h:114
IntegrationBase::m_program
cl::Program m_program
Program object containing the kernel.
Definition: IntegrationBase.h:68
EFTrackingFPGAIntegration::F150KernelTesterAlg::m_FPGASlicedHitKey
SG::ReadHandleKey< FPGATrackSimHitCollection > m_FPGASlicedHitKey
Definition: F150KernelTesterAlg.h:73
EFTrackingFPGAIntegration::F150KernelTesterAlg::m_FPGATrackKey
SG::ReadHandleKey< FPGATrackSimTrackCollection > m_FPGATrackKey
Definition: F150KernelTesterAlg.h:74
fitman.k
k
Definition: fitman.py:528
EFTrackingFPGAIntegration::F150KernelTesterAlg::m_FPGAHitKey
SG::ReadHandleKey< FPGATrackSimHitCollection > m_FPGAHitKey
Definition: F150KernelTesterAlg.h:72
ServiceHandle< ICondSvc >