Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
docstring fixes
  • Loading branch information
ndgrigorian committed Aug 4, 2026
commit 75030b54b733af1e19f19759df0f882a9e496c75
10 changes: 9 additions & 1 deletion dpctl/_sycl_device.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -2273,6 +2273,10 @@ cdef class SyclDevice(_SyclDevice):
Returns:
Comment thread
ndgrigorian marked this conversation as resolved.
Resolved
str:
The device version string.

Raises:
RuntimeError:
If the ``version`` descriptor is not available.
"""
cdef const char *ver = DPCTLDevice_GetVersion(self._device_ref)
if ver is NULL:
Expand All @@ -2283,11 +2287,15 @@ cdef class SyclDevice(_SyclDevice):

@property
def backend_version(self):
""" Returns a backend-defined driver version string.
""" Returns a backend version string.

Returns:
Comment thread
ndgrigorian marked this conversation as resolved.
Resolved
str:
The backend version string.

Raises:
RuntimeError:
If the ``backend_version`` descriptor is not available.
"""
cdef const char *ver = DPCTLDevice_GetBackendVersion(self._device_ref)
if ver is NULL:
Expand Down
Loading