]> 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)
committerKwok Cheung Yeung <kcy@codesourcery.com>
Tue, 21 Jun 2022 13:11:16 +0000 (14:11 +0100)
commit833ff20bf8dbc6adeb57d1b5490f0426f2463a3e
treeb6420a8637359fc205d95dfef51c09842c996e8d
parent9f7117014813a510d529583f03c9da48be1a0ae1
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.
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