![]() |
COMPASS
5.4.4
End-to-end AO simulation tool using GPU acceleration
|
#include <carma_utils.h>
#include <sutra_kl.h>
#include <sutra_phase.h>
#include <sutra_utils.h>
#include <map>
#include <cuda.h>
Go to the source code of this file.
Classes | |
class | SutraDm |
this class provides the dm features to COMPASS More... | |
class | SutraDms |
Macros | |
#define | CHEAT_CODE |
#define | BLOCKSIZE 512 |
#define | CEIL(a, b) ((a) + (b)-1) / (b) |
#define | MAXSPOT 16 |
#define | PIXELPERBLOCK 10 |
Functions | |
template<class T > | |
void | comp_dmshape (int threads, int blocks, T *d_idata, T *d_odata, int *pos, int *istart, int *npts, T *comm, unsigned int n, int N) |
template<class T > | |
void | comp_dmshape2 (T *outData, const T *cmdVector, const T *influData, const int *iStart_t, const int *iPos, const int roiLength, const dim3 threads, const dim3 blocks, const int shared) |
template<class T > | |
void | oneactu (int threads, int blocks, T *d_idata, T *d_odata, int nactu, T ampli, int *xoff, int *yoff, int dim_im, int dim_influ, int N) |
template<class T > | |
void | oneactu (int threads, int blocks, T *d_idata, T *d_odata, int nactu, T ampli, int dim_im, int dim_influ, int N) |
template<class T > | |
void | comp_fulldmshape (int threads, int blocks, T *d_idata, T *d_odata, int nactus, int diminflu, T *comm, int N) |
template<class T > | |
int | getIF (T *IF, float *dmshape, int *indx_pup, long nb_pts, int column, long nb_col, int puponly, CarmaDevice *device) |
int | dm_dostatmat (float *d_statcov, long Nkl, float *d_xpos, float *d_ypos, float norm, CarmaDevice *device) |
int | fill_filtermat (float *filter, int nactu, int N, CarmaDevice *device) |
int | find_nnz (float *d_data, int N, CarmaDevice *device) |
int | convertToCom (uint16_t *volts, float *com, int N, float volt_min, float volt_max, uint16_t val_max, CarmaDevice *device) |
#define BLOCKSIZE 512 |
Definition at line 32 of file sutra_dm.h.
#define CEIL | ( | a, | |
b | |||
) | ((a) + (b)-1) / (b) |
Definition at line 33 of file sutra_dm.h.
#define CHEAT_CODE |
Definition at line 28 of file sutra_dm.h.
#define MAXSPOT 16 |
Definition at line 34 of file sutra_dm.h.
#define PIXELPERBLOCK 10 |
Definition at line 35 of file sutra_dm.h.
void comp_dmshape | ( | int | threads, |
int | blocks, | ||
T * | d_idata, | ||
T * | d_odata, | ||
int * | pos, | ||
int * | istart, | ||
int * | npts, | ||
T * | comm, | ||
unsigned int | n, | ||
int | N | ||
) |
void comp_dmshape2 | ( | T * | outData, |
const T * | cmdVector, | ||
const T * | influData, | ||
const int * | iStart_t, | ||
const int * | iPos, | ||
const int | roiLength, | ||
const dim3 | threads, | ||
const dim3 | blocks, | ||
const int | shared | ||
) |
void comp_fulldmshape | ( | int | threads, |
int | blocks, | ||
T * | d_idata, | ||
T * | d_odata, | ||
int | nactus, | ||
int | diminflu, | ||
T * | comm, | ||
int | N | ||
) |
int convertToCom | ( | uint16_t * | volts, |
float * | com, | ||
int | N, | ||
float | volt_min, | ||
float | volt_max, | ||
uint16_t | val_max, | ||
CarmaDevice * | device | ||
) |
int dm_dostatmat | ( | float * | d_statcov, |
long | Nkl, | ||
float * | d_xpos, | ||
float * | d_ypos, | ||
float | norm, | ||
CarmaDevice * | device | ||
) |
int fill_filtermat | ( | float * | filter, |
int | nactu, | ||
int | N, | ||
CarmaDevice * | device | ||
) |
int find_nnz | ( | float * | d_data, |
int | N, | ||
CarmaDevice * | device | ||
) |
int getIF | ( | T * | IF, |
float * | dmshape, | ||
int * | indx_pup, | ||
long | nb_pts, | ||
int | column, | ||
long | nb_col, | ||
int | puponly, | ||
CarmaDevice * | device | ||
) |
void oneactu | ( | int | threads, |
int | blocks, | ||
T * | d_idata, | ||
T * | d_odata, | ||
int | nactu, | ||
T | ampli, | ||
int * | xoff, | ||
int * | yoff, | ||
int | dim_im, | ||
int | dim_influ, | ||
int | N | ||
) |
void oneactu | ( | int | threads, |
int | blocks, | ||
T * | d_idata, | ||
T * | d_odata, | ||
int | nactu, | ||
T | ampli, | ||
int | dim_im, | ||
int | dim_influ, | ||
int | N | ||
) |