ATLAS Offline Software
Loading...
Searching...
No Matches
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
11namespace AthCUDA {
12
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
Interface for components providing CUDA streams to (reentrant) algorithms.
virtual cudaStream_t stream(const EventContext &ctx) const =0
Get the CUDA stream to use.
virtual ~IStreamProvider()=default
Destructor.
Definition Info.h:14