[PATCH] D20039: [CUDA] Restrict init of local __shared__ variables to empty constructors only.

Justin Lebar via cfe-commits cfe-commits at lists.llvm.org
Mon May 9 14:57:48 PDT 2016


jlebar accepted this revision.
jlebar added a comment.
This revision is now accepted and ready to land.

Art makes the good point that any code which is broken by this change is itself currently racy at the very best.  And we have a way to fix any code which hits this new error (just manually initialize your shared variable using placement new from within thread 0).  So, lgtm.


http://reviews.llvm.org/D20039





More information about the cfe-commits mailing list