[Openmp-commits] [PATCH] D95816: [OpenMP] libomp: minor changes to improve library performance

Joachim Protze via Phabricator via Openmp-commits openmp-commits at lists.llvm.org
Mon Feb 8 13:34:22 PST 2021


protze.joachim added a comment.

>From my perspective, compiler support for final mergeable tasks would have a more significant impact for applications like kdtree. There is a broad misconception among OpenMP programmers what if(0) means/does.

The kdtree app could use `if(A) final(a) mergeable` in all cases which have `if(A)`. Unfortunately, no compiler provides sensible support for final mergeable tasks. Even just adding mergeable to the if does not avoid the task creation with current compilers. Avoiding task creation could cut down the runtime by more than 50%. Any recursive tasking application with serial cut-off could profit from sensible compiler support for mergeable.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D95816



More information about the Openmp-commits mailing list