From 6af2d588468dd644d6914236e3c4da115855e7ce Mon Sep 17 00:00:00 2001 From: Vladislav Perevezentsev Date: Thu, 3 Apr 2025 04:42:55 -0700 Subject: [PATCH] Skip test_digitize_empty on LNL Windows --- dpnp/tests/test_histogram.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/dpnp/tests/test_histogram.py b/dpnp/tests/test_histogram.py index 06ec6f3fde6..74fa8c90127 100644 --- a/dpnp/tests/test_histogram.py +++ b/dpnp/tests/test_histogram.py @@ -1,4 +1,5 @@ import dpctl +import dpctl.utils as du import numpy import pytest from numpy.testing import ( @@ -21,6 +22,7 @@ get_integer_dtypes, get_integer_float_dtypes, has_support_aspect64, + is_win_platform, numpy_version, ) @@ -101,6 +103,17 @@ def test_digitize_empty(self, x, bins, dtype): x_dp = dpnp.array(x) bins_dp = dpnp.array(bins) + # SAT-7822: w/a to avoid crash on Windows (observing on LNL) + # TODO: remove the w/a once resolved + if x_dp.size == 0 and is_win_platform(): + device_mask = ( + du.intel_device_info(x_dp.sycl_device).get("device_id", 0) + & 0xFF00 + ) + # upper byte of device_id for LNL architecture + if device_mask in [0x6400]: + pytest.skip("SAT-7822: crash on LNL Windows") + result = dpnp.digitize(x_dp, bins_dp) expected = numpy.digitize(x, bins) assert_dtype_allclose(result, expected)