]> git.ipfire.org Git - thirdparty/gcc.git/commit
OpenACC: Add Fortran routines acc_{alloc,free,hostptr,deviceptr,memcpy_{to,from}_device*}
authorTobias Burnus <tburnus@baylibre.com>
Tue, 27 Feb 2024 16:30:38 +0000 (17:30 +0100)
committerTobias Burnus <tburnus@baylibre.com>
Tue, 27 Feb 2024 16:30:38 +0000 (17:30 +0100)
commit8b3f1edf9b38cb8a88c0a101a675d092bf6135d2
treee551c415280c8bd14e8effdc2be46fcd67d39c21
parent43ad6ce60108acc822efcd394b75e270c1996cb5
OpenACC: Add Fortran routines acc_{alloc,free,hostptr,deviceptr,memcpy_{to,from}_device*}

These routines map simply to the C counterpart and are meanwhile
defined in OpenACC 3.3. (There are additional routine changes,
including the Fortran addition of acc_attach/acc_detach, that
require more work than a simple addition of an interface and
are therefore excluded.)

libgomp/ChangeLog:

* libgomp.texi (OpenACC Runtime Library Routines): Document new 3.3
routines that simply map to their C counterpart.
* openacc.f90 (openacc): Add them.
* openacc_lib.h: Likewise.
* testsuite/libgomp.oacc-fortran/acc_host_device_ptr.f90: New test.
* testsuite/libgomp.oacc-fortran/acc-memcpy.f90: New test.
* testsuite/libgomp.oacc-fortran/acc-memcpy-2.f90: New test.
* testsuite/libgomp.oacc-c-c++-common/lib-59.c: Crossref to f90 test.
* testsuite/libgomp.oacc-c-c++-common/lib-60.c: Likewise.
* testsuite/libgomp.oacc-c-c++-common/lib-95.c: Likewise.
libgomp/libgomp.texi
libgomp/openacc.f90
libgomp/openacc_lib.h
libgomp/testsuite/libgomp.oacc-c-c++-common/lib-59.c
libgomp/testsuite/libgomp.oacc-c-c++-common/lib-60.c
libgomp/testsuite/libgomp.oacc-c-c++-common/lib-95.c
libgomp/testsuite/libgomp.oacc-fortran/acc-memcpy-2.f90 [new file with mode: 0644]
libgomp/testsuite/libgomp.oacc-fortran/acc-memcpy.f90 [new file with mode: 0644]
libgomp/testsuite/libgomp.oacc-fortran/acc_host_device_ptr.f90 [new file with mode: 0644]