P4 to Git Change 1443821 by asalmanp@asalmanp-ocl-stg on 2017/08/04 16:24:19

SWDEV-79278 - [OCL][PAL] use HwPipeBottom to query the start time of an event.
	The reason is that if there are many dispatches run in a loop with profiling enabled, then it is possible that the HwPipeStart of an event can occur before the HwPipeBottom of the previous dispatch and this will affect the timing reported by profiling.

	ReviewBoardURL = http://ocltc.amd.com/reviews/r/13242/diff/1/

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/pal/paltimestamp.cpp#3 edit


[ROCm/clr commit: 543cc3223a]
This commit is contained in:
foreman
2017-08-04 16:48:42 -04:00
والد 5a1b2dfb08
کامیت beb6c4ee1c
@@ -19,7 +19,7 @@ TimeStamp::~TimeStamp() {}
void TimeStamp::begin(bool sdma) {
if (!flags_.beginIssued_) {
gpu().iCmd()->CmdWriteTimestamp(Pal::HwPipePoint::HwPipeTop, *iMem_,
gpu().iCmd()->CmdWriteTimestamp(Pal::HwPipePoint::HwPipeBottom, *iMem_,
memOffset_ + CommandStartTime * sizeof(uint64_t));
flags_.beginIssued_ = true;
}