On 07/28/15 06:14, Thomas Schwinge wrote:
Hi Nathan!

On Sat, 25 Jul 2015 16:02:01 -0400, Nathan Sidwell <nat...@acm.org> wrote:
I've committed this to gomp4 branch.  It fixes some tests that were incorrect

Hmm, I fail to see what you deem incorrect in the following two Fortran
test cases?  Implicit present_or_copy clauses should be added by the
compiler, basically equal to your explicit present clauses.

and fail with some development I am working on.

Fail in what way?  I'd expect the original code still to be valid?


acc enter data creates a dynamic scope with no associated static scope. As such it is therefore not visible by a later acc parallel, even if both are in the same static scope. If a data object used within the parallel is not mentioned in a data clause on the parallel, the default behaviour of the parallel then occurs. That means we get another copy clause generated (not copy_or_present), which fails at runtime because the data is already present on the device.

This is different to if a data/end data pair were used.

nathan

--
Nathan Sidwell

Reply via email to