This is an archive of the discontinued LLVM Phabricator instance.

[mlir][Toy] Remove unnecessary transpose from chapter 1 example
ClosedPublic

Authored by aportnoy on Jun 1 2023, 9:13 AM.

Details

Summary

The call to 'multiply_transpose' in the initialization of the variable 'f' was
intended to have a shape mismatch. However the variable 'a' has shape <2, 3> and
the variable 'c' has shape <3, 2>, so the arguments 'transpose(a)' and 'c' have
in fact compatible shapes (<3, 2> both), the opposite of what is wanted here.
This commit removes the transpose so that arguments 'a' and 'c' have
incompatible shapes <2, 3> and <3, 2>, respectively.

Diff Detail

Event Timeline

aportnoy created this revision.Jun 1 2023, 9:13 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 1 2023, 9:13 AM
aportnoy requested review of this revision.Jun 1 2023, 9:13 AM

The Windows build failed with multiple errors of the form:

C:\ws\w4\llvm-project\premerge-checks\llvm\include\llvm/ADT/PointerIntPair.h(83): fatal error C1060: compiler is out of heap space

Example: https://buildkite.com/llvm-project/premerge-checks/builds/155745#018877be-2e2d-4da8-a400-fa2c7fb3e0dd/385-5565

mehdi_amini accepted this revision.Jun 1 2023, 11:28 AM
This revision is now accepted and ready to land.Jun 1 2023, 11:28 AM

@mehdi_amini Thank you for taking a look! I don't have commit access.

manas added a subscriber: manas.Jun 6 2023, 10:04 AM

Can you rebase it to latest and restart buildbot? I see no reason it should fail with an OOM.

@manas Thank you for looking at this! After I rebase onto main using git, what are my steps to update this revision? How do I restart the buildbot? Or does it run automatically after I update the revision? Sorry, first time using the LLVM workflow.

manas added a comment.Jun 6 2023, 10:59 AM

@manas Thank you for looking at this! After I rebase onto main using git, what are my steps to update this revision? How do I restart the buildbot? Or does it run automatically after I update the revision? Sorry, first time using the LLVM workflow.

I am assuming you are arcanist. You should again do arc diff and buildbot will restart automatically.

aportnoy updated this revision to Diff 528949.Jun 6 2023, 11:04 AM

Rebase onto upstream main

I did arc diff --update D151897.

This revision was landed with ongoing or failed builds.Jun 6 2023, 11:24 AM
This revision was automatically updated to reflect the committed changes.

Sorry I meant to push it before but I was trying to figure an issue this patch is raising: we should trigger a shape inference error and we don't anymore!

@mehdi_amini Got it, thank you. If I get to the relevant part in the tutorial, I'll try to fix that (unless you or someone else does it sooner).