================
@@ -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
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to