i have a structure like this:
typedef struct image_s
{
int width;
int height;
int stride;
float *data;
} image_t;
and i have a function which looks like :
void solver(image_t *du, image_t *dv, const image_t *a11, const image_t *a12)
{
… }
and i have pointers defined:
*du_ptr = du->data, *dv_ptr = dv->data,
*a11_ptr = a11->data, *a12_ptr = a12->data.
Now i want to increment my pointers, and after incrementing i want to execute this function(solver) in GPU.
but i am not able to pass the structures. Can somebody help me