[llvm] [mlir] [flang][OpenMP] Support `target ... nowait` (PR #111823)
Michael Klemm via llvm-commits
llvm-commits at lists.llvm.org
Mon Oct 14 06:41:16 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:
Looking at the OpenMP runtime code, handling `untied` is in the runtime in the `__kmpc_omp_target_task_alloc` entry point.
https://github.com/llvm/llvm-project/pull/111823
More information about the llvm-commits
mailing list