yxsamliu wrote: I think this is safe since changing a const device var in host code is UB. I tried nvcc and found that host changing const device var won't affect device side since it is already folded on device side.
https://github.com/llvm/llvm-project/pull/182157 _______________________________________________ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
