walberla::gpu::ParallelSection Class Reference

#include <ParallelStreams.h>

Public Member Functions

 ~ParallelSection ()
 
void run (const std::function< void(gpuStream_t)> &f)
 
gpuStream_t stream ()
 
void next ()
 

Private Member Functions

 ParallelSection (ParallelStreams *parent, gpuStream_t mainStream)
 
void synchronize ()
 

Private Attributes

ParallelStreamsparent_
 
gpuStream_t mainStream_
 
gpuEvent_t startEvent_
 
uint_t counter_
 

Friends

class ParallelStreams
 

Constructor & Destructor Documentation

◆ ~ParallelSection()

walberla::gpu::ParallelSection::~ParallelSection ( )

◆ ParallelSection()

walberla::gpu::ParallelSection::ParallelSection ( ParallelStreams parent,
gpuStream_t  mainStream 
)
private

Member Function Documentation

◆ next()

void walberla::gpu::ParallelSection::next ( )

◆ run()

void walberla::gpu::ParallelSection::run ( const std::function< void(gpuStream_t)> &  f)

◆ stream()

gpuStream_t walberla::gpu::ParallelSection::stream ( )

◆ synchronize()

void walberla::gpu::ParallelSection::synchronize ( )
private

Friends And Related Function Documentation

◆ ParallelStreams

friend class ParallelStreams
friend

Member Data Documentation

◆ counter_

uint_t walberla::gpu::ParallelSection::counter_
private

◆ mainStream_

gpuStream_t walberla::gpu::ParallelSection::mainStream_
private

◆ parent_

ParallelStreams* walberla::gpu::ParallelSection::parent_
private

◆ startEvent_

gpuEvent_t walberla::gpu::ParallelSection::startEvent_
private

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