![]() |
ATLAS Offline Software
|
Helper class for managing a HIP stream in memory. More...
#include <Stream.h>
Public Member Functions | |
| Stream () | |
| Constructor, creating the HIP stream. | |
| ~Stream () | |
| Destructor, destroying the HIP stream. | |
| hipStream_t | stream () const |
| Get the HIP stream. | |
| std::string | name () const |
| Get the name of the device associated with the stream. | |
Private Attributes | |
| hipStream_t | m_stream {nullptr} |
| The HIP stream to use for asynchronous copies. | |
Helper class for managing a HIP stream in memory.
Definition at line 16 of file AthHIP/AthHIPComps/src/Stream.h.
| AthHIP::Details::Stream::Stream | ( | ) |
Constructor, creating the HIP stream.
Definition at line 28 of file AthHIP/AthHIPComps/src/Stream.cxx.
| AthHIP::Details::Stream::~Stream | ( | ) |
Destructor, destroying the HIP 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 AthHIP/AthHIPComps/src/Stream.cxx.
| std::string AthHIP::Details::Stream::name | ( | ) | const |
Get the name of the device associated with the stream.
Definition at line 48 of file AthHIP/AthHIPComps/src/Stream.cxx.
| hipStream_t AthHIP::Details::Stream::stream | ( | ) | const |
Get the HIP stream.
Definition at line 38 of file AthHIP/AthHIPComps/src/Stream.cxx.
|
private |
The HIP stream to use for asynchronous copies.
Definition at line 32 of file AthHIP/AthHIPComps/src/Stream.h.