I defined class like:
Then I defined pointers in main.cu
element e, dev_e;
cudaMalloc( (void)&(dev_e->A), ne * sizeof( int ) );
BUT I recievd from compiler:
“Warning: Cannot tell what pointer points to, assuming global memory space”
and also has memory segmentation fault in run time.
Please help me how I can allocate memory for an object containing a dynamic array…