[Openmp-commits] [PATCH] D59319: [OpenMP][Offloading][1/3] A generic and simple target region interface
Johannes Doerfert via Phabricator via Openmp-commits
openmp-commits at lists.llvm.org
Wed Mar 13 13:14:30 PDT 2019
jdoerfert created this revision.
jdoerfert added reviewers: ABataev, arpith-jacob, guraypp, gtbercea, hfinkel.
Herald added a project: OpenMP.
This patch introduces an alternative OpenMP GPU kernel offloading
interface called target kernel region (or TRegion).
The commit includes the runtime library implementation for the NVPTX
device plugin, implemented mostly in terms of the existing
functionality.
The interface is deliberately simple to be easily analyzable in the
middle end. Design decisions included:
- Hide all (complex) implementation choices in the runtime library but allow complete removal of the abstraction once the runtime is inlined.
- Provide all runtime calls with sufficient, easy encoded information.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D59319
Files:
openmp/libomptarget/cmake/Modules/LibomptargetNVPTXBitcodeLibrary.cmake
openmp/libomptarget/deviceRTLs/common/target_region.h
openmp/libomptarget/deviceRTLs/nvptx/CMakeLists.txt
openmp/libomptarget/deviceRTLs/nvptx/src/omp_data.cu
openmp/libomptarget/deviceRTLs/nvptx/src/omptarget-nvptx.h
openmp/libomptarget/deviceRTLs/nvptx/src/target_region.cu
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D59319.190483.patch
Type: text/x-patch
Size: 19457 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20190313/0f9133dc/attachment-0001.bin>
More information about the Openmp-commits
mailing list