SPMDization in D102307 does not change the RequiresFullRuntime argument of kmpc_target_init/deinit calls. However, the constraints of SPMDization detection for converting a target region to SPMD mode should guarantee that the region does not require full runtime support. Hence, this patch sets RequiresFullRuntime to false for improved execution performance.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
llvm/lib/Transforms/IPO/OpenMPOpt.cpp | ||
---|---|---|
2841–2849 | You need this callback stuff for the full-runtime flag too |
llvm/lib/Transforms/IPO/OpenMPOpt.cpp | ||
---|---|---|
2841–2849 | Fixed |
llvm/lib/Transforms/IPO/OpenMPOpt.cpp | ||
---|---|---|
2849 | The callback you need here should return "the opposite" of IsSPMDModeSimplifyCB. |
Comment Actions
Two test fail, check with upstream again wrt. remarks. Should not require a change to the remarks, even though an update might "improve" the check lines.