File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -360,6 +360,13 @@ def check_create_sub_devices_equally(device):
360
360
pytest .fail ("create_sub_devices failed" )
361
361
362
362
363
+ def check_create_sub_devices_equally_zeros (device ):
364
+ try :
365
+ device .create_sub_devices (partition = 0 )
366
+ except TypeError :
367
+ pass
368
+
369
+
363
370
def check_create_sub_devices_by_counts (device ):
364
371
try :
365
372
n = device .max_compute_units / 2
@@ -372,6 +379,13 @@ def check_create_sub_devices_by_counts(device):
372
379
pytest .fail ("create_sub_devices failed" )
373
380
374
381
382
+ def check_create_sub_devices_by_counts_zeros (device ):
383
+ try :
384
+ device .create_sub_devices (partition = (0 , 1 ))
385
+ except TypeError :
386
+ pass
387
+
388
+
375
389
def check_create_sub_devices_by_affinity_not_applicable (device ):
376
390
try :
377
391
device .create_sub_devices (partition = "not_applicable" )
You can’t perform that action at this time.
0 commit comments