SWDEV-270961 - Update hip_programming_guide.md for event handling
Change-Id: Ieadac9972e5ee13c05ccb42a679866f494f96f47
这个提交包含在:
1 父节点
f18a0d1405
当前提交
cb22874ebd
2 个文件已更改
+14
-5
没有与搜索条件相匹配的文件
@@ -1524,6 +1524,13 @@ hipError_t hipEventSynchronize(hipEvent_t event);
|
||||
* recorded on one or both events (that is, hipEventQuery() would return #hipErrorNotReady on at
|
||||
* least one of the events), then #hipErrorNotReady is returned.
|
||||
*
|
||||
* Note, for HIP Events used in kernel dispatch using hipExtLaunchKernelGGL/hipExtLaunchKernel,
|
||||
* events passed in hipExtLaunchKernelGGL/hipExtLaunchKernel are not explicitly recorded and should
|
||||
* only be used to get elapsed time for that specific launch. In case events are used across
|
||||
* multiple dispatches, for example, start and stop events from different hipExtLaunchKernelGGL/
|
||||
* hipExtLaunchKernel calls, they will be treated as invalid unrecorded events, HIP will throw
|
||||
* error "hipErrorInvalidHandle" from hipEventElapsedTime.
|
||||
*
|
||||
* @see hipEventCreate, hipEventCreateWithFlags, hipEventQuery, hipEventDestroy, hipEventRecord,
|
||||
* hipEventSynchronize
|
||||
*/
|
||||
|
||||
在新工单中引用
屏蔽一个用户