8000 [ARM] Enable some additional Aarch64 unit tests by robert-hardwick · Pull Request #146895 · pytorch/pytorch · GitHub
[go: up one dir, main page]

Skip to content

[ARM] Enable some additional Aarch64 unit tests #146895

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

Closed
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Skip failing inductor/test_cpu_select_algorithm test on non-BF16 Aarc…
…h64 HW
  • Loading branch information
robert-hardwick committed Feb 13, 2025
commit 560a3fba076f6827b336af1c5203384100833ff3
4 changes: 4 additions & 0 deletions test/inductor/test_cpu_select_algorithm.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@
skipIfWindows,
TEST_MKL,
xfailIfAarch64,
IS_ARM64,
TEST_MKLDNN_BF16,
)


Expand Down Expand Up @@ -922,6 +924,8 @@ def forward(self, view_368):
self.assertEqual(counters["inductor"]["select_algorithm_autotune"], 1)
self.assertEqual(counters["inductor"]["cpp_epilogue_fusion_counter"], 2)

# Issue for Aarch64 non-bf16 failure https://github.com/pytorch/pytorch/issues/147104
@unittest.skipIf(IS_ARM64 and not TEST_MKLDNN_BF16, "Test fails on non-bf16 hw supported Aarch64")
@inductor_config.patch({"freezing": True})
@patches
@torch.no_grad
Expand Down
1 change: 1 addition & 0 deletions torch/testing/_internal/common_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -1415,6 +1415,7 @@ def is_privateuse1_backend_available():
TEST_SCIPY = _check_module_exists('scipy')
TEST_MKL = torch.backends.mkl.is_available()
TEST_ACL = torch.backends.mkldnn.is_available() and torch.ops.mkldnn._is_mkldnn_acl_supported()
TEST_MKLDNN_BF16 = torch.backends.mkldnn.is_available() and torch.ops.mkldnn._is_mkldnn_bf16_supported()
TEST_MPS = torch.backends.mps.is_available()
MACOS_VERSION = float('.'.join(platform.mac_ver()[0].split('.')[:2]) or -1)
TEST_XPU = torch.xpu.is_available()
Expand Down
Loading
0