I am having the same problem, though in a slightly different context. Inside a global function I declare an automatic pointer to a structure (MyStruct *sptr). This pointer will have a different value in each thread. One of the members of this structure is a pointer to an array. Every time I reference this array (sptr->vec[i]) the compiler warns me that it does not know which memory vec resides in. It assumes global, which is correct, but I still hate the warnings. I’ve tried everything I can think of to get rid of this warning. Anyone know how?
I don’t have an answer either… but last year I did spend over an hour trying different options and tricks when Toolkit 2.3 came out.
I agree, when I build my source, I get a clean compile except for a PAGE of the warnings, and I always worry I missed some new (significant) warning stuck in the middle of the output.
Maybe it’s time for a new “CUDA 3.2 toolkit wishlist” thread.