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 43596ee commit ec96da9Copy full SHA for ec96da9
onedal/tests/utils/_device_selection.py
@@ -63,6 +63,8 @@ def get_memory_usm():
63
64
65
def is_dpctl_device_available(targets):
66
+ if not isinstance(targets, (list, tuple)):
67
+ raise TypeError("`targets` should be a list or tuple of strings.")
68
if dpctl_available:
69
for device in targets:
70
if device == "cpu" and not dpctl.has_cpu_devices():
0 commit comments