waLBerla 7.3
Loading...
Searching...
No Matches
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()

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

◆ destroyStream()

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

◆ newPriorityStream()

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

◆ newStream()

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:
  • /builds/administration/walberla-website/walberla/src/gpu/GPURAII.h