fix: check for gpu hang during wait for ring completion

Related-To: NEO-13490

Signed-off-by: Szymon Morek <szymon.morek@intel.com>
This commit is contained in:
Szymon Morek
2025-01-09 15:34:25 +00:00
committed by Compute-Runtime-Automation
parent 3e9f1d0730
commit f3c9362fc5
7 changed files with 60 additions and 10 deletions

View File

@@ -7,6 +7,7 @@
#pragma once
#include "shared/source/helpers/common_types.h"
#include "shared/source/helpers/constants.h"
#include "shared/source/helpers/timestamp_packet_constants.h"
#include "shared/source/helpers/timestamp_packet_container.h"
#include "shared/source/memory_manager/multi_graphics_allocation.h"
@@ -352,7 +353,7 @@ struct Event : _ze_event_handle_t {
uint64_t inOrderExecSignalValue = 0;
uint32_t inOrderAllocationOffset = 0;
std::chrono::microseconds gpuHangCheckPeriod{500'000};
std::chrono::microseconds gpuHangCheckPeriod{CommonConstants::gpuHangCheckTimeInUS};
std::bitset<EventPacketsCount::maxKernelSplit> l3FlushAppliedOnKernel;
size_t contextStartOffset = 0u;

View File

@@ -1,5 +1,5 @@
/*
* Copyright (C) 2020-2022 Intel Corporation
* Copyright (C) 2020-2025 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
@@ -8,6 +8,7 @@
#pragma once
#include "shared/source/command_stream/task_count_helper.h"
#include "shared/source/helpers/constants.h"
#include <level_zero/ze_api.h>
@@ -39,7 +40,7 @@ struct Fence : _ze_fence_handle_t {
protected:
Fence(CommandQueueImp *cmdQueueImp) : cmdQueue(cmdQueueImp) {}
std::chrono::microseconds gpuHangCheckPeriod{500'000};
std::chrono::microseconds gpuHangCheckPeriod{CommonConstants::gpuHangCheckTimeInUS};
CommandQueueImp *cmdQueue;
TaskCountType taskCount = 0;
};