ATLAS Offline Software
Loading...
Searching...
No Matches
CopiesAdaptorTool.cxx
Go to the documentation of this file.
1//
2// Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3//
4
5// Local include(s).
6#include "CopiesAdaptorTool.h"
7
8namespace AthDevice {
9
11
12 // Retrieve the sub-tool(s).
13 ATH_CHECK(m_hostCopyTool.retrieve());
14 ATH_CHECK(m_deviceCopyTool.retrieve());
15
16 // Return gracefully.
17 return StatusCode::SUCCESS;
18}
19
20std::shared_ptr<const vecmem::copy> CopiesAdaptorTool::hostCopy(
21 const EventContext& ctx) const {
22
23 return m_hostCopyTool->copy(ctx);
24}
25
26std::shared_ptr<const vecmem::copy> CopiesAdaptorTool::deviceCopy(
27 const EventContext& ctx) const {
28
29 return m_deviceCopyTool->copy(ctx);
30}
31
32} // namespace AthDevice
#define ATH_CHECK
Evaluate an expression and check for errors.
ToolHandle< ICopyTool > m_hostCopyTool
Handle to the "host" copy tool.
ToolHandle< ICopyTool > m_deviceCopyTool
Handle to the "device" copy tool.
virtual std::shared_ptr< const vecmem::copy > hostCopy(const EventContext &ctx) const override
Get the "host" copy object.
virtual StatusCode initialize() override
Initialize the tool.
virtual std::shared_ptr< const vecmem::copy > deviceCopy(const EventContext &ctx) const override
Get the "device" copy object.