Skip to content

Commit f924736

Browse files
committed
Pass context handle instead of object
1 parent 11974c6 commit f924736

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cuda_core/cuda/core/experimental/_device.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1228,7 +1228,7 @@ def create_event(self, options: Optional[EventOptions] = None) -> Event:
12281228
Newly created event object.
12291229
12301230
"""
1231-
return Event._init(self._id, self.context, options)
1231+
return Event._init(self._id, self.context._handle, options)
12321232

12331233
@precondition(_check_context_initialized)
12341234
def allocate(self, size, stream=None) -> Buffer:

0 commit comments

Comments
 (0)