mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-21 05:34:18 +08:00
[CI][CUDA][Blackwell] sm_\d\d no longer matches sm_100. (#145641)
Therefore making it sm_\d+ Fixes this unit test failure: python test/test_cpp_extensions_jit.py -k TestCppExtensionJIT.test_jit_cuda_archflags Pull Request resolved: https://github.com/pytorch/pytorch/pull/145641 Approved by: https://github.com/eqy, https://github.com/malfet
This commit is contained in:
committed by
PyTorch MergeBot
parent
4cc5e880f9
commit
0741963e01
@ -159,7 +159,7 @@ class TestCppExtensionJIT(common.TestCase):
|
||||
f"Output: {output} "
|
||||
)
|
||||
|
||||
actual_arches = sorted(re.findall(r"sm_\d\d", output))
|
||||
actual_arches = sorted(re.findall(r"sm_\d+", output))
|
||||
expected_arches = sorted(["sm_" + xx for xx in expected_values])
|
||||
self.assertEqual(
|
||||
actual_arches,
|
||||
|
Reference in New Issue
Block a user