]> git.ipfire.org Git - thirdparty/gcc.git/commit
Enable GOMP_MAP_FIRSTPRIVATE_INT for OpenACC
authorJulian Brown <julian@codesourcery.com>
Tue, 26 Feb 2019 23:10:21 +0000 (15:10 -0800)
committerKwok Cheung Yeung <kcy@codesourcery.com>
Tue, 21 Jun 2022 13:11:11 +0000 (14:11 +0100)
commitbfe3562fe9cdd1d2091c883d3c489d4b24a30353
tree3695be11bc8caadfd02161e5aaf56c50457a21ed
parent241ee1126178d74c85ff37df8ba72572c9e7d7ae
Enable GOMP_MAP_FIRSTPRIVATE_INT for OpenACC

2018-12-22  Cesar Philippidis  <cesar@codesourcery.com>
            Julian Brown  <julian@codesourcery.com>
            Tobias Burnus  <tobias@codesourcery.com>

gcc/
* omp-low.cc (maybe_lookup_field_in_outer_ctx): New function.
(convert_to_firstprivate_int): New function.
(convert_from_firstprivate_int): New function.
(lower_omp_target): Enable GOMP_MAP_FIRSTPRIVATE_INT in OpenACC.
Remove unused variable.

libgomp/
* oacc-parallel.c (GOACC_parallel_keyed): Handle
GOMP_MAP_FIRSTPRIVATE_INT host addresses.
* plugin/plugin-nvptx.c (nvptx_exec): Handle
GOMP_MAP_FIRSTPRIVATE_INT host addresses.
* testsuite/libgomp.oacc-c++/firstprivate-int.C: New test.
* testsuite/libgomp.oacc-c-c++-common/firstprivate-int.c: New
test.
* testsuite/libgomp.oacc-fortran/firstprivate-int.f90: New test.
gcc/ChangeLog.omp
gcc/omp-low.cc
libgomp/ChangeLog.omp
libgomp/testsuite/libgomp.oacc-c++/firstprivate-int.C [new file with mode: 0644]
libgomp/testsuite/libgomp.oacc-c-c++-common/firstprivate-int.c [new file with mode: 0644]
libgomp/testsuite/libgomp.oacc-fortran/firstprivate-int.f90 [new file with mode: 0644]