-
Notifications
You must be signed in to change notification settings - Fork 320
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[WIP] LLVM/MHLO uplift 09/04/2023 #2484
Conversation
Signed-off-by: jcwchen <[email protected]>
Can one of the admins verify this patch? |
@jenkins-droid test this please |
@gongsu832 can you please see if you can make jenkins run on this MR? |
@jenkins-droid test this please |
@sorenlassen what browser you are using? Your browser is sending extra chars at the end of the message:
Although it really shouldn't matter since the regex is |
Chrome
I might have added a newline in the message, I can try to make sure not to do that, and I can also try a different browser - I can try that next time @jcwchen updates this MR |
Signed-off-by: jcwchen <[email protected]>
Signed-off-by: jcwchen <[email protected]>
Can one of the admins verify this patch? |
Hi -- this is my first time to bump LLVM/MHLO commit in onnx-mlir and therefore I might need the community's help/guidance. After the updates, although Might be a naive question: Shall I focus on fixing the test itself or try to fix the implementation logic instead? Any pointer/suggestion is greatly appreciated. Thank you for looking into it! |
@jenkins-droid test this please |
@gongsu832 fyi, the test-me-please that I posted a moment ago was entered with Safari, with no newline at the end |
it's ideal if you can take a close look at the failures and find the root causes (probably just one or two root causes that make several tests fail) and then make a judgement call whether to modify the tests or fix what made the tests fail, then we can discuss in the code review if we agree on your solutions if you can't come up with a solution, or can't decide which solution to go with, then please share your analysis of the problem in the comments and then folks can chime in to help |
Signed-off-by: jcwchen <[email protected]>
Can one of the admins verify this patch? |
Signed-off-by: jcwchen <[email protected]>
Can one of the admins verify this patch? |
Signed-off-by: jcwchen <[email protected]>
Can one of the admins verify this patch? |
Signed-off-by: jcwchen <[email protected]>
bccd3f4
to
3bbab82
Compare
Can one of the admins verify this patch? |
Updates: The most issue for missing "<>" is as below:
needs to be added "<" and ">" for attributes "{}" as
Other than that, I found some tests became crash after LLVM bump and I haven't figured out why. For instance, Now I have successfully fixed 10 failed tests by hand, but it will take quite a long time to fix every of them (90 failed tests left...). I am not sure whether I am on the right track. Therefore, if anyone has better clue to fix these test failures, please let me know. Appreciate it! |
Thanks for the work so far @jcwchen! We have our weekly I'll also take a look at crashing llvm tests. |
@philass Thank you so much for the help!
I guess you are talking about onnx/onnx-mlir/blob/main/utils/fixLitTest.py? I have tried it for a while last week, but it seems that it can only auto fix few failed tests. Not sure whether I used it in the right way tho. Perhaps there is something needs to be updated in that script according to the new LLVM bump. |
Not sure about the magical part, but yes I have a script that can re-generate the lit tests. It has been used mostly for some passes and can be a bit fragile. The gist is:
to go though each test individually and eventually list the erroneous files. Adding the Unfortunately, I know of tests that break the "repair" script; in addition, the If the issue is just the |
Thanks @AlexandreEichenberger for the details of fixLitTest.py.
+1. I bumped into that kind of error while using fixLitTest.py on some failed tests.
Yes, at least I have tried regular expression (as mentioned here) and it will involve many irrelevant changes somehow (actually ".onnx.{.*} is not the only format). However, honestly I am not very familiar with these kinds of tools and so I will spend more time trying them to see whether the syntax issue can be solved globally. |
If you email me a file to fix, with the pattern, I can try to whip up a script. I would rather not update my working copy unless I really have to. |
I will provide some quick context first: some of files in this PR might helpful and also you can preview the difference in https://github.com/onnx/onnx-mlir/pull/2484/files -- For instance,
Basically the pattern are ".onnx.{.}" and ".krnl.{.}". If these are not sufficient, I can email you more. Thank you for looking into it! |
I have not enough info to know really which pattern needs to be changed. But if you want to change every
The big hope here is that there are no nested Maybe a realistic goal is to use a simple script here to fix most of the cases, and manually fix the remaining exceptions. |
I came up with a similar regular expression as yours, but unfortunately there are indeed a few nested {} patterns. Applying the replacement globally still failed most of failed tests. I agreed probably I still need to go through them manually -- At least I have the generic regular expression to find the potential matches and fix them one by one by hand, although there are quite many (100 failed files and each of them have multiple matched lines). Thank you for trying it out and the suggestion! |
@jcwchen I can take this on |
Thanks @philass. One clunky way to handle recursive patterns is to detect this: |
@philass thank you so much for taking over! Sorry that I cannot be more helpful (first time doing the version bump and quite new to onnx-mlir). Since the update work this time seems quite large to me (fixing 100 test failures), please let me know if you want to decouple the bump work and I am happy to take some. |
@jcwchen this one is particularly painful. Some MLIR tribal knowledge has already come in handy. Setting
I was lucky in that I had already read this discussion https://discourse.llvm.org/t/rfc-enabling-properties-for-attribute-storage-by-default/72900/4. So when I saw properties in the backtrace of my lldb session, my spidy senses started tingling. And in general, thanks for all the work you do in the ONNX ecosystem! |
It's all good. I'll take it from here. I'll probably make a new PR that builds on top of the work you already did in your branch. |
I'm closing this as we landed #2502 |
LLVM/MHLO uplift 09/04/2023.
Bump versions as below: