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

Ensure _stream is always non-null in recorded events.
Fixes isDefaultStream fault.


[ROCm/hip commit: cb60763737]
이 커밋은 다음에 포함됨:
Ben Sander
2017-05-30 21:54:33 -05:00
부모 f99ab93b61
커밋 59833bea80
3개의 변경된 파일과 7개의 추가작업 그리고 4개의 파일을 삭제
+3 -1
파일 보기
@@ -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;
}