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