1 2 3 4 5 6 7 8 9 10 11
extern __constant__ complexf cTest; int main() { ... complexf h_cii1(2.0, 2.0); cudaMemcpyToSymbol("cTest", &h_cii1, sizeof(complexf), size_t(0), cudaMemcpyHostToDevice); ... }