[Openmp-commits] [PATCH] D94985: [OpenMP] Add OMP_ALLOCATOR env variable for OpenMP 5.1

Nawrin Sultana via Phabricator via Openmp-commits openmp-commits at lists.llvm.org
Tue Jan 19 10:37:47 PST 2021


Nawrin created this revision.
Nawrin added a reviewer: hbae.
Nawrin added a project: OpenMP.
Herald added subscribers: guansong, yaxunl.
Nawrin requested review of this revision.
Herald added a reviewer: jdoerfert.
Herald added a subscriber: sstefan1.

This patch sets the def-allocator-var ICV based on the env variables provided in OMP_ALLOCATOR. Previously, only allowed value for OMP_ALLOCATOR was a predefined memory allocator. Now, OMP_ALLOCATOR accepts predefined memory allocator, predefined mem space, or predefined mem space with traits based on 5.1 spec. If an allocator can not be created using the provided environment variables, the def-allocator-var is set to omp_default_mem_alloc.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D94985

Files:
  openmp/runtime/src/kmp_settings.cpp
  openmp/runtime/test/env/omp51_alloc_env.c

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D94985.317622.patch
Type: text/x-patch
Size: 17642 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20210119/dfafc415/attachment-0001.bin>


More information about the Openmp-commits mailing list