Skip to content

Commit 11974c6

Browse files
committed
Fix order of passed arguments to constructor
1 parent 735185b commit 11974c6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cuda_core/cuda/core/experimental/_stream.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ def record(self, event: Event = None, options: EventOptions = None) -> Event:
244244
# on the stream. Event flags such as disabling timing, nonblocking,
245245
# and CU_EVENT_RECORD_EXTERNAL, can be set in EventOptions.
246246
if event is None:
247-
event = Event._init(self._device_id, options, self._ctx_handle)
247+
event = Event._init(self._device_id, self._ctx_handle, options)
248248
assert_type(event, Event)
249249
handle_return(driver.cuEventRecord(event.handle, self._mnff.handle))
250250
return event

0 commit comments

Comments
 (0)