Hi,
Can someone please explain how to allocate dynamic arrays in constant memory? I am able to use cudaMemcpyToSymbol on a pre-defined array
size, but what if I want to copy X floats to constant memory array, where X is determined in runtime, and I know it will be < 10K.
This is how I copy static size array:
#define CONST_KERNEL_PARAMS 14
constant int constKernelParams[ CONST_KERNEL_PARAMS ];
…
cudaMemcpyToSymbol( constKernelParams, &constHostKernelParams[0], CONST_KERNEL_PARAMS * sizeof( int ), 0 );
Thanks in advance
eyal