Skip to content
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

cpu: aarch64: Fix C_graph_fusions_cpu test #2134

Merged
merged 1 commit into from
Oct 1, 2024

Conversation

Radu2k
Copy link
Contributor

@Radu2k Radu2k commented Sep 30, 2024

Remove asserts in brgemm_matmul_utils.cpp to make
test_benchdnn_modeC_graph_fusions_cpu fail or pass. The datatype support should be checked in
check_datatype. This has been renamed as well from check_isa_with_datatype to check_datatype.

Description

By enabling all graph API tests on AArch64 as a follow-up of this change (#2099 (comment)) unveiled that ctest -R "test_benchdnn_modeC_graph_fusions_cpu" failed due to the assets on lines 323, 324 and 325 in src/cpu/aarch64/matmul/brgemm_matmul_utils.cpp.

The test segfaulted because pick_blocked_B_layout is called before the init, when the object is constructed. These datatypes are checked in the init and return status unimplemented.

This behaviour should be changed to calling pick_blocked_B_layout in configure after init has passed.

Checklist

General

  • Do all unit and benchdnn tests (make test and make test_benchdnn_*) pass locally for each commit?
  • Have you formatted the code using clang-format?

Bug fixes

  • Have you included information on how to reproduce the issue (either in a github issue or in this PR)?
  • Have you added relevant regression tests?

@Radu2k Radu2k requested a review from a team as a code owner September 30, 2024 12:08
@github-actions github-actions bot added the platform:cpu-aarch64 Codeowner: @oneapi-src/onednn-cpu-aarch64 label Sep 30, 2024
@mgouicem
Copy link
Contributor

COuld you please run clang-format on your patch? it seems lightweight scans are flagging violations in src/cpu/aarch64/matmul/brgemm_matmul_utils.cpp.

@Radu2k Radu2k force-pushed the fix_graph_fusions_cpu_test branch 2 times, most recently from ca84f2e to cb2f306 Compare October 1, 2024 12:18
Remove asserts in brgemm_matmul_utils.cpp to make
test_benchdnn_modeC_graph_fusions_cpu fail or pass.
The datatype support should be checked in
check_datatype. This has been renamed as well from
check_isa_with_datatype to check_datatype.
@Radu2k Radu2k force-pushed the fix_graph_fusions_cpu_test branch from cb2f306 to 8bc71ad Compare October 1, 2024 13:16
@spalicki spalicki merged commit efc90e1 into uxlfoundation:main Oct 1, 2024
16 checks passed
@Radu2k Radu2k deleted the fix_graph_fusions_cpu_test branch October 11, 2024 15:49
@vpirogov vpirogov added this to the v3.7 milestone Dec 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
platform:cpu-aarch64 Codeowner: @oneapi-src/onednn-cpu-aarch64
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants