We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 227d9c1 commit e96bb4aCopy full SHA for e96bb4a
1 file changed
cuda_core/cuda/core/experimental/_stream.pyx
@@ -262,6 +262,7 @@ cdef class Stream:
262
# on the stream. Event flags such as disabling timing, nonblocking,
263
# and CU_EVENT_RECORD_EXTERNAL, can be set in EventOptions.
264
if event is None:
265
+ self._get_device_and_context()
266
event = Event._init(self._device_id, self._ctx_handle, options)
267
err, = driver.cuEventRecord(event.handle, self._handle)
268
raise_if_driver_error(err)
0 commit comments