]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Attempt to not just register but allocate OpenMP pinned memory using a device: ChangeLog
authorThomas Schwinge <thomas@codesourcery.com>
Mon, 20 Feb 2023 14:00:48 +0000 (15:00 +0100)
committerThomas Schwinge <thomas@codesourcery.com>
Mon, 20 Feb 2023 14:00:48 +0000 (15:00 +0100)
... forgotten in og12 commit 4bd844f3e0202b3d083f0784f4343570c88bb86c
"Attempt to not just register but allocate OpenMP pinned memory using a device".

include/ChangeLog.omp
libgomp/ChangeLog.omp

index c8ef7a83c5826912a5850bd151624a8e654a9752..244d67e660824fc18b392e8671930f66714724bc 100644 (file)
@@ -1,3 +1,7 @@
+2023-02-20  Thomas Schwinge  <thomas@codesourcery.com>
+
+       * cuda/cuda.h (cuMemHostRegister, cuMemHostUnregister): Remove.
+
 2023-02-16  Thomas Schwinge  <thomas@codesourcery.com>
 
        * cuda/cuda.h (cuMemHostRegister, cuMemHostUnregister): New.
index 7e464566a2176b4e9adeabf462820c3ce9ff0ad4..c5a7860478e420b91c716af37fb7d10777e2873e 100644 (file)
@@ -1,3 +1,33 @@
+2023-02-20  Thomas Schwinge  <thomas@codesourcery.com>
+
+       * config/linux/allocator.c (linux_memspace_alloc): Add 'init0'
+       formal parameter.  Adjust all users.
+       (linux_memspace_alloc, linux_memspace_free): Attempt to allocate
+       OpenMP pinned memory using a device instead of 'mmap' plus
+       attempting to register using a device.
+       * libgomp-plugin.h (GOMP_OFFLOAD_register_page_locked)
+       (GOMP_OFFLOAD_unregister_page_locked): Remove.
+       (GOMP_OFFLOAD_page_locked_host_alloc)
+       (GOMP_OFFLOAD_page_locked_host_free): New.
+       * libgomp.h (gomp_register_page_locked)
+       (gomp_unregister_page_locked): Remove.
+       (gomp_page_locked_host_alloc, gomp_page_locked_host_free): New.
+       (struct gomp_device_descr): Remove 'register_page_locked_func',
+       'unregister_page_locked_func'.  Add 'page_locked_host_alloc_func',
+       'page_locked_host_free_func'.
+       * plugin/cuda-lib.def (cuMemHostRegister_v2, cuMemHostRegister)
+       (cuMemHostUnregister): Remove.
+       * plugin/plugin-nvptx.c (GOMP_OFFLOAD_register_page_locked)
+       (GOMP_OFFLOAD_unregister_page_locked): Remove.
+       (GOMP_OFFLOAD_page_locked_host_alloc)
+       (GOMP_OFFLOAD_page_locked_host_free): New.
+       * target.c (gomp_register_page_locked)
+       (gomp_unregister_page_locked): Remove.
+       (gomp_page_locked_host_alloc, gomp_page_locked_host_free): Add.
+       (gomp_load_plugin_for_device): Don't handle
+       'register_page_locked', 'unregister_page_locked'.  Handle
+       'page_locked_host_alloc', 'page_locked_host_free'.
+
 2023-02-16  Thomas Schwinge  <thomas@codesourcery.com>
 
        * config/linux/allocator.c (linux_memspace_alloc)