waLBerla 7.2
|
RAII wrapper for GPU streams.
#include <GPURAII.h>
Public Member Functions | |
StreamRAII ()=default | |
Create wrapper for the default stream. | |
~StreamRAII () | |
StreamRAII (StreamRAII &&other) noexcept | |
StreamRAII & | operator= (StreamRAII &&other) noexcept |
StreamRAII (const StreamRAII &)=delete | |
void | operator= (const StreamRAII &)=delete |
operator gpuStream_t () const | |
void | synchronize () const |
Static Public Member Functions | |
static StreamRAII | defaultStream () |
static StreamRAII | newPriorityStream (int priority) |
static StreamRAII | newStream () |
Private Member Functions | |
void | destroyStream () |
Private Attributes | |
gpuStream_t | stream_ { nullptr } |
|
default |
Create wrapper for the default stream.
|
inline |
|
inlinenoexcept |
|
delete |
|
inlinestatic |
|
inlineprivate |
|
inlinestatic |
|
inlinestatic |
|
inline |
|
delete |
|
inlinenoexcept |
|
inline |
|
private |