12#ifndef EXAMPLEGPULIB_H
13#define EXAMPLEGPULIB_H
20#include "cuda_runtime.h"
22#include "rtctk/exampleDataTask/CumulativeAverage_cuda.cuh"
26 GpuLib(
int input_length,
int output_length,
int gpu);
38 void NewSample(
const float* sample,
int callback_count);
59 cublasHandle_t handle;
66 float* m_slopes_vector;
67 float* m_slopes_vector_d;
71 float* m_avg_slopes_d;
74 float* m_slopes_to_modes_matrix;
75 float* m_slopes_to_modes_matrix_d;
78 float* m_modes_vector;
79 float* m_modes_vector_d;
std::string CublasGetStatusString(cublasStatus_t error)
void SetMatrix(float *mat, bool flip=true)
std::vector< float > GetResults(bool download=false)
std::vector< float > GetMatrix()
void NewSample(const float *sample, int callback_count)
std::vector< float > GetAvgSlopes()
void PrintCublasStatus(cublasStatus_t status)
GpuLib(int input_length, int output_length, int gpu)
void PrintCudaError(cudaError_t error)