ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Control
AthCUDA
AthCUDAInterfaces
AthCUDAInterfaces
IStreamProvider.h
Go to the documentation of this file.
1
// Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
2
#ifndef ATHCUDAINTERFACES_ISTREAMPROVIDER_H
3
#define ATHCUDAINTERFACES_ISTREAMPROVIDER_H
4
5
// Gaudi include(s).
6
#include "GaudiKernel/EventContext.h"
7
8
// CUDA include(s).
9
#include <cuda_runtime_api.h>
10
11
namespace
AthCUDA
{
12
14
class
IStreamProvider
{
15
16
public
:
18
virtual
~IStreamProvider
() =
default
;
19
25
virtual
cudaStream_t
stream
(
const
EventContext& ctx)
const
= 0;
26
27
};
// class IStreamProvider
28
29
}
// namespace AthCUDA
30
31
#endif
// ATHCUDAINTERFACES_ISTREAMPROVIDER_H
AthCUDA::IStreamProvider
Interface for components providing CUDA streams to (reentrant) algorithms.
Definition
IStreamProvider.h:14
AthCUDA::IStreamProvider::stream
virtual cudaStream_t stream(const EventContext &ctx) const =0
Get the CUDA stream to use.
AthCUDA::IStreamProvider::~IStreamProvider
virtual ~IStreamProvider()=default
Destructor.
AthCUDA
Definition
Info.h:14
Generated on
for ATLAS Offline Software by
1.17.0