Added null check in hipEventSynchronize (#1627)

* Added missing null check in hipEventSynchronize
* Minor correction in the Event API description


[ROCm/hip commit: b865a50e44]
이 커밋은 다음에 포함됨:
Sarbojit2019 작성하고 Maneesh Gupta가 2019-11-18 12:18:55 +05:30를 커밋함
1 부모 cd3bf4e205
커밋 a4f2c7717f
2 파일이 변경됨
+7 -7

검색과 일치하는 파일 없음

+2 -2
파일 보기
@@ -883,7 +883,7 @@ hipError_t hipStreamAddCallback(hipStream_t stream, hipStreamCallback_t callback
* #hipEventDefault : Default flag. The event will use active synchronization and will support
timing. Blocking synchronization provides lowest possible latency at the expense of dedicating a
CPU to poll on the eevent.
CPU to poll on the event.
* #hipEventBlockingSync : The event will use blocking synchronization : if hipEventSynchronize is
called on this event, the thread will block until the event completes. This can increase latency
for the synchroniation but can result in lower power and more resources for other CPU threads.
@@ -935,7 +935,7 @@ hipError_t hipEventCreate(hipEvent_t* event);
* If hipEventRecord() has been previously called on this event, then this call will overwrite any
* existing state in event.
*
* If this function is called on a an event that is currently being recorded, results are undefined
* If this function is called on an event that is currently being recorded, results are undefined
* - either outstanding recording may save state into the event, and the order is not guaranteed.
*
* @see hipEventCreate, hipEventCreateWithFlags, hipEventQuery, hipEventSynchronize,