]> git.ipfire.org Git - thirdparty/gcc.git/commit
nvptx, libgomp: Move the low-latency allocator code
authorAndrew Stubbs <ams@codesourcery.com>
Tue, 13 Dec 2022 23:31:21 +0000 (23:31 +0000)
committerAndrew Stubbs <ams@codesourcery.com>
Thu, 16 Feb 2023 18:00:49 +0000 (18:00 +0000)
commit9583738a62a33a276b2aad980a27e77097f95924
treebded6a390f8c1dd5f483b4d36ce56d0079087da8
parent2e3327d635d261df923f60f7d21e47ff895cd2df
nvptx, libgomp: Move the low-latency allocator code

There shouldn't be a functionality change; this is just so AMD can share
the code.

The new basic-allocator.c is designed to be included so it can be used as a
template multiple times and inlined.

libgomp/ChangeLog:

* config/nvptx/allocator.c (BASIC_ALLOC_PREFIX): New define, and
include basic-allocator.c.
(__nvptx_lowlat_heap_root): Remove.
(heapdesc): Remove.
(nvptx_memspace_alloc): Move implementation to basic-allocator.c.
(nvptx_memspace_calloc): Likewise.
(nvptx_memspace_free): Likewise.
(nvptx_memspace_realloc): Likewise.
* config/nvptx/team.c (__nvptx_lowlat_heap_root): Remove.
(gomp_nvptx_main): Call __nvptx_lowlat_init.
* basic-allocator.c: New file.
libgomp/ChangeLog.omp
libgomp/basic-allocator.c [new file with mode: 0644]
libgomp/config/nvptx/allocator.c
libgomp/config/nvptx/team.c