mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 14:55:24 +08:00
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:
committed by
Compute-Runtime-Automation
parent
61ca84e94b
commit
18cafd3a52
@@ -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 {
|
||||
|
||||
@@ -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>;
|
||||
|
||||
Reference in New Issue
Block a user