If I have structures residing on the CPU defined as:
typedef struct info {
std::vector var1;
std::vector var2;
} INFO;
and
typedef struct newComplex {
float *realp;
float *imagp;
} NEWCOMPLX;
Is it possible to allocate memory for these structures and their contents on the GPU and copy to that device?
If so, could someone please provide an example?
Was able to do this for a simple structure containing just doubles and floats, but encountered problems when trying to use the std::vector .
I’m using CUDA ver 3.0 on a Linux system.