Skip to content

Commit ee77487

Browse files
authored
Temporary disable different bins amount tests (#2868) (#2869)
The PR backports #2868
1 parent 26383d1 commit ee77487

2 files changed

Lines changed: 37 additions & 0 deletions

File tree

dpnp/tests/helper.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -430,6 +430,14 @@ def is_arl_or_mtl(device=None):
430430
return _get_dev_mask(device) == 0x7D00
431431

432432

433+
def is_bmg(device=None):
434+
"""
435+
Return True if a test is running on Arc Battlemage (B-Series) GPU device,
436+
False otherwise.
437+
"""
438+
return _get_dev_mask(device) == 0xE200
439+
440+
433441
def is_cpu_device(device=None):
434442
"""
435443
Return True if a test is running on CPU device, False otherwise.

dpnp/tests/test_histogram.py

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
import dpnp
1212

1313
from .helper import (
14+
LTS_VERSION,
1415
assert_dtype_allclose,
1516
generate_random_numpy_array,
1617
get_abs_array,
@@ -21,6 +22,10 @@
2122
get_integer_dtypes,
2223
get_integer_float_dtypes,
2324
has_support_aspect64,
25+
is_bmg,
26+
is_lnl,
27+
is_lts_driver,
28+
is_win_platform,
2429
numpy_version,
2530
)
2631
from .third_party.cupy import testing
@@ -487,6 +492,12 @@ def test_weights_another_sycl_queue(self):
487492
with assert_raises(ValueError):
488493
dpnp.histogram(v, weights=w)
489494

495+
@pytest.mark.skipif(
496+
not is_win_platform()
497+
and not is_lts_driver(version=LTS_VERSION.V1_6)
498+
and (is_lnl() or is_bmg()),
499+
reason="SAT-8135",
500+
)
490501
@pytest.mark.parametrize(
491502
"bins_count",
492503
[10, 10**2, 10**3, 10**4, 10**5, 10**6],
@@ -585,6 +596,12 @@ def test_weights_unsupported_dtype(self, xp, dt):
585596
w = xp.arange(5, dtype=dt)
586597
assert_raises((TypeError, ValueError), xp.bincount, v, weights=w)
587598

599+
@pytest.mark.skipif(
600+
not is_win_platform()
601+
and not is_lts_driver(version=LTS_VERSION.V1_6)
602+
and (is_lnl() or is_bmg()),
603+
reason="SAT-8135",
604+
)
588605
@pytest.mark.parametrize(
589606
"bins_count",
590607
[10, 10**2, 10**3, 10**4, 10**5, 10**6],
@@ -851,6 +868,12 @@ def test_weights_another_sycl_queue(self):
851868
with assert_raises(ValueError):
852869
dpnp.histogramdd(v, weights=w)
853870

871+
@pytest.mark.skipif(
872+
not is_win_platform()
873+
and not is_lts_driver(version=LTS_VERSION.V1_6)
874+
and (is_lnl() or is_bmg()),
875+
reason="SAT-8135",
876+
)
854877
@pytest.mark.parametrize(
855878
"bins_count",
856879
[10, 10**2, 10**3, 10**4, 10**5, 10**6],
@@ -1092,6 +1115,12 @@ def test_size_mismatch(self, xp):
10921115
y = xp.linspace(0.0, 1.0, num=20)
10931116
assert_raises(ValueError, xp.histogram2d, x, y)
10941117

1118+
@pytest.mark.skipif(
1119+
not is_win_platform()
1120+
and not is_lts_driver(version=LTS_VERSION.V1_6)
1121+
and (is_lnl() or is_bmg()),
1122+
reason="SAT-8135",
1123+
)
10951124
@pytest.mark.parametrize(
10961125
"bins_count",
10971126
[10, 10**2, 10**3],

0 commit comments

Comments
 (0)