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);
60 cublasHandle_t handle;
67 float* m_slopes_vector;
68 float* m_slopes_vector_d;
72 float* m_avg_slopes_d;
75 float* m_slopes_to_modes_matrix;
76 float* m_slopes_to_modes_matrix_d;
79 float* m_modes_vector;
80 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)