Skip to content

Commit 83d4e32

Browse files
Fix typo in SyclContext docstring example
1 parent 4fde78c commit 83d4e32

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

dpctl/_sycl_context.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ cdef class SyclContext(_SyclContext):
153153
sub_devices = cpu_d.create_sub_devices(partition=2)
154154
# Create a context common to all the sub-devices.
155155
ctx = dpctl.SyclContext(sub_devices)
156-
assert(len(ctx.get_devices) == len(sub_devices))
156+
assert(len(ctx.get_devices()) == len(sub_devices))
157157
158158
- Invoking the constructor with a named ``PyCapsule`` with name
159159
**"SyclContextRef"** that carries a pointer to a ``sycl::context``

0 commit comments

Comments
 (0)