RTC Toolkit  0.1.0-alpha
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
rtctk::exampleDataTask::ComputationGpu< TopicType > Class Template Reference

#include <computationGpu.hpp>

Public Member Functions

 ComputationGpu (rtctk::componentFramework::RuntimeRepoApiIf &rtr, rtctk::componentFramework::OldbApiIf &oldb, std::string const &name)
 
 ~ComputationGpu ()
 
void StaticLoad ()
 
void DynamicLoad ()
 
void ThreadInit ()
 
void OnDataAvailable (TopicType const &sample)
 
void Reset ()
 
void Compute ()
 
bool isComputing ()
 

Protected Member Functions

void ResetComputation ()
 

Protected Attributes

rtctk::componentFramework::RuntimeRepoApiIfm_rtr
 
rtctk::componentFramework::OldbApiIfm_oldb
 
std::string m_name
 
DataPointPath m_dp_slopes
 
DataPointPath m_dp_modes
 
DataPointPath m_dp_iterations
 
DataPointPath m_dp_gpu
 
DataPointPath m_dp_s2m
 
DataPointPath m_dp_avg_slopes
 
DataPointPath m_dp_avg_modes
 
DataPointPath m_dp_stats_iteration
 
DataPointPath m_dp_stats_time
 
DataPointPath m_dp_stats_last_id
 
unsigned int m_sample_id
 
unsigned int m_iteration
 
std::atomic< unsigned int > m_callback_counter
 
std::atomic< bool > m_computation_running
 
std::unique_ptr< exampleGpuLibm_gpu_comp
 
int m_n_slopes
 
int m_n_modes
 
int m_n_iterations
 
int m_gpu
 
std::vector< float > m_avg_slopes
 
std::vector< float > m_avg_modes
 
MatrixBuffer< float > m_buffer_matrix
 
MatrixBuffer< float > m_s2m_matrix
 

Constructor & Destructor Documentation

◆ ComputationGpu()

template<class TopicType >
rtctk::exampleDataTask::ComputationGpu< TopicType >::ComputationGpu ( rtctk::componentFramework::RuntimeRepoApiIf rtr,
rtctk::componentFramework::OldbApiIf oldb,
std::string const &  name 
)
inline

◆ ~ComputationGpu()

template<class TopicType >
rtctk::exampleDataTask::ComputationGpu< TopicType >::~ComputationGpu ( )
inline

Member Function Documentation

◆ Compute()

template<class TopicType >
void rtctk::exampleDataTask::ComputationGpu< TopicType >::Compute ( )
inline

◆ DynamicLoad()

template<class TopicType >
void rtctk::exampleDataTask::ComputationGpu< TopicType >::DynamicLoad ( )
inline

◆ isComputing()

template<class TopicType >
bool rtctk::exampleDataTask::ComputationGpu< TopicType >::isComputing ( )
inline

◆ OnDataAvailable()

template<class TopicType >
void rtctk::exampleDataTask::ComputationGpu< TopicType >::OnDataAvailable ( TopicType const &  sample)
inline

◆ Reset()

template<class TopicType >
void rtctk::exampleDataTask::ComputationGpu< TopicType >::Reset ( )
inline

◆ ResetComputation()

template<class TopicType >
void rtctk::exampleDataTask::ComputationGpu< TopicType >::ResetComputation ( )
inlineprotected

◆ StaticLoad()

template<class TopicType >
void rtctk::exampleDataTask::ComputationGpu< TopicType >::StaticLoad ( )
inline

◆ ThreadInit()

template<class TopicType >
void rtctk::exampleDataTask::ComputationGpu< TopicType >::ThreadInit ( )
inline

Member Data Documentation

◆ m_avg_modes

template<class TopicType >
std::vector<float> rtctk::exampleDataTask::ComputationGpu< TopicType >::m_avg_modes
protected

◆ m_avg_slopes

template<class TopicType >
std::vector<float> rtctk::exampleDataTask::ComputationGpu< TopicType >::m_avg_slopes
protected

