Enable the use of ThreadPoolTaskGroup in MLIR threading helper to enable nested paral...
authorMehdi Amini <joker.eph@gmail.com>
Fri, 6 May 2022 19:38:49 +0000 (19:38 +0000)
committerMehdi Amini <joker.eph@gmail.com>
Fri, 6 May 2022 19:40:22 +0000 (19:40 +0000)
commit072e0aabbc457b8802dcf7b483e3acebfbde1c33
tree3849414324e9d14d56a8be4765ed85d3b122ef40
parentc5ea8d509cf87d6731f658acb1937d845a005f37
Enable the use of ThreadPoolTaskGroup in MLIR threading helper to enable nested parallelism

The LLVM ThreadPool recently got the addition of the concept of
ThreadPoolTaskGroup: this is a way to "partition" the threadpool
into a group of tasks and enable nested parallelism through this
grouping at every level of nesting.
We make use of this feature in MLIR threading abstraction to fix a long
lasting TODO and enable nested parallelism.

Reviewed By: rriddle

Differential Revision: https://reviews.llvm.org/D124902
mlir/include/mlir/IR/Threading.h