Skip to content

Commit 0988dd0

Browse files
Skip dpt.prod testing for complex result dtype on Gen9
1 parent d11e64e commit 0988dd0

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

dpctl/tests/test_tensor_sum.py

+11
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
import pytest
1818

1919
import dpctl.tensor as dpt
20+
import dpctl.utils as du
2021
from dpctl.tests.helper import get_queue_or_skip, skip_if_dtype_not_supported
2122

2223
_all_dtypes = [
@@ -242,6 +243,16 @@ def test_prod_arg_out_dtype_matrix(arg_dtype, out_dtype):
242243
skip_if_dtype_not_supported(arg_dtype, q)
243244
skip_if_dtype_not_supported(out_dtype, q)
244245

246+
out_dtype = dpt.dtype(out_dtype)
247+
arg_dtype = dpt.dtype(arg_dtype)
248+
if dpt.isdtype(out_dtype, "complex floating") and du._is_gen9(
249+
q.sycl_device
250+
):
251+
pytest.skip(
252+
"Product reduction for complex output are known "
253+
"to fail for Gen9 with 2024.0 compiler"
254+
)
255+
245256
m = dpt.ones(100, dtype=arg_dtype)
246257
r = dpt.prod(m, dtype=out_dtype)
247258

0 commit comments

Comments
 (0)