Set event->_stream on hipHccModuleLaunchKernel path if start/stop used
Ensure _stream is always non-null in recorded events. Fixes isDefaultStream fault.
This commit is contained in:
+2
-2
@@ -455,10 +455,10 @@ hipError_t ihipModuleLaunchKernel(hipFunction_t f,
|
||||
|
||||
|
||||
if (startEvent) {
|
||||
startEvent->attachToCompletionFuture(&cf, hipEventTypeStartCommand);
|
||||
startEvent->attachToCompletionFuture(&cf, hStream, hipEventTypeStartCommand);
|
||||
}
|
||||
if (stopEvent) {
|
||||
stopEvent->attachToCompletionFuture (&cf, hipEventTypeStopCommand);
|
||||
stopEvent->attachToCompletionFuture (&cf, hStream, hipEventTypeStopCommand);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user