Skip to content

Commit 0a092c7

Browse files
murste01pytorchmergebot
authored andcommitted
Enable CPP Extension Open Registration tests on Arm (pytorch#144774)
Enables most tests under CPP Extension Open Registration as they pass on Arm now. Pull Request resolved: pytorch#144774 Approved by: https://github.com/aditew01, https://github.com/fadara01, https://github.com/malfet
1 parent 0827464 commit 0a092c7

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

.ci/pytorch/test.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1526,7 +1526,7 @@ test_executorch() {
15261526
test_linux_aarch64() {
15271527
python test/run_test.py --include test_modules test_mkldnn test_mkldnn_fusion test_openmp test_torch test_dynamic_shapes \
15281528
test_transformers test_multiprocessing test_numpy_interop test_autograd test_binary_ufuncs test_complex test_spectral_ops \
1529-
test_foreach test_reductions test_unary_ufuncs test_tensor_creation_ops test_ops \
1529+
test_foreach test_reductions test_unary_ufuncs test_tensor_creation_ops test_ops test_cpp_extensions_open_device_registration \
15301530
--shard "$SHARD_NUMBER" "$NUM_TEST_SHARDS" --verbose
15311531

15321532
# Dynamo tests

test/test_cpp_extensions_open_device_registration.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
import torch.utils.cpp_extension
1717
from torch.serialization import safe_globals
1818
from torch.testing._internal.common_utils import (
19-
IS_ARM64,
2019
skipIfTorchDynamo,
2120
TemporaryFileName,
2221
TEST_CUDA,
@@ -36,7 +35,6 @@ class _OpenRegMod:
3635
return _OpenRegMod()
3736

3837

39-
@unittest.skipIf(IS_ARM64, "Does not work on arm")
4038
@unittest.skipIf(TEST_XPU, "XPU does not support cppextension currently")
4139
@torch.testing._internal.common_utils.markDynamoStrictTest
4240
class TestCppExtensionOpenRgistration(common.TestCase):

0 commit comments

Comments
 (0)