|
ATLAS Offline Software
|
Go to the documentation of this file.
4 #ifndef ATHEXXRT_VECTORMULTXRTEXAMPLEALG_H
5 #define ATHEXXRT_VECTORMULTXRTEXAMPLEALG_H
16 #include "GaudiKernel/ServiceHandle.h"
43 this,
"DeviceMgmtSvc",
"AthXRT::DeviceMgmtSvc",
44 "The XRT device manager service to use"};
62 std::shared_ptr<xrt::device>
m_device =
nullptr;
65 std::unique_ptr<xrt::kernel>
m_kernel =
nullptr;
68 std::unique_ptr<xrt::run>
m_run =
nullptr;
83 #endif // ATHEXXRT_VECTORMULTXRTEXAMPLEALG_H
static constexpr int s_element_count
std::unique_ptr< xrt::kernel > m_kernel
Kernel object.
std::unique_ptr< xrt::bo > m_bo_in2
virtual StatusCode execute(const EventContext &ctx) const override
Function executing the algorithm.
std::unique_ptr< xrt::run > m_run
Kernel run object.
std::unique_ptr< xrt::bo > m_bo_out
std::unique_ptr< xrt::bo > m_bo_in1
Buffer objects.
An algorithm that can be simultaneously executed in multiple threads.
static constexpr int s_krnl_param_in2
Maintain a set of objects, one per slot.
AthReentrantAlgorithm()
Default constructor:
::StatusCode StatusCode
StatusCode definition for legacy code.
static constexpr int s_krnl_param_in1
ServiceHandle< AthXRT::IDeviceMgmtSvc > m_DeviceMgmtSvc
The XRT device manager to use.
static constexpr int s_krnl_param_out
std::shared_ptr< xrt::device > m_device
Device pointer.
static constexpr int s_krnl_param_size
static constexpr char s_krnl_name[]
SG::SlotSpecificObj< SlotData > m_slots
List of slot-specific data.
virtual StatusCode initialize() override
Function initialising the algorithm.
Maintain a set of objects, one per slot.
Example algorithm exercising the AthXRT core services.