Set event->_stream on hipHccModuleLaunchKernel path if start/stop used

Ensure _stream is always non-null in recorded events.
Fixes isDefaultStream fault.
Dieser Commit ist enthalten in:
Ben Sander
2017-05-30 21:54:33 -05:00
Ursprung 063539308e
Commit cb60763737
3 geänderte Dateien mit 7 neuen und 4 gelöschten Zeilen
+2 -2
Datei anzeigen
@@ -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);
}