On Mon, May 30, 2016 at 10:38:59PM +0800, Chung-Lin Tang wrote: > Hi, a previous patch of Cesar's has made the middle-end omp-lowering > automatically create and insert a tofrom (i.e. present_or_copy) map for > parallel reductions. This allowed the user to not need explicit > clauses to copy out the reduction result, but because reduction arguments > are not marked addressable, async does not work as expected, > i.e. the asynchronous copy-out results are not used in the compiler generated > code.
If you need it only for async parallel/kernels? regions, can't you do that only for those and not for others? > This patch fixes this in the front-ends, I've tested this patch without > new regressions, and fixes some C++ OpenACC tests that regressed after > my last OpenACC async patch. Is this okay for trunk? Testcases in the testsuite or others? If the latter, we should add them. Jakub