9#ifndef EFTRACKING_FPGA_INTEGRATION_F100StreamIntegrationAlg_H
10#define EFTRACKING_FPGA_INTEGRATION_F100StreamIntegrationAlg_H
20#include "GaudiKernel/ServiceHandle.h"
21#include "GaudiKernel/IChronoSvc.h"
36 using IntegrationBase::IntegrationBase;
37 virtual StatusCode
initialize()
override final;
38 virtual StatusCode
execute(
const EventContext &ctx)
const override final;
39 virtual StatusCode
finalize()
override final;
53 Gaudi::Property<int>
m_FPGAThreads{
this,
"FPGAThreads", 1,
"number of FPGA threads to initialize"};
55 Gaudi::Property<std::string>
m_xclbin{
this,
"xclbin",
"",
"xclbin path and name"};
58 Gaudi::Property<std::string>
m_pixelEdmKernelName{
this,
"PixelEDMPrepKernelName",
"",
"Name of the FPGA kernel"};
60 Gaudi::Property<std::string>
m_stripEdmKernelName{
this,
"StripEDMPrepKernelName",
"",
"Name of the FPGA kernel"};
70 Gaudi::Property<std::string>
m_pixelL2GKernelName{
this,
"PixelL2GKernelName",
"",
"Name of the pixel L2G kernel"};
71 Gaudi::Property<std::string>
m_stripL2GKernelName{
this,
"StripL2GKernelName",
"",
"Name of the strip L2G kernel"};
This is the class for the benchmark algorithm specific to the FPGA integration and output conversion.
std::vector< cl::Buffer > m_stripClusterOutputBufferList
Gaudi::Property< std::string > m_stripStartClusterKernelName
Name of the strip clustering kernel start.
std::vector< cl::Buffer > m_stripClusterInputBufferList
std::atomic< cl_ulong > m_pixelL2GTime
Time for pixel L2G.
std::vector< cl::Kernel > m_pixelStartClusteringKernels ATLAS_THREAD_SAFE
virtual StatusCode finalize() override final
SG::WriteHandleKey< std::vector< uint32_t > > m_FPGAPixelOutput
std::vector< cl::Buffer > m_stripClusterEDMOutputBufferList
std::vector< cl::Buffer > m_pixelClusterEDMOutputBufferList
Gaudi::Property< std::string > m_stripL2GKernelName
Name of the strip L2G kernelS.
Gaudi::Property< std::string > m_pixelEdmKernelName
Name of the FPGA kernel.
std::atomic< cl_ulong > m_stripEdmPrepTime
Time for strip EDM preparation.
std::atomic< ulonglong > m_numEvents
Number of events processed.
std::atomic< cl_ulong > m_stripInputTime
Time for strip input buffer write.
std::atomic< cl_ulong > m_pixelEdmPrepTime
Time for pixel EDM preparation.
SG::WriteHandleKey< std::vector< uint32_t > > m_FPGAStripOutput
SG::ReadHandleKey< int > m_FPGAStripRDOSize
Gaudi::Property< std::string > m_pixelEndClusterKernelName
Name of the pixel clustering kernel start.
Gaudi::Property< std::string > m_pixelEndClusterEdmKernelName
Name of the pixel clustering kernel start.
virtual StatusCode execute(const EventContext &ctx) const override final
Should be overriden by derived classes to perform meaningful work.
std::vector< cl::Buffer > m_pixelClusterOutputBufferList
Gaudi::Property< std::string > m_stripEndClusterKernelName
Name of the strip clustering kernel start.
std::atomic< cl_ulong > m_pixelInputTime
Time for pixel input buffer write.
std::atomic< cl_ulong > m_pixelOutputTime
Time for pixel output buffer read.
std::vector< cl::Buffer > m_stripL2GOutputBufferList
std::vector< cl::Buffer > m_pixelL2GOutputBufferList
SG::ReadHandleKey< std::vector< uint64_t > > m_FPGAPixelRDO
SG::ReadHandleKey< std::vector< uint64_t > > m_FPGAStripRDO
std::vector< cl::Buffer > m_pixelClusterInputBufferList
void getListofCUs(std::vector< std::string > &cuNames)
std::vector< cl::Buffer > m_edmPixelOutputBufferList
virtual StatusCode initialize() override final
Detect the OpenCL devices and prepare OpenCL context.
Gaudi::Property< std::string > m_pixelL2GKernelName
Name of the pixel L2G kernel.
SG::ReadHandleKey< int > m_FPGAPixelRDOSize
Gaudi::Property< std::string > m_stripEdmKernelName
Name of the FPGA kernel.
ServiceHandle< IChronoSvc > m_chronoSvc
Service for timing the algorithm.
Gaudi::Property< int > m_FPGAThreads
std::atomic< cl_ulong > m_kernelTime
Time for kernel execution.
std::vector< cl::Buffer > m_stripL2GEDMOutputBufferList
Gaudi::Property< std::string > m_xclbin
Path and name of the xclbin file.
std::atomic< cl_ulong > m_stripL2GTime
Time for strip L2G.
std::atomic< cl_ulong > m_pixelClusteringTime
Time for pixel clustering.
std::vector< cl::Buffer > m_pixelL2GEDMOutputBufferList
std::atomic< cl_ulong > m_stripClusteringTime
Time for strip clustering.
std::atomic< cl_ulong > m_stripOutputTime
Time for strip output buffer read.
std::vector< cl::CommandQueue > m_acc_queues
Gaudi::Property< std::string > m_pixelStartClusterKernelName
Name of the pixel clustering kernel start.
std::vector< cl::Buffer > m_edmStripOutputBufferList
The base class for the EFTracking FPGA integration development.
Property holding a SG store/key/clid from which a ReadHandle is made.
Property holding a SG store/key/clid from which a WriteHandle is made.
The class for enconding RDO to FPGA format.