ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Control
AthHIP
AthHIPComps
src
AthHIP/AthHIPComps/src/SingleStreamSvc.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 "
SingleStreamSvc.h
"
7
8
// System include(s).
9
#include <cassert>
10
11
namespace
AthHIP
{
12
13
StatusCode
SingleStreamSvc::initialize
() {
14
15
// Create the stream object.
16
m_stream
= std::make_unique<const Details::Stream>();
17
18
// Tell the user what happened.
19
ATH_MSG_INFO
(
"Initialized HIP stream on device: "
<<
m_stream
->name());
20
21
// Return gracefully.
22
return
StatusCode::SUCCESS;
23
}
24
25
hipStream_t
SingleStreamSvc::stream
(
const
EventContext&)
const
{
26
27
// Get the stream corresponding to the current slot.
28
assert(
m_stream
);
29
assert(
m_stream
->stream());
30
return
m_stream
->stream();
31
}
32
33
}
// namespace AthHIP
SingleStreamSvc.h
ATH_MSG_INFO
#define ATH_MSG_INFO(x,...)
Definition
AthMsgStreamMacros.h:45
AthHIP::SingleStreamSvc::initialize
virtual StatusCode initialize() override
Initialize the tool.
Definition
AthHIP/AthHIPComps/src/SingleStreamSvc.cxx:13
AthHIP::SingleStreamSvc::stream
virtual hipStream_t stream(const EventContext &ctx) const override
Get the HIP stream to use.
Definition
AthHIP/AthHIPComps/src/SingleStreamSvc.cxx:25
AthHIP::SingleStreamSvc::m_stream
std::unique_ptr< const Details::Stream > m_stream
Single HIP stream.
Definition
AthHIP/AthHIPComps/src/SingleStreamSvc.h:53
AthHIP
Definition
AthHIP/AthHIPComps/src/AsyncCopyTool.cxx:11
Generated on
for ATLAS Offline Software by
1.17.0