Skip to content

Commit 540d1ad

Browse files
authored
workaround to start tests with dpctl.array (#864)
1 parent f094679 commit 540d1ad

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

dpnp/dpnp_iface_arraycreation.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@
4343
import numpy
4444
import dpnp
4545

46+
import dpnp.config as config
4647
from dpnp.dpnp_algo import *
4748
from dpnp.dpnp_utils import *
4849

@@ -194,6 +195,12 @@ def array(x1, dtype=None, copy=True, order='C', subok=False, ndmin=0, like=None)
194195

195196
if not dpnp.is_type_supported(dtype) and dtype is not None:
196197
pass
198+
elif config.__DPNP_DPCTL_AVAILABLE__:
199+
# TODO this is workaround becasue
200+
# usm_array has no element wise assignment (aka []) and
201+
# has no "flat" property and
202+
# "usm_data.copy_from_host" doesn't work with diffrent datatypes
203+
pass
197204
elif subok is not False:
198205
pass
199206
elif copy is not True:

0 commit comments

Comments
 (0)