[Openmp-commits] [openmp] [OpenMP] Introduce KMP_TASK_STEALING to allow disabling task stealing. (PR #76891)

via Openmp-commits openmp-commits at lists.llvm.org
Fri Jan 5 01:17:06 PST 2024


jprotze wrote:

With target nowait you have no chance to move to Work-Sharing and will always create tasks. For data transfers you don't want the target task getting randomly scheduled to the other socket.

I strongly recommend to focus on OpenMP concepts to address the issue rather than introducing an implementation specific env variable.

I think, this is actually a great use case for the upcoming (6.0) thread-pool clause. I would prefer a prototype implementation of `thread-pool(thread|numa-domain|socket)` to address your issue. `thread` should limit task execution to the generating thread. `numa-domain` would limit to the thread in the team located on the same numa domain, similar for `socket`.

Your experiment results would highlight the need for such thread-pool groups.

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


More information about the Openmp-commits mailing list