Skip to content

Commit d51657a

Browse files
committed
Fix dpctl.SyclDevice.composite_device docstring
1 parent cf6fce2 commit d51657a

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

dpctl/_sycl_device.pyx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1758,7 +1758,8 @@ cdef class SyclDevice(_SyclDevice):
17581758

17591759
@property
17601760
def composite_device(self):
1761-
""" The composite device for a component device, or None for a non-component device.
1761+
""" The composite device for a component device, or ``None`` for a
1762+
non-component device.
17621763
17631764
Returns:
17641765
dpctl.SyclDevice:
@@ -1782,8 +1783,9 @@ cdef class SyclDevice(_SyclDevice):
17821783
List of component devices.
17831784
17841785
Raises:
1785-
dpctl.SyclSubdeviceCreationError:
1786-
if sub-devices can not be created.
1786+
ValueError:
1787+
If the ``DPCTLDevice_GetComponentDevices`` call returned
1788+
``NULL`` instead of a ``DPCTLDeviceVectorRef`` object.
17871789
"""
17881790
cdef DPCTLDeviceVectorRef cDVRef = NULL
17891791
cDVRef = DPCTLDevice_GetComponentDevices(self._device_ref)

0 commit comments

Comments
 (0)