File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -283,7 +283,8 @@ cdef class SyclDevice(_SyclDevice):
283
283
284
284
Args:
285
285
arg (str, optional):
286
- The argument can be a selector string or ``None``.
286
+ The argument can be a selector string, another
287
+ :class:`dpctl.SyclDevice`, or ``None``.
287
288
Defaults to ``None``.
288
289
289
290
Raises:
@@ -292,10 +293,8 @@ cdef class SyclDevice(_SyclDevice):
292
293
temporary memory.
293
294
SyclDeviceCreationError:
294
295
If the :class:`dpctl.SyclDevice` object creation failed.
295
- ValueError:
296
- If the list of :class:`dpctl.SyclDevice` objects was empty,
297
- or the input capsule contained a null pointer or could not
298
- be renamed.
296
+ TypeError:
297
+ If the argument is not a :class:`dpctl.SyclDevice` or string.
299
298
"""
300
299
@staticmethod
301
300
cdef SyclDevice _create(DPCTLSyclDeviceRef dref):
@@ -365,7 +364,7 @@ cdef class SyclDevice(_SyclDevice):
365
364
else :
366
365
raise TypeError (
367
366
" Invalid argument. Argument should be a str object specifying "
368
- " a SYCL filter selector string."
367
+ " a SYCL filter selector string or another SyclDevice ."
369
368
)
370
369
371
370
def print_device_info (self ):
You can’t perform that action at this time.
0 commit comments