Skip to content

Commit 35010ee

Browse files
authored
Temporary disable test_minimum_nan for float16 (#2900)
This PR adds skip for known IGC driver issue to unblock the internal CI until the driver releases the fix.
1 parent da526ca commit 35010ee

2 files changed

Lines changed: 15 additions & 3 deletions

File tree

dpnp/tests/helper.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313

1414

1515
class LTS_VERSION(Enum):
16-
V1_3 = "1.3"
1716
V1_6 = "1.6"
1817

1918

@@ -489,7 +488,7 @@ def is_lnl(device=None):
489488
return _get_dev_mask(device) == 0x6400
490489

491490

492-
def is_lts_driver(version=LTS_VERSION.V1_3, device=None):
491+
def is_lts_driver(version=LTS_VERSION.V1_6, device=None):
493492
"""
494493
Return True if a test is running on a GPU device with LTS driver version,
495494
False otherwise.

dpnp/tests/third_party/cupy/math_tests/test_misc.py

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,12 @@
44
import pytest
55

66
import dpnp as cupy
7-
from dpnp.tests.helper import has_support_aspect64, numpy_version
7+
from dpnp.tests.helper import (
8+
has_support_aspect64,
9+
is_lts_driver,
10+
is_win_platform,
11+
numpy_version,
12+
)
813
from dpnp.tests.third_party.cupy import testing
914

1015

@@ -113,6 +118,14 @@ def check_unary_inf_nan(self, name, xp, dtype):
113118
@testing.for_dtypes(["e", "f", "d", "F", "D"])
114119
@testing.numpy_cupy_array_equal()
115120
def check_binary_nan(self, name, xp, dtype):
121+
if (
122+
not is_win_platform()
123+
and not is_lts_driver()
124+
and name == "minimum"
125+
and dtype == numpy.float16
126+
):
127+
pytest.skip("GSD-12679")
128+
116129
a = xp.array(
117130
[-3, numpy.nan, -1, numpy.nan, 0, numpy.nan, 2], dtype=dtype
118131
)

0 commit comments

Comments
 (0)