================ @@ -34,6 +34,7 @@ inititializeRuntime(bool IsSPMD, KernelEnvironmentTy &KernelEnvironment, mapping::init(IsSPMD); state::init(IsSPMD, KernelEnvironment, KernelLaunchEnvironment); allocator::init(IsSPMD, KernelEnvironment); + __init_thread_dst(); ---------------- shiltian wrote:
Also, I think you can put this init into one of the init above, such as `state::init`, to save an explicit synchronization. https://github.com/llvm/llvm-project/pull/97065 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits