![]() |
ATLAS Offline Software
|
Helper class for managing a CUDA stream in memory. More...
#include <Stream.h>
Public Member Functions | |
| Stream () | |
| Constructor, creating the CUDA stream. | |
| ~Stream () | |
| Destructor, destroying the CUDA stream. | |
| cudaStream_t | stream () const |
| Get the CUDA stream. | |
| std::string | name () const |
| Get the name of the device associated with the stream. | |
Private Attributes | |
| cudaStream_t | m_stream {nullptr} |
| The CUDA stream to use for asynchronous copies. | |
| AthCUDA::Details::Stream::Stream | ( | ) |
Constructor, creating the CUDA stream.
Definition at line 28 of file Stream.cxx.
| AthCUDA::Details::Stream::~Stream | ( | ) |
Destructor, destroying the CUDA stream.
Let's not check for errors here.
Since that would introduce a struct that may throw in its destructor. Which we don't want.
Definition at line 34 of file Stream.cxx.
| std::string AthCUDA::Details::Stream::name | ( | ) | const |
Get the name of the device associated with the stream.
Definition at line 48 of file Stream.cxx.
| cudaStream_t AthCUDA::Details::Stream::stream | ( | ) | const |
Get the CUDA stream.
Definition at line 38 of file Stream.cxx.
|
private |