Skip to content

Commit 2a43630

Browse files
authored
Reduce scope of skipping tests on device without fp64 aspect (#1525)
* Reduced scope of tests which are not failing on device without fp64 anymore * Addressed review comments * Updated test_umaths to apply the review comment * Resolved pre-commit formatting issue * Suppressed numpy warnings * Muted missing test_umaths for GPU with fp64 support
1 parent 12a8dcb commit 2a43630

File tree

5 files changed

+102
-954
lines changed

5 files changed

+102
-954
lines changed

tests/skipped_tests.tbl

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,40 @@ tests/test_random.py::TestPermutationsTestShuffle::test_shuffle1[lambda x: (dpnp
8484
tests/test_random.py::TestPermutationsTestShuffle::test_shuffle1[lambda x: dpnp.asarray([(i, i) for i in x], [("a", object), ("b", dpnp.int32)])]]
8585
tests/test_random.py::TestPermutationsTestShuffle::test_shuffle1[lambda x: dpnp.asarray(x).astype(dpnp.int8)]
8686

87+
tests/test_umath.py::test_umaths[('divmod', 'ii')]
88+
tests/test_umath.py::test_umaths[('divmod', 'll')]
89+
tests/test_umath.py::test_umaths[('divmod', 'ff')]
90+
tests/test_umath.py::test_umaths[('divmod', 'dd')]
91+
tests/test_umath.py::test_umaths[('float_power', 'dd')]
92+
tests/test_umath.py::test_umaths[('frexp', 'f')]
93+
tests/test_umath.py::test_umaths[('frexp', 'd')]
94+
tests/test_umath.py::test_umaths[('gcd', 'ii')]
95+
tests/test_umath.py::test_umaths[('gcd', 'll')]
96+
tests/test_umath.py::test_umaths[('heaviside', 'ff')]
97+
tests/test_umath.py::test_umaths[('heaviside', 'dd')]
98+
tests/test_umath.py::test_umaths[('lcm', 'ii')]
99+
tests/test_umath.py::test_umaths[('lcm', 'll')]
100+
tests/test_umath.py::test_umaths[('ldexp', 'fi')]
101+
tests/test_umath.py::test_umaths[('ldexp', 'fl')]
102+
tests/test_umath.py::test_umaths[('ldexp', 'di')]
103+
tests/test_umath.py::test_umaths[('ldexp', 'dl')]
104+
tests/test_umath.py::test_umaths[('logaddexp', 'ff')]
105+
tests/test_umath.py::test_umaths[('logaddexp', 'dd')]
106+
tests/test_umath.py::test_umaths[('logaddexp2', 'ff')]
107+
tests/test_umath.py::test_umaths[('logaddexp2', 'dd')]
108+
tests/test_umath.py::test_umaths[('nextafter', 'ff')]
109+
tests/test_umath.py::test_umaths[('nextafter', 'dd')]
110+
tests/test_umath.py::test_umaths[('positive', 'i')]
111+
tests/test_umath.py::test_umaths[('positive', 'l')]
112+
tests/test_umath.py::test_umaths[('positive', 'f')]
113+
tests/test_umath.py::test_umaths[('positive', 'd')]
114+
tests/test_umath.py::test_umaths[('rint', 'f')]
115+
tests/test_umath.py::test_umaths[('rint', 'd')]
116+
tests/test_umath.py::test_umaths[('signbit', 'f')]
117+
tests/test_umath.py::test_umaths[('signbit', 'd')]
118+
tests/test_umath.py::test_umaths[('spacing', 'f')]
119+
tests/test_umath.py::test_umaths[('spacing', 'd')]
120+
87121
tests/third_party/cupy/core_tests/test_ndarray_complex_ops.py::TestAngle::test_angle
88122
tests/third_party/cupy/core_tests/test_ndarray_complex_ops.py::TestRealImag::test_imag
89123
tests/third_party/cupy/core_tests/test_ndarray_complex_ops.py::TestRealImag::test_imag_inplace

tests/skipped_tests_gpu.tbl

Lines changed: 34 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,40 @@ tests/test_sycl_queue.py::test_modf[level_zero:gpu:0]
4545
tests/test_sycl_queue.py::test_1in_1out[opencl:gpu:0-trapz-data19]
4646
tests/test_sycl_queue.py::test_1in_1out[opencl:cpu:0-trapz-data19]
4747

48+
tests/test_umath.py::test_umaths[('divmod', 'ii')]
49+
tests/test_umath.py::test_umaths[('divmod', 'll')]
50+
tests/test_umath.py::test_umaths[('divmod', 'ff')]
51+
tests/test_umath.py::test_umaths[('divmod', 'dd')]
52+
tests/test_umath.py::test_umaths[('float_power', 'dd')]
53+
tests/test_umath.py::test_umaths[('frexp', 'f')]
54+
tests/test_umath.py::test_umaths[('frexp', 'd')]
55+
tests/test_umath.py::test_umaths[('gcd', 'ii')]
56+
tests/test_umath.py::test_umaths[('gcd', 'll')]
57+
tests/test_umath.py::test_umaths[('heaviside', 'ff')]
58+
tests/test_umath.py::test_umaths[('heaviside', 'dd')]
59+
tests/test_umath.py::test_umaths[('lcm', 'ii')]
60+
tests/test_umath.py::test_umaths[('lcm', 'll')]
61+
tests/test_umath.py::test_umaths[('ldexp', 'fi')]
62+
tests/test_umath.py::test_umaths[('ldexp', 'fl')]
63+
tests/test_umath.py::test_umaths[('ldexp', 'di')]
64+
tests/test_umath.py::test_umaths[('ldexp', 'dl')]
65+
tests/test_umath.py::test_umaths[('logaddexp', 'ff')]
66+
tests/test_umath.py::test_umaths[('logaddexp', 'dd')]
67+
tests/test_umath.py::test_umaths[('logaddexp2', 'ff')]
68+
tests/test_umath.py::test_umaths[('logaddexp2', 'dd')]
69+
tests/test_umath.py::test_umaths[('nextafter', 'ff')]
70+
tests/test_umath.py::test_umaths[('nextafter', 'dd')]
71+
tests/test_umath.py::test_umaths[('positive', 'i')]
72+
tests/test_umath.py::test_umaths[('positive', 'l')]
73+
tests/test_umath.py::test_umaths[('positive', 'f')]
74+
tests/test_umath.py::test_umaths[('positive', 'd')]
75+
tests/test_umath.py::test_umaths[('rint', 'f')]
76+
tests/test_umath.py::test_umaths[('rint', 'd')]
77+
tests/test_umath.py::test_umaths[('signbit', 'f')]
78+
tests/test_umath.py::test_umaths[('signbit', 'd')]
79+
tests/test_umath.py::test_umaths[('spacing', 'f')]
80+
tests/test_umath.py::test_umaths[('spacing', 'd')]
81+
4882
tests/third_party/cupy/indexing_tests/test_insert.py::TestDiagIndices_param_0_{n=2, ndim=2}::test_diag_indices
4983
tests/third_party/cupy/indexing_tests/test_insert.py::TestDiagIndices_param_1_{n=2, ndim=3}::test_diag_indices
5084
tests/third_party/cupy/indexing_tests/test_insert.py::TestDiagIndices_param_2_{n=2, ndim=1}::test_diag_indices
@@ -766,7 +800,6 @@ tests/third_party/cupy/manipulation_tests/test_tiling.py::TestTile_param_3_{reps
766800
tests/third_party/cupy/manipulation_tests/test_tiling.py::TestTile_param_4_{reps=(2, 3)}::test_array_tile
767801
tests/third_party/cupy/manipulation_tests/test_tiling.py::TestTile_param_5_{reps=(2, 3, 4, 5)}::test_array_tile
768802

769-
tests/third_party/cupy/math_tests/test_arithmetic.py::TestArithmeticRaisesWithNumpyInput_param_11_{name='mod', nargs=2}::test_raises_with_numpy_input
770803
tests/third_party/cupy/math_tests/test_arithmetic.py::TestArithmeticRaisesWithNumpyInput_param_1_{name='angle', nargs=1}::test_raises_with_numpy_input
771804

772805
tests/third_party/cupy/math_tests/test_explog.py::TestExplog::test_logaddexp

0 commit comments

Comments
 (0)