Implement GPU hang detection on Windows

This change uses value of cpuAddress from monitored fence
to detect GPU hang.

Related-To: NEO-5313
Signed-off-by: Patryk Wrobel <patryk.wrobel@intel.com>
This commit is contained in:
Patryk Wrobel
2022-02-04 16:03:36 +00:00
committed by Compute-Runtime-Automation
parent 61ca84e94b
commit 18cafd3a52
12 changed files with 69 additions and 86 deletions

View File

@@ -38,6 +38,10 @@ struct MockDriverModel : NEO::DriverModel {
size_t getMaxMemAllocSize() const override {
return maxAllocSize;
}
bool isGpuHangDetected(NEO::OsContext &osContext) override {
return false;
}
};
struct MockDriverModelWDDM : NEO::DriverModel {
@@ -51,6 +55,10 @@ struct MockDriverModelWDDM : NEO::DriverModel {
size_t getMaxMemAllocSize() const override {
return maxAllocSize;
}
bool isGpuHangDetected(NEO::OsContext &osContext) override {
return false;
}
};
struct MockDriverModelDRM : NEO::DriverModel {
@@ -64,6 +72,10 @@ struct MockDriverModelDRM : NEO::DriverModel {
size_t getMaxMemAllocSize() const override {
return maxAllocSize;
}
bool isGpuHangDetected(NEO::OsContext &osContext) override {
return false;
}
};
struct ContextShareableMock : public L0::ContextImp {

View File

@@ -1,5 +1,5 @@
/*
* Copyright (C) 2020-2021 Intel Corporation
* Copyright (C) 2020-2022 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
@@ -366,6 +366,10 @@ class UnknownDriverModel : public DriverModel {
PhysicalDevicePciBusInfo pciBusInfo(PhysicalDevicePciBusInfo::InvalidValue, PhysicalDevicePciBusInfo::InvalidValue, PhysicalDevicePciBusInfo::InvalidValue, PhysicalDevicePciBusInfo::InvalidValue);
return pciBusInfo;
}
bool isGpuHangDetected(OsContext &osContext) override {
return false;
}
};
using SysmanUnknownDriverModelTest = Test<DeviceFixture>;