The Gaudi Framework  master (69a68366)
Loading...
Searching...
No Matches
CUDAStream.h
Go to the documentation of this file.
1/***********************************************************************************\
2* (c) Copyright 2023-2026 CERN for the benefit of the LHCb and ATLAS collaborations *
3* *
4* This software is distributed under the terms of the Apache version 2 licence, *
5* copied verbatim in the file "LICENSE". *
6* *
7* In applying this licence, CERN does not waive the privileges and immunities *
8* granted to it by virtue of its status as an Intergovernmental Organization *
9* or submit itself to any jurisdiction. *
10\***********************************************************************************/
11#pragma once
12// Gaudi
14
15// Forward declaration hack so we can have a cudaStream_t member here
16struct CUstream_st;
17typedef struct CUstream_st* cudaStream_t;
18
19namespace Gaudi::CUDA {
20 class Stream {
21 private:
25
26 public:
29 ~Stream();
30
32 operator cudaStream_t();
33
36
39
41 void registerDependency();
42
44 void removeDependency();
45 };
46} // namespace Gaudi::CUDA
struct CUstream_st * cudaStream_t
Definition CUDAStream.h:17
Base class for asynchronous algorithms.
const Gaudi::AsynchronousAlgorithm * parent()
Access the parent algorithm.
void removeDependency()
INTERNAL: Remove a dependency.
void registerDependency()
INTERNAL: Register a dependency.
StatusCode await()
Yield fiber until stream is done.
Stream(const Gaudi::AsynchronousAlgorithm *parent)
Create a new Stream. Should happen once per algorithm.
cudaStream_t m_stream
Definition CUDAStream.h:22
const Gaudi::AsynchronousAlgorithm * m_parent
Definition CUDAStream.h:23
This class is used for returning status codes from appropriate routines.
Definition StatusCode.h:64