struct d_struct {
// stuff
};
__device__ __constant__ d_struct structs[SIZE];
When I call cudaMemcpyToSymbol("structs", &h_struct, sizeof(d_struct), index * sizeof(d_struct), cudaMemcpyHostToDevice) on a d_struct "h_struct" in host memory, I get an "invalid device symbol" cuda error.