struct d_struct {
// stuff
};
__device__ __constant__ d_struct structs[SIZE];
Когда я звоню
cudaMemcpyToSymbol("structs", &h_struct, sizeof(d_struct), index * sizeof(d_struct), cudaMemcpyHostToDevice)
на d_struct "h_struct"
в памяти хоста, я получаю invalid device symbol
ошибку cuda.