File tree Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -700,11 +700,10 @@ cdef class SyclDevice(_SyclDevice):
700
700
`(1; 1; 1)` for devices that are not of device type
701
701
``info::device_type::custom``.
702
702
"""
703
- import warnings
704
703
warnings.warn(
705
- " Use dpctl.SyclDevice.max_work_item_sizes3d" ,
704
+ " dpctl.SyclDevice.max_work_item_sizes is deprecated, "
705
+ " use dpctl.SyclDevice.max_work_item_sizes3d instead" ,
706
706
DeprecationWarning ,
707
- stacklevel = 2
708
707
)
709
708
return (
710
709
self ._max_work_item_sizes[0 ],
Original file line number Diff line number Diff line change @@ -74,6 +74,13 @@ def check_get_max_work_item_sizes3d(device):
74
74
assert size is not None
75
75
76
76
77
+ @pytest .mark .filterwarnings ("DeprecationWarning:" )
78
+ def check_get_max_work_item_sizes (device ):
79
+ max_work_item_sizes = device .max_work_item_sizes
80
+ for size in max_work_item_sizes :
81
+ assert size is not None
82
+
83
+
77
84
def check_get_max_work_group_size (device ):
78
85
max_work_group_size = device .max_work_group_size
79
86
# Special case for FPGA simulator
@@ -513,6 +520,7 @@ def check_platform(device):
513
520
check_get_max_work_item_sizes1d ,
514
521
check_get_max_work_item_sizes2d ,
515
522
check_get_max_work_item_sizes3d ,
523
+ check_get_max_work_item_sizes ,
516
524
check_get_max_work_group_size ,
517
525
check_get_max_num_sub_groups ,
518
526
check_is_accelerator ,
You can’t perform that action at this time.
0 commit comments