We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 19205fc commit f102a0bCopy full SHA for f102a0b
dpnp/tests/test_random_state.py
@@ -15,7 +15,12 @@
15
from dpnp.dpnp_array import dpnp_array
16
from dpnp.random import RandomState
17
18
-from .helper import assert_dtype_allclose, get_array, is_cpu_device
+from .helper import (
19
+ assert_dtype_allclose,
20
+ get_array,
21
+ is_cpu_device,
22
+ is_gpu_device,
23
+)
24
25
# aspects of default device:
26
_def_device = dpctl.SyclQueue().sycl_device
@@ -688,7 +693,7 @@ def test_scalar(self, func):
688
693
],
689
694
)
690
695
def test_array_range(self, seed):
691
- if not is_cpu_device():
696
+ if is_gpu_device():
692
697
pytest.skip("seed as a scalar is only supported on GPU")
698
699
size = 15
0 commit comments