[llvm] [OpenMP] Port the OpenMP device runtime to direct C++ compilation (PR #123673)

Joseph Huber via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 21 05:48:50 PST 2025


================
@@ -88,8 +86,7 @@ struct TeamStateTy {
   ParallelRegionFnTy ParallelRegionFnVar;
 };
 
-extern TeamStateTy TeamState;
-#pragma omp allocate(TeamState) allocator(omp_pteam_mem_alloc)
+extern TeamStateTy [[clang::address_space(3)]] TeamState;
----------------
jhuber6 wrote:

Eventually I'm going to port this to use `<gpuintrin.h>` while defined `__gpu_local` which is more descriptive. For now I can add a comment.

https://github.com/llvm/llvm-project/pull/123673


More information about the llvm-commits mailing list