ATLAS Offline Software
Loading...
Searching...
No Matches
Control
AthDevice
AthDeviceComps
src
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
8
namespace
AthDevice
{
9
10
StatusCode
CopiesAdaptorTool::initialize
() {
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
20
std::shared_ptr<const vecmem::copy>
CopiesAdaptorTool::hostCopy
(
21
const
EventContext& ctx)
const
{
22
23
return
m_hostCopyTool
->copy(ctx);
24
}
25
26
std::shared_ptr<const vecmem::copy>
CopiesAdaptorTool::deviceCopy
(
27
const
EventContext& ctx)
const
{
28
29
return
m_deviceCopyTool
->copy(ctx);
30
}
31
32
}
// namespace AthDevice
ATH_CHECK
#define ATH_CHECK
Evaluate an expression and check for errors.
Definition
AthCheckMacros.h:40
CopiesAdaptorTool.h
AthDevice::CopiesAdaptorTool::m_hostCopyTool
ToolHandle< ICopyTool > m_hostCopyTool
Handle to the "host" copy tool.
Definition
CopiesAdaptorTool.h:51
AthDevice::CopiesAdaptorTool::m_deviceCopyTool
ToolHandle< ICopyTool > m_deviceCopyTool
Handle to the "device" copy tool.
Definition
CopiesAdaptorTool.h:54
AthDevice::CopiesAdaptorTool::hostCopy
virtual std::shared_ptr< const vecmem::copy > hostCopy(const EventContext &ctx) const override
Get the "host" copy object.
Definition
CopiesAdaptorTool.cxx:20
AthDevice::CopiesAdaptorTool::initialize
virtual StatusCode initialize() override
Initialize the tool.
Definition
CopiesAdaptorTool.cxx:10
AthDevice::CopiesAdaptorTool::deviceCopy
virtual std::shared_ptr< const vecmem::copy > deviceCopy(const EventContext &ctx) const override
Get the "device" copy object.
Definition
CopiesAdaptorTool.cxx:26
AthDevice
Definition
BinaryPageMemoryResourceSvc.cxx:15
Generated on
for ATLAS Offline Software by
1.16.1