Go to the documentation of this file.
12 #ifndef EXAMPLEGPULIB_H
13 #define EXAMPLEGPULIB_H
19 #include "cublas_v2.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);
57 cublasHandle_t handle;
64 float* m_slopes_vector;
65 float* m_slopes_vector_d;
69 float* m_avg_slopes_d;
72 float* m_slopes_to_modes_matrix;
73 float* m_slopes_to_modes_matrix_d;
76 float* m_modes_vector;
77 float* m_modes_vector_d;
80 #endif // EXAMPLEGPULIB_H
std::string CublasGetStatusString(cublasStatus_t error)
void PrintCudaError(cudaError_t error)
void SetMatrix(float *mat, bool flip=true)
mat
Definition: rtctkExampleDataTaskGenFitsData.py:12
void NewSample(const float *sample, int callback_count)
GpuLib(int input_length, int output_length, int gpu)
std::vector< float > GetResults(bool download=false)
std::vector< float > GetAvgSlopes()
Definition: gpuLib.hpp:24
void PrintCublasStatus(cublasStatus_t status)
std::vector< float > GetMatrix()