]> git.ipfire.org Git - thirdparty/gcc.git/commit
OpenMP: Support accelerated 2D/3D memory copies for AMD GCN
authorJulian Brown <julian@codesourcery.com>
Thu, 4 Jan 2024 16:44:18 +0000 (16:44 +0000)
committerJulian Brown <julian@codesourcery.com>
Mon, 8 Jan 2024 17:56:17 +0000 (17:56 +0000)
commita17299c17afeb92a56ef716d2d6380c8538493c4
treee94610ad465ec1c1362929d1646b452bcb27d021
parent0056458550ba6df0a339589736729be8b886790a
OpenMP: Support accelerated 2D/3D memory copies for AMD GCN

This patch adds support for 2D/3D memory copies for omp_target_memcpy_rect
using AMD extensions to the HSA API.  This is just the AMD GCN-specific
part of the following patch:

  https://gcc.gnu.org/pipermail/gcc-patches/2023-September/631001.html

2024-01-04  Julian Brown  <julian@codesourcery.com>

libgomp/
* plugin/plugin-gcn.c (hsa_runtime_fn_info): Add
hsa_amd_memory_lock_fn, hsa_amd_memory_unlock_fn,
hsa_amd_memory_async_copy_rect_fn function pointers.
(init_hsa_runtime_functions): Add above functions, with
DLSYM_OPT_FN.
(GOMP_OFFLOAD_memcpy2d, GOMP_OFFLOAD_memcpy3d): New functions.
libgomp/plugin/plugin-gcn.c