In my kernel function,I want to use the value in the vector and change the value. Here is my struct.
struct A
{
float a;
float b;
};
struct B
{
float c;
float d;
};
struct my
{
float q;
std::vector<B> ps;
A dimension;
};
How to pass the std::vector<my> mystruct into kernel function and change the ps value,dimension value and q value? I'm a newer in CUDA.