[clang] [llvm] [openmp] [OpenMP][offload] Fix dynamic schedule tracking (PR #97065)
    Shilei Tian via cfe-commits 
    cfe-commits at lists.llvm.org
       
    Fri Jun 28 08:49:28 PDT 2024
    
    
  
================
@@ -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
    
    
More information about the cfe-commits
mailing list