[flang-commits] [flang] [flang][OpenMP] don't privatise loop index marked shared (PR #108176)
Kiran Chandramohan via flang-commits
flang-commits at lists.llvm.org
Wed Sep 11 04:31:53 PDT 2024
kiranchandramohan wrote:
Can you add a reference to the standard that allows this `shared` specification? I found the following on Page 99 of OpenMP 5.2 standard. Is that your understanding as well? Do we have tests for some of these cases?
```
Loop iteration variables of loops that are not associated with any OpenMP directive maybe listed in data-sharing attribute clauses on the surrounding teams, parallel or taskgenerating construct, and on enclosed constructs, subject to other restrictions.
```
Have you checked nested parallel cases? And also cases for loops that are associated with OpenMP constructs like `$omp do`?
https://github.com/llvm/llvm-project/pull/108176
More information about the flang-commits
mailing list