[llvm] [OpenMP] Introduce the initial support for OpenMP kernel language (PR #66844)

Shilei Tian via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 27 14:38:39 PDT 2023


================
@@ -752,27 +751,41 @@ void CGOpenMPRuntimeGPU::emitNonSPMDKernel(const OMPExecutableDirective &D,
   EntryFunctionState EST;
   WrapperFunctionsMap.clear();
 
+  bool IsBareKernel = D.getSingleClause<OMPXBareClause>();
----------------
shiltian wrote:

So `target teams` is generic mode. Since we don't emit the kernel init/deinit, the kernel env will not be emitted as well. At runtime we will default to SPMD mode.
As discussed offline, we will need an extra mode, if we want, but no kernel env should work perfectly fine.

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


More information about the llvm-commits mailing list