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):
283283
284284 Args:
285285 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``.
287288 Defaults to ``None``.
288289
289290 Raises:
@@ -292,10 +293,8 @@ cdef class SyclDevice(_SyclDevice):
292293 temporary memory.
293294 SyclDeviceCreationError:
294295 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.
299298 """
300299 @staticmethod
301300 cdef SyclDevice _create(DPCTLSyclDeviceRef dref):
@@ -365,7 +364,7 @@ cdef class SyclDevice(_SyclDevice):
365364 else :
366365 raise TypeError (
367366 " Invalid argument. Argument should be a str object specifying "
368- " a SYCL filter selector string."
367+ " a SYCL filter selector string or another SyclDevice ."
369368 )
370369
371370 def print_device_info (self ):
You can’t perform that action at this time.
0 commit comments