Page MenuHomePhabricator

[OpenMP] Detect SPMD compatible kernels and execute them as such
Needs ReviewPublic

Authored by jdoerfert on May 11 2021, 10:08 PM.

Details

Summary
NOTE: The global "exec_mode" flag needs to be changed as well, will update this shortly. More tests needed.

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

Diff Detail

Event Timeline

jdoerfert created this revision.May 11 2021, 10:08 PM
jdoerfert requested review of this revision.May 11 2021, 10:08 PM
Herald added a project: Restricted Project. · View Herald TranscriptMay 11 2021, 10:09 PM
jdoerfert retitled this revision from [OpenMP] Detect SPMD compatible kernels and execute them as such NOTE: The global "exec_mode" flag needs to be changed as well, will update this shortly. More tests needed. to [OpenMP] Detect SPMD compatible kernels and execute them as such.May 11 2021, 10:09 PM
jdoerfert edited the summary of this revision. (Show Details)