Skip to content

Commit a7e82a5

Browse files
committed
Leave only dot tests
1 parent bb4e5e3 commit a7e82a5

File tree

3 files changed

+71
-67
lines changed

3 files changed

+71
-67
lines changed

conda-recipe/meta.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ build:
5050
test:
5151
requires:
5252
- pytest
53+
- pytest-repeat
5354
- setuptools
5455

5556
about:

conda-recipe/run_test.bat

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,9 @@ if %errorlevel% neq 0 exit 1
4545
"%PYTHON%" -m pytest -ra --pyargs dpnp.tests.test_ndarray
4646
if %errorlevel% neq 0 exit 1
4747

48+
"%PYTHON%" -m pytest --count 100 -ra -v --pyargs dpnp.tests.test_usm_type::test_2in_1out
49+
if %errorlevel% neq 0 exit 1
50+
4851
"%PYTHON%" -m pytest -ra -v --pyargs dpnp.tests.test_usm_type
4952
if %errorlevel% neq 0 exit 1
5053

dpnp/tests/test_usm_type.py

Lines changed: 67 additions & 67 deletions
Original file line numberDiff line numberDiff line change
@@ -684,78 +684,78 @@ def test_1in_1out(func, data, usm_type):
684684
@pytest.mark.parametrize(
685685
"func,data1,data2",
686686
[
687-
pytest.param(
688-
"allclose",
689-
[[1.2, -0.0], [-7, 2.34567]],
690-
[[1.2, 0.0], [-7, 2.34567]],
691-
),
692-
pytest.param("append", [1, 2, 3], [4, 5, 6]),
693-
pytest.param("arctan2", [-1, +1, +1, -1], [-1, -1, +1, +1]),
694-
pytest.param("compress", [False, True, True], [0, 1, 2, 3, 4]),
695-
pytest.param("copysign", [0.0, 1.0, 2.0], [-1.0, 0.0, 1.0]),
696-
pytest.param("cross", [1.0, 2.0, 3.0], [4.0, 5.0, 6.0]),
697-
pytest.param("digitize", [0.2, 6.4, 3.0], [0.0, 1.0, 2.5, 4.0]),
698-
pytest.param(
699-
"corrcoef",
700-
[[0.1, 0.2, 0.3], [0.4, 0.5, 0.6]],
701-
[[0.7, 0.8, 0.9], [1.0, 1.1, 1.2]],
702-
),
703-
pytest.param("correlate", [1, 2, 3], [0, 1, 0.5]),
687+
# pytest.param(
688+
# "allclose",
689+
# [[1.2, -0.0], [-7, 2.34567]],
690+
# [[1.2, 0.0], [-7, 2.34567]],
691+
# ),
692+
# pytest.param("append", [1, 2, 3], [4, 5, 6]),
693+
# pytest.param("arctan2", [-1, +1, +1, -1], [-1, -1, +1, +1]),
694+
# pytest.param("compress", [False, True, True], [0, 1, 2, 3, 4]),
695+
# pytest.param("copysign", [0.0, 1.0, 2.0], [-1.0, 0.0, 1.0]),
696+
# pytest.param("cross", [1.0, 2.0, 3.0], [4.0, 5.0, 6.0]),
697+
# pytest.param("digitize", [0.2, 6.4, 3.0], [0.0, 1.0, 2.5, 4.0]),
698+
# pytest.param(
699+
# "corrcoef",
700+
# [[0.1, 0.2, 0.3], [0.4, 0.5, 0.6]],
701+
# [[0.7, 0.8, 0.9], [1.0, 1.1, 1.2]],
702+
# ),
703+
# pytest.param("correlate", [1, 2, 3], [0, 1, 0.5]),
704704
# dpnp.dot has 3 different implementations based on input arrays dtype
705705
# checking all of them
706706
pytest.param("dot", [3.0, 4.0, 5.0], [1.0, 2.0, 3.0]),
707707
pytest.param("dot", [3, 4, 5], [1, 2, 3]),
708708
pytest.param("dot", [3 + 2j, 4 + 1j, 5], [1, 2 + 3j, 3]),
709-
pytest.param("extract", [False, True, True, False], [0, 1, 2, 3]),
710-
pytest.param(
711-
"float_power",
712-
[0, 1, 2, 3, 4, 5],
713-
[1.0, 2.0, 3.0, 3.0, 2.0, 1.0],
714-
),
715-
pytest.param("fmax", [0.0, 1.0, 2.0], [3.0, 4.0, 5.0]),
716-
pytest.param("fmin", [0.0, 1.0, 2.0], [3.0, 4.0, 5.0]),
717-
pytest.param("fmod", [5, 3], [2, 2.0]),
718-
pytest.param(
719-
"gcd",
720-
[0, 1, 2, 3, 4, 5],
721-
[20, 20, 20, 20, 20, 20],
722-
),
723-
pytest.param(
724-
"gradient", [1, 2, 4, 7, 11, 16], [0.0, 1.0, 1.5, 3.5, 4.0, 6.0]
725-
),
726-
pytest.param("heaviside", [-1.5, 0, 2.0], [1]),
727-
pytest.param(
728-
"hypot", [[1.0, 2.0, 3.0, 4.0]], [[-1.0, -2.0, -4.0, -5.0]]
729-
),
730-
pytest.param("inner", [1.0, 2.0, 3.0], [4.0, 5.0, 6.0]),
731-
pytest.param("kron", [3.0, 4.0, 5.0], [1.0, 2.0]),
732-
pytest.param(
733-
"lcm",
734-
[0, 1, 2, 3, 4, 5],
735-
[20, 20, 20, 20, 20, 20],
736-
),
737-
pytest.param(
738-
"ldexp",
739-
[5, 5, 5, 5, 5],
740-
[0, 1, 2, 3, 4],
741-
),
742-
pytest.param("logaddexp", [[-1, 2, 5, 9]], [[4, -3, 2, -8]]),
743-
pytest.param("logaddexp2", [[-1, 2, 5, 9]], [[4, -3, 2, -8]]),
744-
pytest.param("maximum", [0.0, 1.0, 2.0], [3.0, 4.0, 5.0]),
745-
pytest.param("minimum", [0.0, 1.0, 2.0], [3.0, 4.0, 5.0]),
746-
pytest.param("nextafter", [1, 2], [2, 1]),
747-
pytest.param("searchsorted", [11, 12, 13, 14, 15], [-10, 20, 12, 13]),
748-
pytest.param(
749-
"tensordot",
750-
[[0.0, 1.0, 2.0], [3.0, 4.0, 5.0]],
751-
[[4.0, 4.0, 4.0], [4.0, 4.0, 4.0]],
752-
),
753-
pytest.param("trapezoid", [1, 2, 3], [4, 6, 8]),
754-
# dpnp.vdot has 3 different implementations based on input arrays dtype
755-
# checking all of them
756-
pytest.param("vdot", [3.0, 4.0, 5.0], [1.0, 2.0, 3.0]),
757-
pytest.param("vdot", [3, 4, 5], [1, 2, 3]),
758-
pytest.param("vdot", [3 + 2j, 4 + 1j, 5], [1, 2 + 3j, 3]),
709+
# pytest.param("extract", [False, True, True, False], [0, 1, 2, 3]),
710+
# pytest.param(
711+
# "float_power",
712+
# [0, 1, 2, 3, 4, 5],
713+
# [1.0, 2.0, 3.0, 3.0, 2.0, 1.0],
714+
# ),
715+
# pytest.param("fmax", [0.0, 1.0, 2.0], [3.0, 4.0, 5.0]),
716+
# pytest.param("fmin", [0.0, 1.0, 2.0], [3.0, 4.0, 5.0]),
717+
# pytest.param("fmod", [5, 3], [2, 2.0]),
718+
# pytest.param(
719+
# "gcd",
720+
# [0, 1, 2, 3, 4, 5],
721+
# [20, 20, 20, 20, 20, 20],
722+
# ),
723+
# pytest.param(
724+
# "gradient", [1, 2, 4, 7, 11, 16], [0.0, 1.0, 1.5, 3.5, 4.0, 6.0]
725+
# ),
726+
# pytest.param("heaviside", [-1.5, 0, 2.0], [1]),
727+
# pytest.param(
728+
# "hypot", [[1.0, 2.0, 3.0, 4.0]], [[-1.0, -2.0, -4.0, -5.0]]
729+
# ),
730+
# pytest.param("inner", [1.0, 2.0, 3.0], [4.0, 5.0, 6.0]),
731+
# pytest.param("kron", [3.0, 4.0, 5.0], [1.0, 2.0]),
732+
# pytest.param(
733+
# "lcm",
734+
# [0, 1, 2, 3, 4, 5],
735+
# [20, 20, 20, 20, 20, 20],
736+
# ),
737+
# pytest.param(
738+
# "ldexp",
739+
# [5, 5, 5, 5, 5],
740+
# [0, 1, 2, 3, 4],
741+
# ),
742+
# pytest.param("logaddexp", [[-1, 2, 5, 9]], [[4, -3, 2, -8]]),
743+
# pytest.param("logaddexp2", [[-1, 2, 5, 9]], [[4, -3, 2, -8]]),
744+
# pytest.param("maximum", [0.0, 1.0, 2.0], [3.0, 4.0, 5.0]),
745+
# pytest.param("minimum", [0.0, 1.0, 2.0], [3.0, 4.0, 5.0]),
746+
# pytest.param("nextafter", [1, 2], [2, 1]),
747+
# pytest.param("searchsorted", [11, 12, 13, 14, 15], [-10, 20, 12, 13]),
748+
# pytest.param(
749+
# "tensordot",
750+
# [[0.0, 1.0, 2.0], [3.0, 4.0, 5.0]],
751+
# [[4.0, 4.0, 4.0], [4.0, 4.0, 4.0]],
752+
# ),
753+
# pytest.param("trapezoid", [1, 2, 3], [4, 6, 8]),
754+
# # dpnp.vdot has 3 different implementations based on input arrays dtype
755+
# # checking all of them
756+
# pytest.param("vdot", [3.0, 4.0, 5.0], [1.0, 2.0, 3.0]),
757+
# pytest.param("vdot", [3, 4, 5], [1, 2, 3]),
758+
# pytest.param("vdot", [3 + 2j, 4 + 1j, 5], [1, 2 + 3j, 3]),
759759
],
760760
)
761761
@pytest.mark.parametrize("usm_type_x", list_of_usm_types, ids=list_of_usm_types)

0 commit comments

Comments
 (0)