19 #include <cuda_runtime_api.h> 20 #include <cuda_runtime.h> 21 #include <cublas_v2.h> 22 #include <device_types.h> 103 pthread_t *threadarray;
105 cudaStream_t *stream;
106 cublasHandle_t *handle;
109 uint_fast32_t *Nsize;
110 uint_fast32_t *Noffset;
114 int_fast8_t orientation;
182 void matrixMulCPU(
float *cMat,
float *wfsVec,
float *dmVec,
int M,
int N);
185 void *compute_function(
void *ptr);
188 int GPUloadCmat(
int index);
193 int GPU_loop_MultMat_setup(
195 const char *IDcontrM_name,
196 const char *IDwfsim_name,
197 const char *IDoutdmmodes_name,
207 int GPU_loop_MultMat_execute(
210 int_fast8_t *GPUstatus,
218 int GPU_loop_MultMat_free(
int index);
235 long CUDACOMP_MatMatMult_testPseudoInverse(
236 const char *IDmatA_name,
237 const char *IDmatAinv_name,
238 const char *IDmatOut_name
246 int CUDACOMP_magma_compute_SVDpseudoInverse_SVD(
247 const char *ID_Rmatrix_name,
248 const char *ID_Cmatrix_name,
251 const char *ID_VTmatrix_name
275 int CUDACOMP_magma_compute_SVDpseudoInverse(
276 const char *ID_Rmatrix_name,
277 const char *ID_Cmatrix_name,
280 const char *ID_VTmatrix_name,
290 int GPU_SVD_computeControlMatrix(
292 const char *ID_Rmatrix_name,
293 const char *ID_Cmatrix_name,
295 const char *ID_VTmatrix_name
314 int CUDACOMP_Coeff2Map_Loop(
const char *IDmodes_name,
const char *IDcoeff_name,
315 int GPUindex,
const char *IDoutmap_name,
int offsetmode,
316 const char *IDoffset_name);
319 errno_t CUDACOMP_MVMextractModesLoop_FPCONF();
320 errno_t CUDACOMP_MVMextractModesLoop_RUN();
347 int CUDACOMP_MVMextractModesLoop(
348 const char *in_stream,
349 const char *intot_stream,
350 const char *IDmodes_name,
351 const char *IDrefin_name,
352 const char *IDrefout_name,
353 const char *IDmodes_val_name,
errno_t GPUcomp_test(long NBact, long NBmodes, long WFSsize, long GPUcnt)
long imageID
Definition: CLIcore.h:54
void __attribute__((constructor)) libinit_cudacomp()
Initialize module.
Definition: ImageStreamIO.c:77
int CUDACOMP_init()
Initialize cudacomp module and command line interface.
int CUDACOMP_printGPUMATMULTCONF(int index)