This is an archive of the discontinued LLVM Phabricator instance.

[mlir][gpu][transform] Fix regressions in MapForallToBlocks.
AbandonedPublic

Authored by ingomueller-net on Jul 28 2023, 5:56 AM.

Details

Summary

This fixes two regressions introduced by https://reviews.llvm.org/D155941:
(1) it may be that more dimensions are extracted from an existing
scf.forall op than there are dimensions to map to, so these iterators
should be combined with zip and not zip_longest; and (2) if
generate_gpu_launch is set, the grid has to be 3D, but previously,
lower-dimensional grids were also accepted, so this patch trivially
extends these grids with unit dimensions.

Diff Detail

Event Timeline

ingomueller-net requested review of this revision.Jul 28 2023, 5:56 AM
Herald added a project: Restricted Project. · View Herald Transcript
nicolasvasilache requested changes to this revision.Jul 28 2023, 6:09 AM

this does not seem right

This revision now requires changes to proceed.Jul 28 2023, 6:09 AM
ingomueller-net abandoned this revision.Sep 6 2023, 12:11 AM

Abandoning because 92f088d335e4a55f10e74c541ac52ec2a4d4ceeb fixes the issues and has landed.