Skip to content

Commit 4dfa3ac

Browse files
Changes test_complex_output for it to pass on HW without fp64 support
1 parent 2bd78ba commit 4dfa3ac

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dpctl/tests/elementwise/test_complex.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -59,14 +59,14 @@ def test_complex_output(np_call, dpt_call, dtype):
5959
x1 = np.linspace(0, 10, num=n_seq, dtype=dtype)
6060
x2 = np.linspace(0, 20, num=n_seq, dtype=dtype)
6161
Xnp = x1 + 1j * x2
62-
X = dpt.asarray(Xnp, dtype=Xnp.dtype, sycl_queue=q)
62+
X = dpt.asarray(Xnp, sycl_queue=q)
6363

6464
Y = dpt_call(X)
6565
tol = 8 * dpt.finfo(Y.dtype).resolution
6666

6767
assert_allclose(dpt.asnumpy(Y), np_call(Xnp), atol=tol, rtol=tol)
6868

69-
Z = dpt.empty_like(X, dtype=np_call(Xnp).dtype)
69+
Z = dpt.empty_like(X, dtype=Y.dtype)
7070
dpt_call(X, out=Z)
7171

7272
assert_allclose(dpt.asnumpy(Z), np_call(Xnp), atol=tol, rtol=tol)

0 commit comments

Comments
 (0)