[Openmp-commits] [PATCH] D20733: Avoid deadlock with COI
Jonathan Peyton via Openmp-commits
openmp-commits at lists.llvm.org
Fri May 27 08:48:16 PDT 2016
jlpeyton created this revision.
jlpeyton added reviewers: AndreyChurbanov, tlwilmar.
jlpeyton added a subscriber: openmp-commits.
jlpeyton set the repository for this revision to rL LLVM.
When an asynchronous offload task is completed, COI calls the runtime to queue a "destructor tasks". When the task deques are full, a dead-lock situation arises where the OpenMP threads are inside but cannot progress because the COI thread is stuck inside the runtime trying to find a slot in a deque.
This patch implements the solution where the task deques doubled in size when a task is being queued from a COI thread.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 11733 bytes
Desc: not available
More information about the Openmp-commits