]> git.ipfire.org Git - thirdparty/gcc.git/commit
libgomp: Simplify OpenMP reverse offload host <-> device memory copy implementation
authorThomas Schwinge <thomas@codesourcery.com>
Tue, 21 Mar 2023 15:14:16 +0000 (16:14 +0100)
committerThomas Schwinge <thomas@codesourcery.com>
Fri, 24 Mar 2023 15:40:22 +0000 (16:40 +0100)
commitc276fa0616eb79ddc4d0245e775a841e84cbb7dd
tree8df4bea545719399fb38c1d8c6950b13798e8aea
parent65037818987ffce7d6f466fa8bde13e9f59a3218
libgomp: Simplify OpenMP reverse offload host <-> device memory copy implementation

... by using the existing 'goacc_asyncqueue' instead of re-coding parts of it.

Follow-up to commit 131d18e928a3ea1ab2d3bf61aa92d68a8a254609
"libgomp/nvptx: Prepare for reverse-offload callback handling",
and commit ea4b23d9c82d9be3b982c3519fe5e8e9d833a6a8
"libgomp: Handle OpenMP's reverse offloads".

libgomp/
* target.c (gomp_target_rev): Instead of 'dev_to_host_cpy',
'host_to_dev_cpy', 'token', take a single 'goacc_asyncqueue'.
* libgomp.h (gomp_target_rev): Adjust.
* libgomp-plugin.c (GOMP_PLUGIN_target_rev): Adjust.
* libgomp-plugin.h (GOMP_PLUGIN_target_rev): Adjust.
* plugin/plugin-gcn.c (process_reverse_offload): Adjust.
* plugin/plugin-nvptx.c (rev_off_dev_to_host_cpy)
(rev_off_host_to_dev_cpy): Remove.
(GOMP_OFFLOAD_run): Adjust.
libgomp/ChangeLog.omp
libgomp/libgomp-plugin.c
libgomp/libgomp-plugin.h
libgomp/libgomp.h
libgomp/plugin/plugin-gcn.c
libgomp/plugin/plugin-nvptx.c
libgomp/target.c