[Mlir-commits] [llvm] [mlir] [flang][OpenMP] Support `target ... nowait` (PR #111823)

Michael Klemm llvmlistbot at llvm.org
Mon Oct 14 05:15:13 PDT 2024


================
@@ -6989,9 +6989,14 @@ OpenMPIRBuilder::InsertPointTy OpenMPIRBuilder::emitTargetTask(
         getOrCreateSrcLocStr(LocationDescription(Builder), SrcLocStrSize);
     Value *Ident = getOrCreateIdent(SrcLocStr, SrcLocStrSize);
 
-    // @__kmpc_omp_task_alloc
+    // @__kmpc_omp_task_alloc or @__kmpc_omp_target_task_alloc
+    //
+    // If `HasNoWait == true`, we call  @__kmpc_omp_target_task_alloc to provide
+    // the DeviceID to the deferred task.
----------------
mjklemm wrote:

OpenMP API says:

![image](https://github.com/user-attachments/assets/24d623d3-b8d6-4a4a-be22-e714b76fe501)

So, the `united` flag should be set when the target task is generated.

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


More information about the Mlir-commits mailing list