Skip to content

Commit 17ce890

Browse files
committed
docstring fixes
1 parent 0b22939 commit 17ce890

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

dpctl/_sycl_device.pyx

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2273,6 +2273,10 @@ cdef class SyclDevice(_SyclDevice):
22732273
Returns:
22742274
str:
22752275
The device version string.
2276+
2277+
Raises:
2278+
RuntimeError:
2279+
If the ``version`` descriptor is not available.
22762280
"""
22772281
cdef const char *ver = DPCTLDevice_GetVersion(self._device_ref)
22782282
if ver is NULL:
@@ -2283,11 +2287,15 @@ cdef class SyclDevice(_SyclDevice):
22832287

22842288
@property
22852289
def backend_version(self):
2286-
""" Returns a backend-defined driver version string.
2290+
""" Returns a backend version string.
22872291
22882292
Returns:
22892293
str:
22902294
The backend version string.
2295+
2296+
Raises:
2297+
RuntimeError:
2298+
If the ``backend_version`` descriptor is not available.
22912299
"""
22922300
cdef const char *ver = DPCTLDevice_GetBackendVersion(self._device_ref)
22932301
if ver is NULL:

0 commit comments

Comments
 (0)