Skip to content

Using LinalgTileAndVectorizeWorkgroupsPass in VMVX backend. #5925

Closed

Description

@MaheshRavishankar

The use of LoweringConfig attribute to drive the tiling+vectorization (or other Linalg transformations) in PR #5842 requires a pre-pass on the dispatch region to introduce that attribute. This is done on the CPU side, but is not invoked on the VMVX side

With the above PR, disabling the use of this pass with VMVX backend for now. It shold be easy to enable use of this pass again based on how the number of workgroups is handled on the VMVX backend.

Activity

  1. added
    codegen/vmvx
    on May 17, 2021
  2. MaheshRavishankar commented on May 17, 2021

    @MaheshRavishankar
    CollaboratorAuthor

    @benvanik lets chat (when you are available) about how to re-enable this. I dont think its too complicated.

  3. MaheshRavishankar commented on May 20, 2021

    @MaheshRavishankar
    CollaboratorAuthor

    I tried to re-enable vectorization on the VMVX path. After PR #5934 landed, its easy to use the relevant parts for the VMVX backend. This This enables the vectorization just like it does on the CPU side (accounts for all the configuration, etc. etc.). The part that this gets stuck with is the ConvertToVM pass. It doesnt seem to be able to legalize std.constant here (even though it should). Maybe it is expecting non-index std.constant. I think thought the issue might be with the passpipeline nesting. The pass might be running at the wrong level.

    Leaving this aside till now till I can have a chat with Ben about this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

codegen/vmvx

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions