[all-commits] [llvm/llvm-project] 840c04: [OpenMP] Change target memory tests to use allocators
Joseph Huber via All-commits
all-commits at lists.llvm.org
Thu Apr 7 11:23:40 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 840c040498f3fad2875c72248862292796795dd1
https://github.com/llvm/llvm-project/commit/840c040498f3fad2875c72248862292796795dd1
Author: Joseph Huber <jhuber6 at vols.utk.edu>
Date: 2022-04-07 (Thu, 07 Apr 2022)
Changed paths:
A openmp/libomptarget/test/api/omp_device_managed_memory_alloc.c
A openmp/libomptarget/test/api/omp_device_memory.c
A openmp/libomptarget/test/api/omp_host_pinned_memory_alloc.c
M openmp/runtime/src/dllexports
M openmp/runtime/src/include/omp.h.var
M openmp/runtime/src/include/omp_lib.f90.var
M openmp/runtime/src/include/omp_lib.h.var
M openmp/runtime/src/kmp.h
M openmp/runtime/src/kmp_alloc.cpp
M openmp/runtime/src/kmp_global.cpp
M openmp/runtime/src/kmp_stub.cpp
Log Message:
-----------
[OpenMP] Change target memory tests to use allocators
The target allocators have been supported for NVPTX offloading for
awhile. The tests should use the allocators instead of calling the
functions manually. Also the comments indicating these being a preview
should be removed.
Reviewed By: jdoerfert
Differential Revision: https://reviews.llvm.org/D123242
Commit: a3f423cf575db92a699deb7d9e7e6918c51f4e4d
https://github.com/llvm/llvm-project/commit/a3f423cf575db92a699deb7d9e7e6918c51f4e4d
Author: Joseph Huber <jhuber6 at vols.utk.edu>
Date: 2022-04-07 (Thu, 07 Apr 2022)
Changed paths:
M openmp/docs/design/Runtimes.rst
M openmp/libomptarget/DeviceRTL/include/Interface.h
M openmp/libomptarget/DeviceRTL/src/State.cpp
M openmp/libomptarget/include/omptarget.h
M openmp/libomptarget/src/api.cpp
M openmp/libomptarget/src/exports
M openmp/libomptarget/test/api/omp_dynamic_shared_memory.c
M openmp/runtime/src/include/omp.h.var
Log Message:
-----------
[OpenMP] Add dynamic memory function to omp.h and add documentation
This patch adds the `llvm_omp_target_dynamic_shared_alloc` function to
the `omp.h` header file so users can access it by default. Also changed
the name to keep it consistent with the other target allocators. Added
some documentation so users know how to use it. Didn't add the interface
for Fortran since there's no way to test it right now.
Reviewed By: jdoerfert
Differential Revision: https://reviews.llvm.org/D123246
Compare: https://github.com/llvm/llvm-project/compare/2f78b43f4baf...a3f423cf575d
More information about the All-commits
mailing list