Skip to content

mlir codegen - #37

Merged
YWHyuk merged 211 commits into
developfrom
mlir
Nov 19, 2024
Merged

YWHyuk merged 211 commits into
developfrom
mlir

Conversation

@YunseonShin

Copy link
Copy Markdown
Collaborator

pytorch backend compiler generates MLIR code.

This version only supports vector & scalar operations.

reduction has two types (horizontal, vertical).

tile is generated as 1D vector for point-wise operations.
To compute vector and scalar operand, expanding is necessary.

Separate the LD/ST operations for vectors and scalars.
@YunseonShin
YunseonShin requested review from YWHyuk and wok1909 and removed request for YWHyuk and wok1909 August 30, 2024 08:41
@YWHyuk
YWHyuk requested review from YWHyuk and wok1909 and removed request for YWHyuk and wok1909 August 30, 2024 08:42
@YWHyuk YWHyuk assigned YWHyuk and wok1909 and unassigned YWHyuk Aug 30, 2024
@YWHyuk
YWHyuk merged commit 2aab306 into develop Nov 19, 2024
student-Jungmin added a commit that referenced this pull request Oct 9, 2026
…#38 and #39

The three compiler changes this branch needs are open as separate pull
requests (replica reads through a gather or a merging collapse; the
gathered axis matched by tensor axis; scalar parameters at launch and the
shared-body foreach kernel). Until they land on main the pin is their
merge, branch integration-torch214, so the CI image carries all three;
it moves to main once they do.
student-Jungmin added a commit that referenced this pull request Oct 9, 2026
…m-Triton-Backend #37, #38, #39)

The pass that lowered Inductor's shared-body foreach kernel is its own pull
request now (#40), and nothing on npu asks for that kernel form since
BackendFeature.FOREACH went, so the pin is the merge of the three the
branch needs. test_mlp, test_add and test_swinv2 pass against it.
student-Jungmin added a commit that referenced this pull request Oct 9, 2026
…#41 and #39 merged

The integration branch the pin pointed at is retired; main carries the
replica reads through a gather or a merging collapse (#37), the gathered
axis matched by tensor axis (#41, the retargeted #38) and the scalar
parameters at launch with DRAM arguments by tensor ordinal (#39).
student-Jungmin added a commit that referenced this pull request Oct 9, 2026
…#38 and #39

The three compiler changes this branch needs are open as separate pull
requests (replica reads through a gather or a merging collapse; the
gathered axis matched by tensor axis; scalar parameters at launch and the
shared-body foreach kernel). Until they land on main the pin is their
merge, branch integration-torch214, so the CI image carries all three;
it moves to main once they do.
student-Jungmin added a commit that referenced this pull request Oct 9, 2026
…m-Triton-Backend #37, #38, #39)

The pass that lowered Inductor's shared-body foreach kernel is its own pull
request now (#40), and nothing on npu asks for that kernel form since
BackendFeature.FOREACH went, so the pin is the merge of the three the
branch needs. test_mlp, test_add and test_swinv2 pass against it.
student-Jungmin added a commit that referenced this pull request Oct 9, 2026
…#41 and #39 merged

The integration branch the pin pointed at is retired; main carries the
replica reads through a gather or a merging collapse (#37), the gathered
axis matched by tensor axis (#41, the retargeted #38) and the scalar
parameters at launch with DRAM arguments by tensor ordinal (#39).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants