[Openmp-commits] [PATCH] D102107: [OpenMP] Codegen aggregate for outlined function captures
Shilei Tian via Phabricator via Openmp-commits
openmp-commits at lists.llvm.org
Sun Jul 18 13:31:09 PDT 2021
tianshilei1992 added a comment.
This patch causes wrong arguments in nested parallel regions. `openmp/libomptarget/test/offloading/bug49779.cpp` fails and after reverting this patch, it passed. You can easily find out the wrong pointer with a tiny change of the test case:
void work(int *C) {
printf("work: &C = %p\n", C);
#pragma omp atomic
++(*C);
}
void use(int *C) {
printf("use: &C = %p\n", C);
#pragma omp parallel num_threads(2)
work(C);
}
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D102107/new/
https://reviews.llvm.org/D102107
More information about the Openmp-commits
mailing list