13#ifndef EXAMPLEGPULIB_H
14#define EXAMPLEGPULIB_H
21#include "cuda_runtime.h"
23#include "rtctk/exampleDataTask/CumulativeAverage_cuda.cuh"
27 GpuLib(
int input_length,
int output_length,
int gpu);
39 void NewSample(
const float* sample,
int callback_count);
58 cublasHandle_t handle;
65 float* m_slopes_vector;
66 float* m_slopes_vector_d;
70 float* m_avg_slopes_d;
73 float* m_slopes_to_modes_matrix;
74 float* m_slopes_to_modes_matrix_d;
77 float* m_modes_vector;
78 float* m_modes_vector_d;
Definition: gpuLib.hpp:25
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)