SWDEV-363369 - Elapsed time needs only stop event timings if both start and stop events are recorded

Change-Id: I91c9ce79aacf1014ae77600d1250cfccd9dd6039
Este commit está contenido en:
Satyanvesh Dittakavi committed 2022-11-09 00:31:06 -05:00
1 padre 5ff27faa04
commit 30d6497953
4 files changed
+31 -26

No files matched your search

+4 -4
Ver fichero
@@ -141,8 +141,8 @@ hipError_t IPCEvent::streamWait(hipStream_t stream, uint flags) {
}
hipError_t IPCEvent::recordCommand(amd::Command*& command, amd::HostQueue* queue, uint32_t flags) {
bool recorded = isRecorded();
if (!recorded) {
bool unrecorded = isUnRecorded();
if (unrecorded) {
command = new amd::Marker(*queue, kMarkerDisableFlush);
} else {
return Event::recordCommand(command, queue);
@@ -152,8 +152,8 @@ hipError_t IPCEvent::recordCommand(amd::Command*& command, amd::HostQueue* queue
hipError_t IPCEvent::enqueueRecordCommand(hipStream_t stream, amd::Command* command, bool record) {
amd::HostQueue* queue = hip::getQueue(stream);
bool recorded = isRecorded();
if (!recorded) {
bool unrecorded = isUnRecorded();
if (unrecorded) {
amd::Event& tEvent = command->event();
createIpcEventShmemIfNeeded();
int write_index = ipc_evt_.ipc_shmem_->write_index++;