aboutsummaryrefslogtreecommitdiff
path: root/libgomp/allocator.c
AgeCommit message (Collapse)AuthorFilesLines
2020-06-02openmp: Fix up build if HAVE_SYNC_BUILTINS is not defined.Jakub Jelinek1-1/+1
2020-06-02 Jakub Jelinek <jakub@redhat.com> * allocator.c (omp_free): Fix up build if HAVE_SYNC_BUILTINS is not defined.
2020-05-30openmp: omp_alloc(0, ...) should return NULL.Jakub Jelinek1-0/+3
2020-05-30 Jakub Jelinek <jakub@redhat.com> * allocator.c (omp_alloc): For size == 0, return NULL early. * testsuite/libgomp.c-c++-common/alloc-4.c: New test.
2020-05-19openmp: Add basic library allocator support.Jakub Jelinek1-0/+354
This patch adds very basic allocator support (omp_{init,destroy}_allocator, omp_{alloc,free}, omp_[sg]et_default_allocator). The plan is to use memkind (likely dlopened) for high bandwidth memory, but that part isn't implemented yet, probably mlock for pinned memory and see what other options there are for other kinds of memory. For offloading targets, we need to decide if we want to support the dynamic allocators (and on which targets), or if e.g. all we do is at compile time replace omp_alloc/omp_free calls with constexpr predefined allocators with something special. And allocate directive and allocator/uses_allocators clauses are future work too. 2020-05-19 Jakub Jelinek <jakub@redhat.com> * allocator.c: New file.