Go to the documentation of this file. 1 #ifndef EXAMPLEGPULIB_H
2 #define EXAMPLEGPULIB_H
8 #include "cuda_runtime.h"
11 #include "rtctk/exampleDataTask/CumulativeAverage_cuda.cuh"
30 void NewSample(
const float * sample,
int callback_count);
49 cublasHandle_t handle;
57 float *m_slopes_vector;
58 float *m_slopes_vector_d;
62 float * m_avg_slopes_d;
65 float * m_slopes_to_modes_matrix;
66 float * m_slopes_to_modes_matrix_d;
70 float * m_modes_vector;
71 float * m_modes_vector_d;
void PrintCudaError(cudaError_t error)
mat
Definition: rtctkExampleDataTaskGenFitsData.py:14
Definition: businessLogic.hpp:22
void NewSample(const float *sample, int callback_count)
std::vector< float > GetAvgSlopes()
std::vector< float > GetMatrix()
void SetMatrix(float *mat, bool flip=true)
std::string CublasGetStatusString(cublasStatus_t error)
exampleGpuLib(int input_length, int output_length, int gpu)
Definition: exampleGpuLib.hpp:15
std::vector< float > GetResults(bool download=false)
void PrintCublasStatus(cublasStatus_t status)
void SetAvgSlopes(std::vector< float > avg_array)
void error(const char *msg)
Definition: main.cpp:29