Files
compute-runtime/shared/test/common/mocks/linux/mock_os_context_linux.h
Patryk Wrobel 498cf5e871 Implement GPU hang detection
This change uses DRM_IOCTL_I915_GET_RESET_STATS to detect
GPU hangs. When such situation is encountered, then
zeCommandQueueSynchronize returns ZE_RESULT_ERROR_DEVICE_LOST.

Related-To: NEO-5313
Signed-off-by: Patryk Wrobel <patryk.wrobel@intel.com>
2022-01-31 13:48:17 +01:00

16 lines
325 B
C++

/*
* Copyright (C) 2022 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#pragma once
#include "shared/source/os_interface/linux/os_context_linux.h"
class MockOsContextLinux : public NEO::OsContextLinux {
public:
using NEO::OsContextLinux::drmContextIds;
using NEO::OsContextLinux::OsContextLinux;
};