jlebar added a comment. What are we supposed to do if we encounter a static __shared__ variable in an HD function? Presumably that also should be an error if we invoke the HD function from the device? http://reviews.llvm.org/D20034