This is an archive of the discontinued LLVM Phabricator instance.

Move the MLIR integration tests as a subdirectory of test (NFC)
ClosedPublic

Authored by mehdi_amini on Feb 22 2021, 5:03 PM.

Details

Summary

This does not change the behavior directly: the tests only run when
-DMLIR_INCLUDE_INTEGRATION_TESTS=ON is configured. However running
ninja check-mlir will not run all the tests within a single
lit invocation. The previous behavior would wait for all the integration
tests to complete before starting to run the first regular test. The
test results were also reported separately. This change is unifying all
of this and allow concurrent execution of the integration tests with
regular non-regression and unit-tests.

Diff Detail

Event Timeline

mehdi_amini created this revision.Feb 22 2021, 5:03 PM
mehdi_amini requested review of this revision.Feb 22 2021, 5:03 PM
rriddle accepted this revision.Feb 22 2021, 5:12 PM
This revision is now accepted and ready to land.Feb 22 2021, 5:12 PM
jpienaar accepted this revision.Feb 22 2021, 5:13 PM
jpienaar added a subscriber: jpienaar.

So this will avoid that long pause at the end?

So this will avoid that long pause at the end?

No the long pause is usually due to the "standalone" test in the examples which runs CMake before building. You can avoid this by not configuring with -DLLVM_INCLUDE_EXAMPLES=ON

mehdi_amini added a comment.EditedFeb 22 2021, 5:49 PM

What this changes in practice is this:

$ ninja check-mlir
4.494 [3/3/215] Running the MLIR integration tests

Testing Time: 45.39s
  Unsupported:  1
  Passed     : 80
60.002 [0/1/220] Running the MLIR regression tests

Testing Time: 5.42s
  Unsupported:  45
  Passed     : 742

Becomes :

$ ninja check-mlir 
0.000 [0/1/0] Running the MLIR regression tests

Testing Time: 44.86s
  Unsupported:  46
  Passed     : 822

Would you please post a note on this on the original discourse thread in which I proposed adding the integration tests (the discussion there was in favor of moving this out of test), just so that when people find that thread, they are not confused why it is no longer there.

https://llvm.discourse.group/t/vectorops-rfc-add-suite-of-integration-tests-for-vector-dialect-operations/1213

Sure, done! Can you confirm you're OK with the change though Aart?

aartbik accepted this revision.Feb 22 2021, 9:06 PM

Sure, done! Can you confirm you're OK with the change though Aart?

Thanks for posting on discourse. Yes, this change makes a lot of sense, unifying the test (when configured).
Thanks for making the change!

I just had submitted two minor changes to the integration test, that probably conflicts with this.
Sorry about that, let me know if you need a pointer on what I changed.

This revision was landed with ongoing or failed builds.Feb 22 2021, 9:56 PM
This revision was automatically updated to reflect the committed changes.
mlir/integration_test/lit.cfg.py