COMPASS  5.0.0
End-to-end AO simulation tool using GPU acceleration
SutraTelemetry Class Reference

this class provides the telemetry features to COMPASS More...

#include <sutra_telemetry.h>

Collaboration diagram for SutraTelemetry:

Public Member Functions

 SutraTelemetry ()
 
 SutraTelemetry (type_telemetry_pair obj, CarmaHostObj< float > *host_obj, unsigned int nb_streams)
 
 SutraTelemetry (std::string type_obj, int num_obj, CarmaHostObj< float > *host_obj, unsigned int nb_streams)
 
 ~SutraTelemetry ()
 
int get_nb_streams ()
 
int add_stream ()
 
int add_stream (int nb)
 
int del_stream ()
 
int del_stream (int nb)
 
int del_all_streams ()
 
cudaStream_t get_cuda_stream (int stream)
 
int get_nbObjs ()
 
int add_obj (type_telemetry_pair obj, CarmaHostObj< float > *host_obj)
 
int add_obj (std::string type_obj, int num_obj, CarmaHostObj< float > *host_obj)
 
int del_obj (type_telemetry_pair obj)
 
int del_obj (std::string type_obj, int num_obj)
 
int del_all_objs ()
 
CarmaHostObj< float > * get_CarmaHostObj (type_telemetry_pair obj)
 
CarmaHostObj< float > * get_CarmaHostObj (std::string type_obj, int num_obj)
 
int cpy_obj (std::string type_obj, int num_obj, CarmaObj< float > *d_obj, cudaMemcpyKind flag)
 
int wait_obj (std::string type_obj, int num_obj)
 
int wait_stream (int stream)
 
int wait_all_streams ()
 
int fill_from (std::string type_obj, int num_obj, float *data)
 
int fill_into (std::string type_obj, int num_obj, float *data)
 

Protected Attributes

CarmaStreamsstreams
 
std::map< type_telemetry_pair, CarmaHostObj< float > * > objs
 

Detailed Description

this class provides the telemetry features to COMPASS

Author
COMPASS Team https://github.com/ANR-COMPASS
Version
5.0.0
Date
2011/01/28

Definition at line 53 of file sutra_telemetry.h.

Constructor & Destructor Documentation

◆ SutraTelemetry() [1/3]

SutraTelemetry::SutraTelemetry ( )

◆ SutraTelemetry() [2/3]

SutraTelemetry::SutraTelemetry ( type_telemetry_pair  obj,
CarmaHostObj< float > *  host_obj,
unsigned int  nb_streams 
)

◆ SutraTelemetry() [3/3]

SutraTelemetry::SutraTelemetry ( std::string  type_obj,
int  num_obj,
CarmaHostObj< float > *  host_obj,
unsigned int  nb_streams 
)

◆ ~SutraTelemetry()

SutraTelemetry::~SutraTelemetry ( )

Member Function Documentation

◆ add_obj() [1/2]

int SutraTelemetry::add_obj ( std::string  type_obj,
int  num_obj,
CarmaHostObj< float > *  host_obj 
)

◆ add_obj() [2/2]

int SutraTelemetry::add_obj ( type_telemetry_pair  obj,
CarmaHostObj< float > *  host_obj 
)

◆ add_stream() [1/2]

int SutraTelemetry::add_stream ( )

◆ add_stream() [2/2]

int SutraTelemetry::add_stream ( int  nb)

◆ cpy_obj()

int SutraTelemetry::cpy_obj ( std::string  type_obj,
int  num_obj,
CarmaObj< float > *  d_obj,
cudaMemcpyKind  flag 
)

◆ del_all_objs()

int SutraTelemetry::del_all_objs ( )

◆ del_all_streams()

int SutraTelemetry::del_all_streams ( )

◆ del_obj() [1/2]

int SutraTelemetry::del_obj ( std::string  type_obj,
int  num_obj 
)

◆ del_obj() [2/2]

int SutraTelemetry::del_obj ( type_telemetry_pair  obj)

◆ del_stream() [1/2]

int SutraTelemetry::del_stream ( )

◆ del_stream() [2/2]

int SutraTelemetry::del_stream ( int  nb)

◆ fill_from()

int SutraTelemetry::fill_from ( std::string  type_obj,
int  num_obj,
float *  data 
)

◆ fill_into()

int SutraTelemetry::fill_into ( std::string  type_obj,
int  num_obj,
float *  data 
)

◆ get_CarmaHostObj() [1/2]

CarmaHostObj<float>* SutraTelemetry::get_CarmaHostObj ( std::string  type_obj,
int  num_obj 
)

◆ get_CarmaHostObj() [2/2]

CarmaHostObj<float>* SutraTelemetry::get_CarmaHostObj ( type_telemetry_pair  obj)

◆ get_cuda_stream()

cudaStream_t SutraTelemetry::get_cuda_stream ( int  stream)

◆ get_nb_streams()

int SutraTelemetry::get_nb_streams ( )

◆ get_nbObjs()

int SutraTelemetry::get_nbObjs ( )

◆ wait_all_streams()

int SutraTelemetry::wait_all_streams ( )

Memory transfer

◆ wait_obj()

int SutraTelemetry::wait_obj ( std::string  type_obj,
int  num_obj 
)

◆ wait_stream()

int SutraTelemetry::wait_stream ( int  stream)

Member Data Documentation

◆ objs

std::map<type_telemetry_pair, CarmaHostObj<float> *> SutraTelemetry::objs
protected

Definition at line 56 of file sutra_telemetry.h.

◆ streams

CarmaStreams* SutraTelemetry::streams
protected

Definition at line 55 of file sutra_telemetry.h.


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