[Openmp-commits] [PATCH] D110957: [Libomptarget] Add an external interface to dynamic shared memory
Joseph Huber via Phabricator via Openmp-commits
openmp-commits at lists.llvm.org
Fri Oct 1 12:11:44 PDT 2021
jhuber6 created this revision.
jhuber6 added a reviewer: jdoerfert.
jhuber6 added a project: OpenMP.
jhuber6 requested review of this revision.
Herald added subscribers: openmp-commits, sstefan1.
This patch adds an external interface to access the dynamic shared
memory buffer in the device runtime. The function introduced is
``llvm_omp_get_dynamic_shared``. This includes a host-side
definition that only returns a null pointer so that it can be used when
host-fallback is enabled without crashing. Support for dynamic shared
memory was also ported to the old device runtime.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D110957
Files:
openmp/libomptarget/DeviceRTL/include/Interface.h
openmp/libomptarget/DeviceRTL/src/State.cpp
openmp/libomptarget/deviceRTLs/common/src/data_sharing.cu
openmp/libomptarget/deviceRTLs/interface.h
openmp/libomptarget/include/omptarget.h
openmp/libomptarget/src/api.cpp
openmp/libomptarget/src/exports
openmp/libomptarget/test/api/omp_dynamic_shared_memory.c
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D110957.376594.patch
Type: text/x-patch
Size: 5561 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20211001/1df9c697/attachment.bin>
More information about the Openmp-commits
mailing list