@@ -246,9 +246,7 @@ def test_conversion_to_table(dtype):
246246 not backend .is_dpc ,
247247 reason = "__sycl_usm_array_interface__ support requires DPC backend." ,
248248)
249- @pytest .mark .parametrize (
250- "dataframe,queue" , get_dataframes_and_queues ("dpctl,dpnp" , "cpu,gpu" )
251- )
249+ @pytest .mark .parametrize ("dataframe,queue" , get_dataframes_and_queues ("dpnp" , "cpu,gpu" ))
252250@pytest .mark .parametrize ("order" , ["C" , "F" ])
253251@pytest .mark .parametrize ("dtype" , [np .float32 , np .float64 , np .int32 , np .int64 ])
254252def test_input_zero_copy_sycl_usm (dataframe , queue , order , dtype ):
@@ -280,9 +278,7 @@ def test_input_zero_copy_sycl_usm(dataframe, queue, order, dtype):
280278 not backend .is_dpc ,
281279 reason = "__sycl_usm_array_interface__ support requires DPC backend." ,
282280)
283- @pytest .mark .parametrize (
284- "dataframe,queue" , get_dataframes_and_queues ("dpctl,dpnp" , "cpu,gpu" )
285- )
281+ @pytest .mark .parametrize ("dataframe,queue" , get_dataframes_and_queues ("dpnp" , "cpu,gpu" ))
286282@pytest .mark .parametrize ("order" , ["F" , "C" ])
287283@pytest .mark .parametrize ("data_shape" , data_shapes )
288284@pytest .mark .parametrize ("dtype" , [np .float32 , np .float64 ])
@@ -340,15 +336,15 @@ def test_table_conversions_sycl_usm(dataframe, queue, order, data_shape, dtype):
340336
341337
342338@pytest .mark .parametrize (
343- "dataframe,queue" , get_dataframes_and_queues ("numpy,dpctl, dpnp,array_api" , "cpu,gpu" )
339+ "dataframe,queue" , get_dataframes_and_queues ("numpy,dpnp,array_api" , "cpu,gpu" )
344340)
345341@pytest .mark .parametrize ("data_shape" , unsupported_data_shapes )
346342def test_interop_invalid_shape (dataframe , queue , data_shape ):
347343 X = np .zeros (data_shape )
348344 X = _convert_to_dataframe (X , sycl_queue = queue , target_df = dataframe )
349345
350346 expected_err_msg = r"Input array has wrong dimensionality \(must be 2d\)."
351- if dataframe in "dpctl, dpnp" :
347+ if dataframe == " dpnp" :
352348 expected_err_msg = (
353349 "Unable to convert from SUA interface: only 1D & 2D tensors are allowed"
354350 )
@@ -357,7 +353,7 @@ def test_interop_invalid_shape(dataframe, queue, data_shape):
357353
358354
359355@pytest .mark .parametrize (
360- "dataframe,queue" , get_dataframes_and_queues ("dpctl, dpnp,array_api" , "cpu,gpu" )
356+ "dataframe,queue" , get_dataframes_and_queues ("dpnp,array_api" , "cpu,gpu" )
361357)
362358@pytest .mark .parametrize (
363359 "dtype" ,
@@ -370,8 +366,7 @@ def test_interop_invalid_shape(dataframe, queue, data_shape):
370366def test_interop_unsupported_dtypes (dataframe , queue , dtype ):
371367 # sua iface interobility supported only for oneDAL supported dtypes
372368 # for input data: int32, int64, float32, float64.
373- # Checking some common dtypes supported by dpctl, dpnp for exception
374- # raise.
369+ # Checking some common dtypes supported by dpnp for exception raise.
375370 X = np .zeros ((10 , 20 ), dtype = dtype )
376371 X = _convert_to_dataframe (X , sycl_queue = queue , target_df = dataframe )
377372 expected_err_msg = r"Found unsupported (array|tensor) type"
@@ -381,10 +376,10 @@ def test_interop_unsupported_dtypes(dataframe, queue, dtype):
381376
382377
383378@pytest .mark .parametrize (
384- "dataframe,queue" , get_dataframes_and_queues ("numpy,dpctl, dpnp" , "cpu,gpu" )
379+ "dataframe,queue" , get_dataframes_and_queues ("numpy,dpnp" , "cpu,gpu" )
385380)
386381def test_to_table_non_contiguous_input (dataframe , queue ):
387- if dataframe in "dpnp,dpctl " and not backend .is_dpc :
382+ if dataframe == "dpnp" and not backend .is_dpc :
388383 pytest .skip ("__sycl_usm_array_interface__ support requires DPC backend." )
389384 X , _ = np .mgrid [:10 , :10 ]
390385 X = _convert_to_dataframe (X , sycl_queue = queue , target_df = dataframe )
@@ -398,9 +393,7 @@ def test_to_table_non_contiguous_input(dataframe, queue):
398393 backend .is_dpc ,
399394 reason = "Required check should be done if no DPC backend." ,
400395)
401- @pytest .mark .parametrize (
402- "dataframe,queue" , get_dataframes_and_queues ("dpctl,dpnp" , "cpu,gpu" )
403- )
396+ @pytest .mark .parametrize ("dataframe,queue" , get_dataframes_and_queues ("dpnp" , "cpu,gpu" ))
404397@pytest .mark .parametrize ("dtype" , [np .float32 , np .float64 ])
405398def test_interop_if_no_dpc_backend_sycl_usm (dataframe , queue , dtype ):
406399 X = np .zeros ((10 , 20 ), dtype = dtype )
@@ -524,9 +517,7 @@ def test_basic_ndarray_types_numpy(X):
524517 test_non_array (np .asarray (X ), None )
525518
526519
527- @pytest .mark .parametrize (
528- "dataframe,queue" , get_dataframes_and_queues ("dpctl,numpy" , "cpu,gpu" )
529- )
520+ @pytest .mark .parametrize ("dataframe,queue" , get_dataframes_and_queues ("numpy" , "cpu,gpu" ))
530521@pytest .mark .parametrize ("can_copy" , [True , False ])
531522def test_to_table_non_contiguous_input_dlpack (dataframe , queue , can_copy ):
532523 X , _ = np .mgrid [:10 , :10 ]
@@ -551,9 +542,7 @@ def test_to_table_non_contiguous_input_dlpack(dataframe, queue, can_copy):
551542 to_table (X_tens )
552543
553544
554- @pytest .mark .parametrize (
555- "dataframe,queue" , get_dataframes_and_queues ("dpctl,numpy" , "cpu,gpu" )
556- )
545+ @pytest .mark .parametrize ("dataframe,queue" , get_dataframes_and_queues ("numpy" , "cpu,gpu" ))
557546@pytest .mark .parametrize ("order" , ["F" , "C" ])
558547@pytest .mark .parametrize ("data_shape" , data_shapes )
559548@pytest .mark .parametrize ("dtype" , [np .float32 , np .float64 ])
@@ -578,7 +567,7 @@ def test_table_conversions_dlpack(dataframe, queue, order, data_shape, dtype):
578567
579568
580569@pytest .mark .parametrize (
581- "dataframe,queue" , get_dataframes_and_queues ("numpy,dpctl, array_api" , "cpu,gpu" )
570+ "dataframe,queue" , get_dataframes_and_queues ("numpy,array_api" , "cpu,gpu" )
582571)
583572@pytest .mark .parametrize ("order" , ["F" , "C" ])
584573@pytest .mark .parametrize ("data_shape" , data_shapes )
@@ -621,7 +610,7 @@ def test_table___dlpack__(dataframe, queue, order, data_shape, dtype):
621610@pytest .mark .skipif (
622611 not hasattr (np , "from_dlpack" ), reason = "no dlpack support in installed numpy"
623612)
624- @pytest .mark .parametrize ("dataframe,queue" , get_dataframes_and_queues ("dpctl " , "cpu,gpu" ))
613+ @pytest .mark .parametrize ("dataframe,queue" , get_dataframes_and_queues ("dpnp " , "cpu,gpu" ))
625614@pytest .mark .parametrize ("order" , ["F" , "C" ])
626615@pytest .mark .parametrize ("data_shape" , data_shapes )
627616@pytest .mark .parametrize ("dtype" , [np .float32 , np .float64 , np .int32 , np .int64 ])
@@ -664,7 +653,7 @@ def test_table_writable_dlpack(queue):
664653 """Test if __dlpack__ attribute can be properly consumed by moving data
665654 to host from a SYCL device.
666655 """
667- xp = pytest .importorskip ("dpctl.tensor " )
656+ xp = pytest .importorskip ("dpnp " )
668657 X = xp .eye (5 , 8 , dtype = xp .float32 , device = queue )
669658 X .flags ["W" ] = False
670659 X_table = to_table (X )
0 commit comments