I have an array I would like to initialize in __constant__
memory on the CUDA device. I don't know it's size or the values until runtime.
I know I can use __constant__ float Points[**N**][2]
or something like that, but how do I make this dynamic? Maybe in the form of __constant__ float* Points
?
Is this possible? And possibly more important, is this a good idea? If there are better alternatives to doing it like this I would love to hear them.