diff options
author | Tobias Burnus <tobias@codesourcery.com> | 2023-07-11 16:11:35 +0200 |
---|---|---|
committer | Tobias Burnus <tobias@codesourcery.com> | 2023-07-11 16:11:35 +0200 |
commit | 8c2fc744a25ec423ab1a317bf4e7d24315c40024 (patch) | |
tree | bbe8d7fad2d7af8c23e8b37e4918a27fd647d2c7 /libgomp/allocator.c | |
parent | b76d71564925abcabe6f5ad61d904b23c682cdfb (diff) | |
download | gcc-8c2fc744a25ec423ab1a317bf4e7d24315c40024.zip gcc-8c2fc744a25ec423ab1a317bf4e7d24315c40024.tar.gz gcc-8c2fc744a25ec423ab1a317bf4e7d24315c40024.tar.bz2 |
libgomp: Update OpenMP memory allocation doc, fix omp_high_bw_mem_space
libgomp/
* allocator.c (omp_init_allocator): Use malloc for
omp_high_bw_mem_space when the memkind lib is unavailable
instead of returning omp_null_allocator.
* libgomp.texi (OpenMP 5.0): Fix typo.
(Memory allocation with libmemkind): Document implementation
in more detail.
Diffstat (limited to 'libgomp/allocator.c')
-rw-r--r-- | libgomp/allocator.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libgomp/allocator.c b/libgomp/allocator.c index c49931c..25c0f15 100644 --- a/libgomp/allocator.c +++ b/libgomp/allocator.c @@ -301,7 +301,7 @@ omp_init_allocator (omp_memspace_handle_t memspace, int ntraits, break; } #endif - return omp_null_allocator; + break; case omp_large_cap_mem_space: #ifdef LIBGOMP_USE_MEMKIND memkind_data = gomp_get_memkind (); |