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

Ensure _stream is always non-null in recorded events.
Fixes isDefaultStream fault.
Bu işleme şunda yer alıyor:
Ben Sander
2017-05-30 21:54:33 -05:00
ebeveyn 997ed19bb8
işleme 6cc5dc0326
3 değiştirilmiş dosya ile 7 ekleme ve 4 silme
+3 -1
Dosyayı Görüntüle
@@ -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;
}