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

Ensure _stream is always non-null in recorded events.
Fixes isDefaultStream fault.
Este commit está contenido en:
Ben Sander
2017-05-30 21:54:33 -05:00
padre 063539308e
commit cb60763737
Se han modificado 3 ficheros con 7 adiciones y 4 borrados
+3 -1
Ver fichero
@@ -42,11 +42,13 @@ ihipEvent_t::ihipEvent_t(unsigned flags)
// Attach to an existing completion future:
void ihipEvent_t::attachToCompletionFuture(const hc::completion_future *cf, ihipEventType_t eventType)
void ihipEvent_t::attachToCompletionFuture(const hc::completion_future *cf,
hipStream_t stream, ihipEventType_t eventType)
{
_state = hipEventStatusRecording;
_marker = *cf;
_type = eventType;
_stream = stream;
}