[Openmp-commits] [PATCH] D102307: [OpenMP] Detect SPMD compatible kernels and execute them as suchNOTE: The global "exec_mode" flag needs to be changed as well, will update this shortly. More tests needed.
Johannes Doerfert via Phabricator via Openmp-commits
openmp-commits at lists.llvm.org
Tue May 11 22:09:01 PDT 2021
jdoerfert created this revision.
jdoerfert added reviewers: carlo.bertolli, ABataev, JonChesterfield, ggeorgakoudis, tianshilei1992.
Herald added subscribers: guansong, hiraditya, yaxunl.
Herald added a reviewer: bollu.
jdoerfert requested review of this revision.
Herald added subscribers: llvm-commits, sstefan1.
Herald added a project: LLVM.
In the spirit of TRegions [0], this patch analyzes a kernel and tracks
if it can be executed in SPMD-mode. If so, we flip the arguments of
the __kmpc_target_init and deinit call to enable the mode.
The code analysis is done interprocedurally by extending the
AAKernelInfo abstract attribute to track SPMD compatibility as well.
[0] https://link.springer.com/chapter/10.1007/978-3-030-28596-8_11
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D102307
Files:
llvm/include/llvm/Frontend/OpenMP/OMPConstants.h
llvm/lib/Transforms/IPO/OpenMPOpt.cpp
llvm/test/Transforms/OpenMP/custom_state_machines.ll
llvm/test/Transforms/OpenMP/spdm_mode.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D102307.344660.patch
Type: text/x-patch
Size: 27135 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20210512/03b664e4/attachment-0001.bin>
More information about the Openmp-commits
mailing list