commit | 2a8b5a1912db3c5870458ffb4abf31cd50ce003a | [log] [tgz] |
---|---|---|
author | Johannes Doerfert <johannes@jdoerfert.de> | Sat Oct 16 14:39:55 2021 -0500 |
committer | Copybara-Service <copybara-worker@google.com> | Wed Oct 27 16:20:55 2021 -0700 |
tree | 3aed76e4e4adb20251f8c75eec8bc412fb0cdc2d | |
parent | 4e0c6a6d832d03be02f358b5f0f7377a18276897 [diff] |
[OpenMP][FIX] Query proper thread ID information to support nesting The OpenMP thread ID is not the hardware thread ID if we have nesting. We need to ask the runtime properly to ensure correct results. Note that the loop interface is going to change soon so we do not adjust it now but simply ignore the extra argument. Reviewed By: tianshilei1992 Differential Revision: https://reviews.llvm.org/D111950 GitOrigin-RevId: ef922c692fdb971497d79cc8fa6b9d221733db3d