I try to pass struct array to constant memory, but I have same problems. First of all, my struct is:
#define point_size 1024 struct Point { short x; short y; Point (short xx, short yy){ x = xx; y = yy; } Point (){ x = 0; y = 0; } }; When i use following declaration, I get a compile error: can't generate code for non empty constructors or destructors on device
__constant__ Point points_once[point_size]; The weird side of this when I use the follwing declaration, it's gone. But, it is not valid for me.
__constant__ Point *points_once[point_size]; How can I solve this problem. Thank for your help. I use latest driver and Visual Studio 2010 with compute_30 and sm_30 configuration.
__host__ __device__ Point (){ x = 0; y = 0; }