diff options
author | Tobias Burnus <tobias@codesourcery.com> | 2023-06-15 12:55:58 +0200 |
---|---|---|
committer | Tobias Burnus <tobias@codesourcery.com> | 2023-06-15 12:55:58 +0200 |
commit | 73a0d3bf895b5c322676178a51ac0d68cf603953 (patch) | |
tree | 89ddc5fbb2ae3d1bfed659a3dd580de7e65fc8b6 /libcpp/files.cc | |
parent | a4df0ce78d6f1beee5d2ef53e2a1a9f3fc377100 (diff) | |
download | gcc-73a0d3bf895b5c322676178a51ac0d68cf603953.zip gcc-73a0d3bf895b5c322676178a51ac0d68cf603953.tar.gz gcc-73a0d3bf895b5c322676178a51ac0d68cf603953.tar.bz2 |
libgomp: Extend OMP_ALLOCATOR, add affinity env var doc
Support OpenMP 5.1's syntax for OMP_ALLOCATOR as well,
which permits besides predefined allocators also
predefined memspaces optionally followed by traits.
Additionally, this commit adds the previously lacking
documentation for OMP_ALLOCATOR, OMP_AFFINITY_FORMAT
and OMP_DISPLAY_AFFINITY.
libgomp/ChangeLog:
* env.c (gomp_def_allocator_envvar): New var.
(parse_allocator): Handle OpenMP 5.1 syntax.
(cleanup_env): New.
(omp_display_env): Output gomp_def_allocator_envvar
for an allocator with traits.
* libgomp.texi (OMP_ALLOCATOR, OMP_AFFINITY_FORMAT,
OMP_DISPLAY_AFFINITY): New.
* testsuite/libgomp.c/allocator-1.c: New test.
* testsuite/libgomp.c/allocator-2.c: New test.
* testsuite/libgomp.c/allocator-3.c: New test.
* testsuite/libgomp.c/allocator-4.c: New test.
* testsuite/libgomp.c/allocator-5.c: New test.
* testsuite/libgomp.c/allocator-6.c: New test.
Diffstat (limited to 'libcpp/files.cc')
0 files changed, 0 insertions, 0 deletions