JonChesterfield added reviewers: jdoerfert, hfinkel.
JonChesterfield added a comment.
Herald added a subscriber: dexonsmith.

I concede that making the variables external, and trying to give them unique 
names, does work around static variables not working. I believe static 
variables are subjected to more aggressive optimisation than external ones but 
the effect might not be significant.

This "works" in cuda today because the loader ignores the local annotation when 
accessing the variable. There is some probably unintended behaviour when 
multiple static variables have the same name in that the first one wins.

The corresponding change to the hsa loader is trivial. Why is making the 
symbols external, with the associated complexity in picking non-conflicting 
names, considered better than changing the loader?


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D85223/new/

https://reviews.llvm.org/D85223

_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to