Skip to content

Commit 6af2d58

Browse files
Skip test_digitize_empty on LNL Windows
1 parent 434156d commit 6af2d58

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

dpnp/tests/test_histogram.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import dpctl
2+
import dpctl.utils as du
23
import numpy
34
import pytest
45
from numpy.testing import (
@@ -21,6 +22,7 @@
2122
get_integer_dtypes,
2223
get_integer_float_dtypes,
2324
has_support_aspect64,
25+
is_win_platform,
2426
numpy_version,
2527
)
2628

@@ -101,6 +103,17 @@ def test_digitize_empty(self, x, bins, dtype):
101103
x_dp = dpnp.array(x)
102104
bins_dp = dpnp.array(bins)
103105

106+
# SAT-7822: w/a to avoid crash on Windows (observing on LNL)
107+
# TODO: remove the w/a once resolved
108+
if x_dp.size == 0 and is_win_platform():
109+
device_mask = (
110+
du.intel_device_info(x_dp.sycl_device).get("device_id", 0)
111+
& 0xFF00
112+
)
113+
# upper byte of device_id for LNL architecture
114+
if device_mask in [0x6400]:
115+
pytest.skip("SAT-7822: crash on LNL Windows")
116+
104117
result = dpnp.digitize(x_dp, bins_dp)
105118
expected = numpy.digitize(x, bins)
106119
assert_dtype_allclose(result, expected)

0 commit comments

Comments
 (0)