RTC Toolkit  2.0.0
Public Member Functions | Protected Member Functions | List of all members
GpuLib Class Reference

#include <gpuLib.hpp>

Public Member Functions

 GpuLib (int input_length, int output_length, int gpu)
 
 ~GpuLib ()
 
void SetMatrix (float *mat, bool flip=true)
 
std::vector< float > GetMatrix ()
 
void ResetAvgSlopes ()
 
std::vector< float > GetAvgSlopes ()
 
std::vector< float > GetResults (bool download=false)
 
void NewSample (const float *sample, int callback_count)
 
void Compute ()
 
void InitReaderThread ()
 

Protected Member Functions

void SetGPU ()
 
void PrintCudaError (cudaError_t error)
 
std::string CublasGetStatusString (cublasStatus_t error)
 
void PrintCublasStatus (cublasStatus_t status)
 

Constructor & Destructor Documentation

◆ GpuLib()

GpuLib::GpuLib ( int  input_length,
int  output_length,
int  gpu 
)

◆ ~GpuLib()

GpuLib::~GpuLib ( )

Member Function Documentation

◆ Compute()

void GpuLib::Compute ( )

◆ CublasGetStatusString()

std::string GpuLib::CublasGetStatusString ( cublasStatus_t  error)
protected

◆ GetAvgSlopes()

std::vector<float> GpuLib::GetAvgSlopes ( )

◆ GetMatrix()

std::vector<float> GpuLib::GetMatrix ( )

◆ GetResults()

std::vector<float> GpuLib::GetResults ( bool  download = false)

◆ InitReaderThread()

void GpuLib::InitReaderThread ( )

◆ NewSample()

void GpuLib::NewSample ( const float *  sample,
int  callback_count 
)

◆ PrintCublasStatus()

void GpuLib::PrintCublasStatus ( cublasStatus_t  status)
protected

◆ PrintCudaError()

void GpuLib::PrintCudaError ( cudaError_t  error)
protected

◆ ResetAvgSlopes()

void GpuLib::ResetAvgSlopes ( )

◆ SetGPU()

void GpuLib::SetGPU ( )
protected

◆ SetMatrix()

void GpuLib::SetMatrix ( float *  mat,
bool  flip = true 
)

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