waLBerla 7.2
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
walberla::gpu::StreamRAII Class Reference

Detailed Description

RAII wrapper for GPU streams.

#include <GPURAII.h>

Public Member Functions

 StreamRAII ()=default
 Create wrapper for the default stream.
 
 ~StreamRAII ()
 
 StreamRAII (StreamRAII &&other) noexcept
 
StreamRAIIoperator= (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 }
 

Constructor & Destructor Documentation

◆ StreamRAII() [1/3]

walberla::gpu::StreamRAII::StreamRAII ( )
default

Create wrapper for the default stream.

◆ ~StreamRAII()

walberla::gpu::StreamRAII::~StreamRAII ( )
inline

◆ StreamRAII() [2/3]

walberla::gpu::StreamRAII::StreamRAII ( StreamRAII && other)
inlinenoexcept

◆ StreamRAII() [3/3]

walberla::gpu::StreamRAII::StreamRAII ( const StreamRAII & )
delete

Member Function Documentation

◆ defaultStream()

static StreamRAII walberla::gpu::StreamRAII::defaultStream ( )
inlinestatic

◆ destroyStream()

void walberla::gpu::StreamRAII::destroyStream ( )
inlineprivate

◆ newPriorityStream()

static StreamRAII walberla::gpu::StreamRAII::newPriorityStream ( int priority)
inlinestatic

◆ newStream()

static StreamRAII walberla::gpu::StreamRAII::newStream ( )
inlinestatic

◆ operator gpuStream_t()

walberla::gpu::StreamRAII::operator gpuStream_t ( ) const
inline

◆ operator=() [1/2]

void walberla::gpu::StreamRAII::operator= ( const StreamRAII & )
delete

◆ operator=() [2/2]

StreamRAII & walberla::gpu::StreamRAII::operator= ( StreamRAII && other)
inlinenoexcept

◆ synchronize()

void walberla::gpu::StreamRAII::synchronize ( ) const
inline

Member Data Documentation

◆ stream_

gpuStream_t walberla::gpu::StreamRAII::stream_ { nullptr }
private

The documentation for this class was generated from the following file: