P4 to Git Change 1600056 by skudchad@skudchad_test2_win_opencl on 2018/08/30 12:04:10
SWDEV-145570 - [HIP] Fix elapsed time calc for hipEvent ReviewBoardURL = http://ocltc.amd.com/reviews/r/15717/diff/ Affected files ... ... //depot/stg/opencl/drivers/opencl/api/hip/hip_event.cpp#6 edit
Tento commit je obsažen v:
@@ -119,7 +119,8 @@ hipError_t hipEventElapsedTime(float *ms, hipEvent_t start, hipEvent_t stop) {
|
||||
HIP_RETURN(hipErrorInvalidValue);
|
||||
}
|
||||
|
||||
*ms = static_cast<float>(eStop->event_->profilingInfo().submitted_ - eStart->event_->profilingInfo().submitted_)/1000000.f;
|
||||
*ms = static_cast<float>(static_cast<int64_t>(eStop->event_->profilingInfo().submitted_ -
|
||||
eStart->event_->profilingInfo().submitted_))/1000000.f;
|
||||
|
||||
HIP_RETURN(hipSuccess);
|
||||
}
|
||||
|
||||
Odkázat v novém úkolu
Zablokovat Uživatele