Can anyone give a tutorial on Constant memory? constant memory access

att, thanks!
This is sure to be widely welcomed.

Hi, I was also puzzled how to do things properly but ‘prkipfer’ clarified much of the story here:

http://forums.nvidia.com/index.php?showtop…98&#entry176898

It helped me a lot for sure.

Thanks very much, also to peter.

But how to use constant array that has a size later determined is still unclear.

like constant int* p;

malloc(p,…);

this can’t pass compile.

see my last post.

See the manual section 4.2.2.4 constant has implied static storage. You cannot use a dynamic sized array.

Peter

Thanks cool guy, what if we have something like “extern constant” in next version?

Thanks.