COMPASS  5.4.4
End-to-end AO simulation tool using GPU acceleration
CarmaStreams Class Reference

this class provides the stream features to CarmaObj More...

#include <carma_streams.h>

Collaboration diagram for CarmaStreams:

Public Member Functions

 CarmaStreams ()
 
 CarmaStreams (unsigned int nb_streams)
 
 ~CarmaStreams ()
 
cudaStream_t get_stream (int stream)
 
cudaEvent_t get_event (int stream)
 
cudaStream_t operator[] (int idx)
 
int get_nb_streams ()
 
int add_stream ()
 
int add_stream (int nb)
 
int del_stream ()
 
int del_stream (int nb)
 
int del_all_streams ()
 
int wait_event (int stream)
 
int wait_stream (int stream)
 
int wait_all_streams ()
 

Protected Attributes

std::vector< cudaStream_t > streams
 
std::vector< cudaEvent_t > events
 
int eventflags
 

Detailed Description

this class provides the stream features to CarmaObj

Author
COMPASS Team https://github.com/ANR-COMPASS
Version
5.4.4
Date
2022/01/24

Definition at line 24 of file carma_streams.h.

Constructor & Destructor Documentation

◆ CarmaStreams() [1/2]

CarmaStreams::CarmaStreams ( )

◆ CarmaStreams() [2/2]

CarmaStreams::CarmaStreams ( unsigned int  nb_streams)

◆ ~CarmaStreams()

CarmaStreams::~CarmaStreams ( )

Member Function Documentation

◆ add_stream() [1/2]

int CarmaStreams::add_stream ( )
Here is the caller graph for this function:

◆ add_stream() [2/2]

int CarmaStreams::add_stream ( int  nb)

◆ del_all_streams()

int CarmaStreams::del_all_streams ( )

◆ del_stream() [1/2]

int CarmaStreams::del_stream ( )
Here is the caller graph for this function:

◆ del_stream() [2/2]

int CarmaStreams::del_stream ( int  nb)

◆ get_event()

cudaEvent_t CarmaStreams::get_event ( int  stream)

◆ get_nb_streams()

int CarmaStreams::get_nb_streams ( )
Here is the caller graph for this function:

◆ get_stream()

cudaStream_t CarmaStreams::get_stream ( int  stream)
Here is the caller graph for this function:

◆ operator[]()

cudaStream_t CarmaStreams::operator[] ( int  idx)

Definition at line 38 of file carma_streams.h.

Here is the call graph for this function:

◆ wait_all_streams()

int CarmaStreams::wait_all_streams ( )
Here is the caller graph for this function:

◆ wait_event()

int CarmaStreams::wait_event ( int  stream)

◆ wait_stream()

int CarmaStreams::wait_stream ( int  stream)
Here is the caller graph for this function:

Member Data Documentation

◆ eventflags

int CarmaStreams::eventflags
protected

Definition at line 28 of file carma_streams.h.

◆ events

std::vector<cudaEvent_t> CarmaStreams::events
protected

Definition at line 27 of file carma_streams.h.

◆ streams

std::vector<cudaStream_t> CarmaStreams::streams
protected

Definition at line 26 of file carma_streams.h.


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