aboutsummaryrefslogtreecommitdiff
path: root/libjava
diff options
context:
space:
mode:
authorwaffl3x <waffl3x@baylibre.com>2025-04-15 14:34:38 -0600
committerwaffl3x <waffl3x@baylibre.com>2025-04-15 14:34:38 -0600
commit99835bd68e5360b0b3c8ad9c61ea23f70ad3dce6 (patch)
treee72264afc631210405aca8a1b773bfc1e8f34dd9 /libjava
parent5ed2fa4768f3d318b8ace5bd4a095596e06fad7b (diff)
downloadgcc-99835bd68e5360b0b3c8ad9c61ea23f70ad3dce6.zip
gcc-99835bd68e5360b0b3c8ad9c61ea23f70ad3dce6.tar.gz
gcc-99835bd68e5360b0b3c8ad9c61ea23f70ad3dce6.tar.bz2
OpenMP: omp.h omp::allocator C++ Allocator interface
The implementation of each allocator is simplified by inheriting from __detail::__allocator_templ. At the moment, none of the implementations diverge in any way, simply passing in the allocator handle to be used when an allocation is made. In the future, const_mem will need special handling added to it to support constant memory space. libgomp/ChangeLog: * omp.h.in: Add omp::allocator::* and ompx::allocator::* allocators. (__detail::__allocator_templ<T, omp_allocator_handle_t>): New struct template. (null_allocator<T>): New struct template. (default_mem<T>): Likewise. (large_cap_mem<T>): Likewise. (const_mem<T>): Likewise. (high_bw_mem<T>): Likewise. (low_lat_mem<T>): Likewise. (cgroup_mem<T>): Likewise. (pteam_mem<T>): Likewise. (thread_mem<T>): Likewise. (ompx::allocator::gnu_pinned_mem<T>): Likewise. * testsuite/libgomp.c++/allocator-1.C: New test. * testsuite/libgomp.c++/allocator-2.C: New test. Signed-off-by: waffl3x <waffl3x@baylibre.com>
Diffstat (limited to 'libjava')
0 files changed, 0 insertions, 0 deletions