]> git.ipfire.org Git - thirdparty/gcc.git/commit
Add changes to profiling interface from OG8 branch
authorKwok Cheung Yeung <kcy@codesourcery.com>
Fri, 21 Jun 2019 17:40:38 +0000 (10:40 -0700)
committerThomas Schwinge <thomas@codesourcery.com>
Tue, 3 Mar 2020 11:50:41 +0000 (12:50 +0100)
commit8a74f62e60ae8606878e1a70d4aff749d99b7723
tree908bd3c282856c8a6b40589ae87282c6a134a23a
parent9342531a7fc9f6e368e37bbd4ea9f4d01f43514e
Add changes to profiling interface from OG8 branch

This bundles up the parts of the profiling code from the OG8 branch that were
not included in the upstream patch.

libgomp/
* testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c: Update.

libgomp/
* oacc-init.c (get_property_any): Add profiling code.

libgomp/
* Makefile.am (libgomp_la_SOURCES): Add
oacc-profiling-acc_register_library.c.
* Makefile.in: Regenerate.
* libgomp.texi: Remove paragraph about acc_register_library.
* oacc-parallel.c (GOACC_parallel_keyed_internal): Set device_api for
profiling.
* oacc-profiling-acc_register_library.c: New file.
* oacc-profiling.c (goacc_profiling_initialize): Call
acc_register_library.  Avoid duplicate registration.
(acc_register_library): Remove.
* config/nvptx/oacc-profiling-acc_register_library.c:
New empty file.
* config/nvptx/oacc-profiling.c: Likewise.
* testsuite/libgomp.oacc-c-c++-common/acc_prof-dispatch-1.c: Remove
call to acc_register_library.
* testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c: Likewise.
* testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c: Likewise.
* testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c: Likewise.
* testsuite/libgomp.oacc-c-c++-common/acc_prof-valid_bytes-1.c:
Likewise.
* testsuite/libgomp.oacc-c-c++-common/acc_prof-version-1.c: Likewise.

(cherry picked from openacc-gcc-9-branch commit
b1321d52402d217793a27592e2959b07319df75b)
16 files changed:
libgomp/ChangeLog.omp
libgomp/Makefile.am
libgomp/Makefile.in
libgomp/config/nvptx/oacc-profiling-acc_register_library.c [new file with mode: 0644]
libgomp/config/nvptx/oacc-profiling.c [new file with mode: 0644]
libgomp/libgomp.texi
libgomp/oacc-init.c
libgomp/oacc-parallel.c
libgomp/oacc-profiling-acc_register_library.c [new file with mode: 0644]
libgomp/oacc-profiling.c
libgomp/testsuite/libgomp.oacc-c-c++-common/acc_prof-dispatch-1.c
libgomp/testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c
libgomp/testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c
libgomp/testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c
libgomp/testsuite/libgomp.oacc-c-c++-common/acc_prof-valid_bytes-1.c
libgomp/testsuite/libgomp.oacc-c-c++-common/acc_prof-version-1.c