[Patch] Add OpenACC 2.6's no_create
Thomas Schwinge
thomas@codesourcery.com
Wed Nov 6 12:43:00 GMT 2019
Hi Tobias!
On 2019-11-06T00:47:05+0100, I wrote:
> --- a/libgomp/testsuite/libgomp.oacc-fortran/common-block-2.f90
> +++ b/libgomp/testsuite/libgomp.oacc-fortran/common-block-2.f90
> @@ -76,7 +76,9 @@ program main
>
> !$acc enter data create(b)
>
> - !$acc parallel loop pcopy(b)
> + !$acc parallel loop &
> + !$acc no_create(b) ! ... here means 'present(b)'.
> + !TODO But we get: "libgomp: cuStreamSynchronize error: an illegal memory access was encountered".
> do i = 1, n
> b(i) = i
> end do
Either I'm completely confused -- always possible ;-) -- or there's
something wrong; see the two attached test cases, not actually related to
Fortran common blocks at all. If such a basic usage of the 'no_create'
clause doesn't work...? So, again..., seems that my suspicion was right
that this patch doesn't have sufficient test coverage at all. Or, I'm
completely confused -- we still have that option, too. ;-\
Grüße
Thomas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-libgomp.oacc-c-c-common-common-block-2_.c-libgomp.oa.patch
Type: text/x-diff
Size: 2221 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20191106/3e0ecfb4/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 658 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20191106/3e0ecfb4/attachment.sig>
More information about the Gcc-patches
mailing list