Skip to content

Commit 2af478f

Browse files
committed
DOC: Update docs with feedback from leofang
1 parent 70ff96b commit 2af478f

File tree

6 files changed

+12
-12
lines changed

6 files changed

+12
-12
lines changed

cuda_core/cuda/core/experimental/_event.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ def handle(self) -> cuda.bindings.driver.CUevent:
168168
169169
.. caution::
170170
171-
This handle is a python object. To get the memory address of the C struct, call
172-
``int(Event.handle)`` not ``Event.handle.getPtr()``.
171+
This handle is a Python object. To get the memory address of the underlying C
172+
handle, call ``int(Event.handle)``.
173173
"""
174174
return self._mnff.handle

cuda_core/cuda/core/experimental/_linker.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -506,8 +506,8 @@ def handle(self) -> LinkerHandleT:
506506
507507
.. caution::
508508
509-
This handle is a python object. To get the memory address of the C struct, call
510-
``int(Linker.handle)`` not ``Linker.handle.getPtr()``.
509+
This handle is a Python object. To get the memory address of the underlying C
510+
handle, call ``int(Linker.handle)``.
511511
"""
512512
return self._mnff.handle
513513

cuda_core/cuda/core/experimental/_memory.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,8 @@ def handle(self) -> driver.CUdeviceptr:
8686
8787
.. caution::
8888
89-
This handle is a python object. To get the memory address of the C struct, call
90-
``int(Buffer.handle)`` not ``Buffer.handle.getPtr()``.
89+
This handle is a Python object. To get the memory address of the underlying C
90+
handle, call ``int(Buffer.handle)``.
9191
"""
9292
return self._mnff.ptr
9393

cuda_core/cuda/core/experimental/_module.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,7 @@ def handle(self):
358358
359359
.. caution::
360360
361-
This handle is a python object. To get the memory address of the C struct, call
362-
``int(ObjectCode.handle)`` not ``ObjectCode.handle.getPtr()``.
361+
This handle is a Python object. To get the memory address of the underlying C
362+
handle, call ``int(ObjectCode.handle)``.
363363
"""
364364
return self._handle

cuda_core/cuda/core/experimental/_program.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -527,7 +527,7 @@ def handle(self) -> ProgramHandleT:
527527
528528
.. caution::
529529
530-
This handle is a python object. To get the memory address of the C struct, call
531-
``int(Program.handle)`` not ``Program.handle.getPtr()``.
530+
This handle is a Python object. To get the memory address of the underlying C
531+
handle, call ``int(Program.handle)``.
532532
"""
533533
return self._mnff.handle

cuda_core/cuda/core/experimental/_stream.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -193,8 +193,8 @@ def handle(self) -> cuda.bindings.driver.CUstream:
193193
194194
.. caution::
195195
196-
This handle is a python object. To get the memory address of the C struct, call
197-
``int(Stream.handle)`` not ``Stream.handle.getPtr()``.
196+
This handle is a Python object. To get the memory address of the underlying C
197+
handle, call ``int(Stream.handle)``.
198198
"""
199199
return self._mnff.handle
200200

0 commit comments

Comments
 (0)