◆ m_buffer_matrix

template<class TopicType >
MatrixBuffer<float> rtctk::exampleDataTask::ComputationGpu< TopicType >::m_buffer_matrix
protected

◆ m_callback_counter

template<class TopicType >
std::atomic<unsigned int> rtctk::exampleDataTask::ComputationGpu< TopicType >::m_callback_counter
protected

◆ m_computation_running

template<class TopicType >
std::atomic<bool> rtctk::exampleDataTask::ComputationGpu< TopicType >::m_computation_running
protected

◆ m_dp_avg_modes

template<class TopicType >
DataPointPath rtctk::exampleDataTask::ComputationGpu< TopicType >::m_dp_avg_modes
protected

◆ m_dp_avg_slopes

template<class TopicType >
DataPointPath rtctk::exampleDataTask::ComputationGpu< TopicType >::m_dp_avg_slopes
protected

◆ m_dp_gpu

template<class TopicType >
DataPointPath rtctk::exampleDataTask::ComputationGpu< TopicType >::m_dp_gpu
protected

◆ m_dp_iterations

template<class TopicType >
DataPointPath rtctk::exampleDataTask::ComputationGpu< TopicType >::m_dp_iterations
protected

◆ m_dp_modes

template<class TopicType >
DataPointPath rtctk::exampleDataTask::ComputationGpu< TopicType >::m_dp_modes
protected

◆ m_dp_s2m

template<class TopicType >
DataPointPath rtctk::exampleDataTask::ComputationGpu< TopicType >::m_dp_s2m
protected

◆ m_dp_slopes

template<class TopicType >
DataPointPath rtctk::exampleDataTask::ComputationGpu< TopicType >::m_dp_slopes
protected

◆ m_dp_stats_iteration

template<class TopicType >
DataPointPath rtctk::exampleDataTask::ComputationGpu< TopicType >::m_dp_stats_iteration
protected

◆ m_dp_stats_last_id

template<class TopicType >
DataPointPath rtctk::exampleDataTask::ComputationGpu< TopicType >::m_dp_stats_last_id
protected

◆ m_dp_stats_time

template<class TopicType >
DataPointPath rtctk::exampleDataTask::ComputationGpu< TopicType >::m_dp_stats_time
protected

◆ m_gpu

template<class TopicType >
int rtctk::exampleDataTask::ComputationGpu< TopicType >::m_gpu
protected

◆ m_gpu_comp

template<class TopicType >
std::unique_ptr<exampleGpuLib> rtctk::exampleDataTask::ComputationGpu< TopicType >::m_gpu_comp
protected

◆ m_iteration

template<class TopicType >
unsigned int rtctk::exampleDataTask::ComputationGpu< TopicType >::m_iteration
protected

◆ m_n_iterations

template<class TopicType >
int rtctk::exampleDataTask::ComputationGpu< TopicType >::m_n_iterations
protected

◆ m_n_modes

template<class TopicType >
int rtctk::exampleDataTask::ComputationGpu< TopicType >::m_n_modes
protected

◆ m_n_slopes

template<class TopicType >
int rtctk::exampleDataTask::ComputationGpu< TopicType >::m_n_slopes
protected

◆ m_name

template<class TopicType >
std::string rtctk::exampleDataTask::ComputationGpu< TopicType >::m_name
protected

◆ m_oldb

template<class TopicType >
rtctk::componentFramework::OldbApiIf& rtctk::exampleDataTask::ComputationGpu< TopicType >::m_oldb
protected

◆ m_rtr

template<class TopicType >
rtctk::componentFramework::RuntimeRepoApiIf& rtctk::exampleDataTask::ComputationGpu< TopicType >::m_rtr
protected

◆ m_s2m_matrix

template<class TopicType >
MatrixBuffer<float> rtctk::exampleDataTask::ComputationGpu< TopicType >::m_s2m_matrix
protected

◆ m_sample_id

template<class TopicType >
unsigned int rtctk::exampleDataTask::ComputationGpu< TopicType >::m_sample_id
protected

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