[PATCH] D78075: [WIP][Clang][OpenMP] Added support for nowait target in CodeGen

Ye Luo via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Sep 14 15:51:53 PDT 2020


ye-luo added a comment.

> However, OpenMP task has a problem that it must be within
> to a parallel region; otherwise the task will be executed immediately. As a
> result, if we directly wrap to a regular task, the nowait target outside of a
> parallel region is still a synchronous version.

The spec says an implicit task can be generated by an implicit parallel region which can be the whole OpenMP program. For this reason, the need of explicit parallel region is a limitation of the llvm OpenMP runtime, right?

Can I have an option to run the nowait region as a regular task instead of an unshackled task? So I can use "parallel" and well established ways to control the thread affinity.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D78075/new/

https://reviews.llvm.org/D78075



More information about the cfe-commits mailing list