SWDEV-508279 - Improve HIP event profiling

There are 2 functional changes to this patch:
* Use GPU timing for internal markers for HIP.
* Measure CPU time closer to GPU timer, to reduce delta between GPU/CPU timestamp measurements.

There are some smaller non-functional updates:
* waifForFence -> waitForFence typo
* Remove unused drmProfiling

Change-Id: I4c5fa600a842ab60e454888779edcac8449a902a
이 커밋은 다음에 포함됨:
Aidan Belton-Schure 작성하고 Aidan Belton-Schure가 2025-02-13 04:15:40 -05:00를 커밋함
1 부모 c23913f6e7
커밋 179801a750
4 파일이 변경됨
+33 -21

검색과 일치하는 파일 없음

+3 -1
파일 보기
@@ -224,7 +224,9 @@ hipError_t Event::recordCommand(amd::Command*& command, amd::HostQueue* stream,
releaseFlags = amd::Device::kCacheStateInvalid;
}
// Always submit a EventMarker.
command = new hip::EventMarker(*stream, !kMarkerDisableFlush, true, releaseFlags, batch_flush);
constexpr bool kMarkerTs = true;
command =
new hip::EventMarker(*stream, !kMarkerDisableFlush, kMarkerTs, releaseFlags, batch_flush);
}
return hipSuccess;
}