 |
ATLAS Offline Software
|
Go to the documentation of this file.
9 #ifndef EFTRACKING_FPGA_INTEGRATION_F110IntegrationAlg_H
10 #define EFTRACKING_FPGA_INTEGRATION_F110IntegrationAlg_H
22 #include "GaudiKernel/ServiceHandle.h"
23 #include "GaudiKernel/IChronoSvc.h"
40 using IntegrationBase::IntegrationBase;
46 std::vector<cl::Event>
getDepVector(std::vector<cl::Event> &endEvents,
size_t cu)
const;
56 Gaudi::Property<int>
m_FPGAThreads{
this,
"FPGAThreads", 1,
"number of FPGA threads to initialize"};
58 Gaudi::Property<std::string>
m_xclbin{
this,
"xclbin",
"",
"xclbin path and name"};
60 Gaudi::Property<std::string>
m_pixelEdmKernelName{
this,
"PixelEDMPrepKernelName",
"",
"Name of the FPGA kernel"};
62 Gaudi::Property<std::string>
m_stripEdmKernelName{
this,
"StripEDMPrepKernelName",
"",
"Name of the FPGA kernel"};
64 Gaudi::Property<std::string>
m_pixelClusterKernelName{
this,
"PixelClusterKernelName",
"",
"Name of the pixel clustering kernel"};
66 Gaudi::Property<std::string>
m_stripClusterKernelName{
this,
"StripClusterKernelName",
"",
"Name of the strip clustering kernel"};
68 Gaudi::Property<std::string>
m_stripL2GKernelName{
this,
"StripL2GKernelName",
"",
"Name of the strip L2G kernel"};
122 #endif // EFTRACKING_FPGA_INTEGRATION_F110IntegrationAlg_H
std::atomic< cl_ulong > m_stripInputTime
Time for strip input buffer write.
Gaudi::Property< std::string > m_stripEdmKernelName
Name of the FPGA kernel.
cl::CommandQueue m_acc_queue
std::vector< cl::Buffer > m_edmStripOutputBufferList ATLAS_THREAD_SAFE
The base class for the EFTracking FPGA integration development.
std::vector< cl::Kernel > m_stripL2GKernels ATLAS_THREAD_SAFE
std::atomic< cl_ulong > m_pixelInputTime
Time for pixel input buffer write.
std::vector< cl::Event > m_stripL2GEndEvents ATLAS_THREAD_SAFE
std::atomic< cl_ulong > m_stripL2GTime
Time for strip L2G.
std::vector< cl::Kernel > m_pixelEDMKernels ATLAS_THREAD_SAFE
std::vector< cl::Buffer > m_pixelClusterEDMOutputBufferList ATLAS_THREAD_SAFE
std::mutex m_fpgaHandleMtx
std::atomic< cl_ulong > m_kernelTime
Time for kernel execution.
std::vector< cl::Event > m_pixelEDMEndEvents ATLAS_THREAD_SAFE
std::vector< cl::Kernel > m_stripClusterKernels ATLAS_THREAD_SAFE
Property holding a SG store/key/clid from which a ReadHandle is made.
std::vector< cl::Buffer > m_stripL2GEDMOutputBufferList ATLAS_THREAD_SAFE
std::atomic< cl_ulong > m_pixelOutputTime
Time for pixel output buffer read.
SG::WriteHandleKey< std::vector< uint64_t > > m_FPGAStripOutput
std::vector< cl::Event > m_pixelClusterEndEvents ATLAS_THREAD_SAFE
std::vector< cl::Event > m_stripEDMEndEvents ATLAS_THREAD_SAFE
Property holding a SG store/key/clid from which a WriteHandle is made.
Gaudi::Property< std::string > m_xclbin
Path and name of the xclbin file.
std::vector< cl::Event > m_stripClusterEndEvents ATLAS_THREAD_SAFE
::StatusCode StatusCode
StatusCode definition for legacy code.
std::vector< cl::Buffer > m_stripL2GOutputBufferList ATLAS_THREAD_SAFE
Gaudi::Property< std::string > m_pixelEdmKernelName
Name of the FPGA kernel.
Gaudi::Property< std::string > m_pixelClusterKernelName
Name of the pixel clustering kernel.
std::vector< cl::Buffer > m_edmPixelOutputBufferList ATLAS_THREAD_SAFE
The class for enconding RDO to FPGA format.
std::atomic< cl_ulong > m_pixelEdmPrepTime
Time for pixel EDM preparation.
void getListofCUs(std::vector< std::string > &cuNames)
std::vector< cl::Buffer > m_stripClusterEDMOutputBufferList ATLAS_THREAD_SAFE
SG::ReadHandleKey< std::vector< uint64_t > > m_FPGAStripRDO
virtual StatusCode initialize() override final
Detect the OpenCL devices and prepare OpenCL context.
std::vector< cl::Kernel > m_pixelClusterKernels ATLAS_THREAD_SAFE
virtual StatusCode execute(const EventContext &ctx) const override final
Should be overriden by derived classes to perform meaningful work.
ServiceHandle< IChronoSvc > m_chronoSvc
Service for timing the algorithm.
This is the class for the benchmark algorithm specific to the FPGA integration and output conversion.
SG::ReadHandleKey< std::vector< uint64_t > > m_FPGAPixelRDO
virtual StatusCode finalize() override final
Gaudi::Property< std::string > m_stripClusterKernelName
Name of the strip clustering kernel.
std::vector< cl::Event > getDepVector(std::vector< cl::Event > &endEvents, size_t cu) const
std::vector< cl::Kernel > m_stripEDMKernels ATLAS_THREAD_SAFE
std::atomic< cl_ulong > m_pixelClusteringTime
Time for pixel clustering.
std::atomic< cl_ulong > m_stripEdmPrepTime
Time for strip EDM preparation.
std::vector< cl::Buffer > m_pixelClusterInputBufferList ATLAS_THREAD_SAFE
Gaudi::Property< std::string > m_stripL2GKernelName
Name of the strip L2G kernelS.
std::vector< cl::Buffer > m_stripClusterInputBufferList ATLAS_THREAD_SAFE
Gaudi::Property< int > m_FPGAThreads
SG::WriteHandleKey< std::vector< uint64_t > > m_FPGAPixelOutput
std::vector< cl::Buffer > m_stripClusterOutputBufferList ATLAS_THREAD_SAFE
std::atomic< cl_ulong > m_stripOutputTime
Time for strip output buffer read.
std::atomic< ulonglong > m_numEvents
Number of events processed.
std::atomic< cl_ulong > m_stripClusteringTime
Time for strip clustering.