This is an archive of the discontinued LLVM Phabricator instance.

[OpenMP] Unify "exec_mode" query code and default to SPMD
ClosedPublic

Authored by jdoerfert on Dec 27 2022, 11:22 PM.

Details

Summary
Defaulting to Generic mode doesn't make much sense as the kernel needs
to be prepared for it. SPMD mode is the "native" execution, e.g., for
"bare" kernels. It also is the execution method for constructors and
destructors (as we might otherwise throw an extra warp onto them).

Diff Detail

Event Timeline

jdoerfert created this revision.Dec 27 2022, 11:22 PM
Herald added a project: Restricted Project. · View Herald TranscriptDec 27 2022, 11:22 PM
jdoerfert requested review of this revision.Dec 27 2022, 11:22 PM
kevinsala accepted this revision.Dec 28 2022, 10:47 AM

LGTM

openmp/libomptarget/plugins-nextgen/amdgpu/src/rtl.cpp
1634–1637

Nit, to be consistent with other Expected variables.

This revision is now accepted and ready to land.Dec 28 2022, 10:47 AM
This revision was landed with ongoing or failed builds.Jan 3 2023, 5:10 PM
This revision was automatically updated to reflect the committed changes.
Herald added a project: Restricted Project. · View Herald TranscriptJan 3 2023, 5:10 PM