I want to allocate space in constant memory dynamically, so I use the following code:
/************************************************************/
constant int *p;
int v;
/* assign a value to v here /
cudaMalloc((void*)&p, sizeof(int) * v);
/************************************************************/
Is that right? External Image
Thanks.