diff options
author | Jonathan Peyton <jonathan.l.peyton@intel.com> | 2019-04-08 17:59:28 +0000 |
---|---|---|
committer | Jonathan Peyton <jonathan.l.peyton@intel.com> | 2019-04-08 17:59:28 +0000 |
commit | e45eef02bb6a66537ff57156853688138a2403b7 (patch) | |
tree | cd730286d6727c04ec18ae81098f117ef19a78dc /runtime/tools | |
parent | 258655da087c5d0e59f0525aef2bf6c097c7965f (diff) |
[OpenMP] Implement 5.0 memory management
* Replace HBWMALLOC API with more general MEMKIND API, new functions
and variables added.
* Have libmemkind.so loaded when accessible.
* Redirect memspaces to default one except for high bandwidth which
is processed separately.
* Ignore some allocator traits e.g., sync_hint, access, pinned, while
others are processed normally e.g., alignment, pool_size, fallback,
fb_data, partition.
* Add tests for memory management
Patch by Andrey Churbanov
Differential Revision: https://reviews.llvm.org/D59783
git-svn-id: https://llvm.org/svn/llvm-project/openmp/trunk@357929 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'runtime/tools')
-rwxr-xr-x | runtime/tools/generate-def.pl | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/runtime/tools/generate-def.pl b/runtime/tools/generate-def.pl index 382e56e..754243c 100755 --- a/runtime/tools/generate-def.pl +++ b/runtime/tools/generate-def.pl @@ -108,7 +108,8 @@ sub process(\%) { foreach my $entry ( keys( %$entries ) ) { if ( not $entries->{ $entry }->{ obsolete } ) { my $ordinal = $entries->{ $entry }->{ ordinal }; - if ( $entry =~ m{\A[ok]mp_} ) { + # omp_alloc and omp_free are C/C++ only functions, skip "1000+ordinal" for them + if ( $entry =~ m{\A[ok]mp_} and $entry ne "omp_alloc" and $entry ne "omp_free" ) { if ( not defined( $ordinal ) ) { runtime_error( "Bad entry \"$entry\": ordinal number is not specified." |