onnx-mlir icon indicating copy to clipboard operation
onnx-mlir copied to clipboard

Update LLVM/MHLO to for week of 10/10

Open MikeHolman opened this issue 2 years ago • 19 comments

Green LLVM commit: 438e59182b0c2e44c263f5bacc1add0e514354f8 Green MHLO commit: e6f3ec05c679e86c0a922d1c24ef488d99dfd8aa

The default type for MLIR class accessors was changed, and so I have updated to use kEmitAccessorPrefix_Raw. In the future we can move to use kEmitAccessorPrefix_Prefixed, but that requires a major refactoring which seemed out of scope for this.

Fixed issue where mhlo was giving compile errors for warnings.

Handle Arithmetic dialect renamed to Arith.

Removed assert about attribute count that is no longer valid due to new default attributes.

Use LLVM getLibrary API instead of getPermanentLibrary for ExecutionSessions.

Fix baselines that were wrong due to new attributes and change in alloc variable naming.

MikeHolman avatar Sep 21 '22 19:09 MikeHolman

Can one of the admins verify this patch?

jenkins-droid avatar Sep 21 '22 20:09 jenkins-droid

Can one of the admins verify this patch?

jenkins-droid avatar Sep 21 '22 23:09 jenkins-droid

@jenkins-droid test this please

sstamenova avatar Sep 21 '22 23:09 sstamenova

Can one of the admins verify this patch?

jenkins-droid avatar Sep 22 '22 16:09 jenkins-droid

@jenkins-droid test this please

sstamenova avatar Sep 22 '22 16:09 sstamenova

Can one of the admins verify this patch?

jenkins-droid avatar Sep 23 '22 20:09 jenkins-droid

Can one of the admins verify this patch?

jenkins-droid avatar Sep 23 '22 21:09 jenkins-droid

@jenkins-droid test this please

sstamenova avatar Sep 23 '22 22:09 sstamenova

Unfortunately, I think we need LLVM change or to remove use of LLVM's DynamicLibrary management code/load libraries ourselves to be able to merge, because LLVM has made it so DynamicLibraries don't get unloaded on llvm_shutdown, which causes issues when we are recompiling libraries with the same name but different dimensions, etc. I have workaround to avoid name collision in the numerical tests, but I don't think that same thing is going to work for the backend tests.

I will try to get this into LLVM to allow unloading DynamicLibraries, but if they don't want it, we will unfortunately need to reimplement their functionality.

MikeHolman avatar Sep 26 '22 18:09 MikeHolman

Converted to draft as there seems to be some additional work needed to make it work.

AlexandreEichenberger avatar Oct 03 '22 16:10 AlexandreEichenberger

I have made this LLVM PR which once merged should unblock us. https://reviews.llvm.org/D134763

MikeHolman avatar Oct 03 '22 22:10 MikeHolman

Is there any progress on this or at least plans on when the next bump will be attempted?

gargaroff avatar Oct 14 '22 08:10 gargaroff

@gargaroff Yes, I’m currently working on updating the PR now that this week’s green commit contains my upstream change. Working on updating baselines now and hoping to have it ready today.

MikeHolman avatar Oct 14 '22 10:10 MikeHolman

Awesome news! Looking forward to it :)

gargaroff avatar Oct 14 '22 11:10 gargaroff

Can one of the admins verify this patch?

jenkins-droid avatar Oct 14 '22 19:10 jenkins-droid

Can one of the admins verify this patch?

jenkins-droid avatar Oct 14 '22 19:10 jenkins-droid

@jenkins-droid test this please

sstamenova avatar Oct 14 '22 20:10 sstamenova

Can one of the admins verify this patch?

jenkins-droid avatar Oct 15 '22 00:10 jenkins-droid

@jenkins-droid test this please

gongsu832 avatar Oct 15 '22 13:10 gongsu832

Can one of the admins verify this patch?

jenkins-droid avatar Oct 17 '22 17:10 jenkins-droid

@jenkins-droid test this please

gongsu832 avatar Oct 17 '22 17:10 gongsu832

Can one of the admins verify this patch?

jenkins-droid avatar Oct 19 '22 00:10 jenkins-droid

@jenkins-droid test this please

gongsu832 avatar Oct 19 '22 00:10 gongsu832

@jenkins-droid test this please

sstamenova avatar Oct 19 '22 00:10 sstamenova

Can one of the admins verify this patch?

jenkins-droid avatar Oct 19 '22 00:10 jenkins-droid

@jenkins-droid test this please

gongsu832 avatar Oct 19 '22 00:10 gongsu832

Can one of the admins verify this patch?

jenkins-droid avatar Oct 19 '22 01:10 jenkins-droid

@jenkins-droid test this please

gongsu832 avatar Oct 19 '22 01:10 gongsu832

Can one of the admins verify this patch?

jenkins-droid avatar Oct 19 '22 04:10 jenkins-droid

Can one of the admins verify this patch?

jenkins-droid avatar Oct 19 '22 04:10 jenkins-droid