ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Control
AthCUDA
AthCUDAServices
src
AthCUDA/AthCUDAServices/src/StreamSvcAdaptorTool.h
Go to the documentation of this file.
1
//
2
// Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3
//
4
#ifndef ATHCUDASERVICES_STREAMSVCADAPTORTOOL_H
5
#define ATHCUDASERVICES_STREAMSVCADAPTORTOOL_H
6
7
// Framework include(s).
8
#include "
AthenaBaseComps/AthAlgTool.h
"
9
#include "GaudiKernel/ServiceHandle.h"
10
11
// AthCUDA include(s).
12
#include "
AthCUDAInterfaces/IStreamSvc.h
"
13
#include "
AthCUDAInterfaces/IStreamTool.h
"
14
15
namespace
AthCUDA
{
16
26
class
StreamSvcAdaptorTool
:
public
extends<AthAlgTool, IStreamTool> {
27
28
public
:
29
// Inherit the base class's constructor(s).
30
using
extends::extends;
31
34
36
virtual
StatusCode
initialize
()
override
;
37
39
42
48
virtual
cudaStream_t
stream
(
const
EventContext& ctx)
const override
;
49
51
52
private
:
54
ServiceHandle<IStreamSvc>
m_svc
{
55
this
,
"StreamSvc"
,
""
,
"Service providing the 'adapted' CUDA streams"
};
56
57
};
// class StreamSvcAdaptorTool
58
59
}
// namespace AthCUDA
60
61
#endif
// ATHCUDASERVICES_STREAMSVCADAPTORTOOL_H
AthAlgTool.h
IStreamSvc.h
IStreamTool.h
AthCUDA::StreamSvcAdaptorTool
Tool exposing a CUDA stream service as a CUDA stream tool.
Definition
AthCUDA/AthCUDAServices/src/StreamSvcAdaptorTool.h:26
AthCUDA::StreamSvcAdaptorTool::stream
virtual cudaStream_t stream(const EventContext &ctx) const override
Get the CUDA stream to use.
Definition
AthCUDA/AthCUDAServices/src/StreamSvcAdaptorTool.cxx:22
AthCUDA::StreamSvcAdaptorTool::m_svc
ServiceHandle< IStreamSvc > m_svc
Handle to the service providing the CUDA streams.
Definition
AthCUDA/AthCUDAServices/src/StreamSvcAdaptorTool.h:54
AthCUDA::StreamSvcAdaptorTool::initialize
virtual StatusCode initialize() override
Initialize the tool.
Definition
AthCUDA/AthCUDAServices/src/StreamSvcAdaptorTool.cxx:13
ServiceHandle
Definition
ClusterMakerTool.h:36
AthCUDA
Definition
Info.h:14
Generated on
for ATLAS Offline Software by
1.17.0