Skip to content

VMVX e2e matmul tests with target CPU features variants for ARM - #10366

Merged
bjacob merged 2 commits into
iree-org:mainfrom
bjacob:vmvx-arch-tests
Sep 13, 2022
Merged

bjacob merged 2 commits into
iree-org:mainfrom
bjacob:vmvx-arch-tests

Conversation

@bjacob

@bjacob bjacob commented Sep 12, 2022 •

Copy link
Copy Markdown
Collaborator

First part of #10339 for review.

Comment thread tests/e2e/matmul/BUILD Outdated
],
target_cpu_features_variants = ["default"] +
([
"aarch64:+dotprod",

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We're getting to pretty complex logic in the build files here. I'm not convinced that the list comprehension is helping us at this point. This generates 4 rules and actually all 4 of them take different branches on these various if conditions. I think we should consider expanding them out and possibly adding one or more macros to capture the meaningful similarities

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK, split the mmt4d vs direct cases (ie dropped the for on strategy). Initially I also split by lhs_rhs_type (dropped the other for) but found that that one made more sense to keep. It's a trade-off with verbosity: long repetitive BUILD code with subtle variations isn't easy to read either, and the list comprehension trick serves a purpose, it factors out the repetitiveness and highlights the variations. WDYT?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah it's definitely a balance. One of the arguments inside Google around not doing this sort of thing is that it makes it harder for tools to process (e.g. buildozer), but I think that's less relevant for us. This seems fine to me

@bjacob
bjacob requested a review from GMNGeoffrey September 12, 2022 20:44
@bjacob bjacob changed the title vmvx-arch-tests VMVX e2e matmul tests with target CPU features variants for ARM Sep 13, 2022
@bjacob
bjacob merged commit c17fc52 into iree-org:main Sep 13, 2022
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.

2 participants