]> git.ipfire.org Git - thirdparty/gcc.git/commit
libgomp: Extend OMP_ALLOCATOR, add affinity env var doc
authorTobias Burnus <tobias@codesourcery.com>
Thu, 15 Jun 2023 10:55:58 +0000 (12:55 +0200)
committerTobias Burnus <tobias@codesourcery.com>
Thu, 15 Jun 2023 10:55:58 +0000 (12:55 +0200)
commit73a0d3bf895b5c322676178a51ac0d68cf603953
tree89ddc5fbb2ae3d1bfed659a3dd580de7e65fc8b6
parenta4df0ce78d6f1beee5d2ef53e2a1a9f3fc377100
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.
libgomp/env.c
libgomp/libgomp.texi
libgomp/testsuite/libgomp.c/allocator-1.c [new file with mode: 0644]
libgomp/testsuite/libgomp.c/allocator-2.c [new file with mode: 0644]
libgomp/testsuite/libgomp.c/allocator-3.c [new file with mode: 0644]
libgomp/testsuite/libgomp.c/allocator-4.c [new file with mode: 0644]
libgomp/testsuite/libgomp.c/allocator-5.c [new file with mode: 0644]
libgomp/testsuite/libgomp.c/allocator-6.c [new file with mode: 0644]