2018-08-27 18:11:07 +08:00
|
|
|
/*
|
2024-04-09 20:43:12 +08:00
|
|
|
* Copyright (C) 2018-2024 Intel Corporation
|
2018-08-27 18:11:07 +08:00
|
|
|
*
|
2018-09-19 07:45:45 +08:00
|
|
|
* SPDX-License-Identifier: MIT
|
2018-08-27 18:11:07 +08:00
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
2023-02-28 21:26:21 +08:00
|
|
|
#include <cstdint>
|
|
|
|
|
2019-03-26 18:59:46 +08:00
|
|
|
namespace NEO {
|
2023-02-28 21:26:21 +08:00
|
|
|
struct HardwareInfo;
|
2023-12-13 17:17:24 +08:00
|
|
|
enum class TestMode { notSpecified,
|
|
|
|
unitTests,
|
|
|
|
aubTests,
|
|
|
|
aubTestsWithTbx,
|
2024-04-09 20:43:12 +08:00
|
|
|
tbxTests,
|
|
|
|
aubTestsWithoutOutputFiles
|
|
|
|
};
|
|
|
|
|
|
|
|
inline bool isAubTestMode(TestMode testMode) {
|
|
|
|
return testMode == TestMode::aubTests ||
|
|
|
|
testMode == TestMode::aubTestsWithTbx ||
|
|
|
|
testMode == TestMode::aubTestsWithoutOutputFiles;
|
|
|
|
}
|
2018-09-19 07:45:45 +08:00
|
|
|
|
|
|
|
extern TestMode testMode;
|
2023-02-28 21:26:21 +08:00
|
|
|
|
|
|
|
void adjustHwInfoForTests(HardwareInfo &hwInfoForTests, uint32_t euPerSubSlice, uint32_t sliceCount, uint32_t subSlicePerSliceCount, int dieRecovery);
|
2024-04-17 21:08:15 +08:00
|
|
|
void adjustCsrType(TestMode testMode);
|
2019-03-26 18:59:46 +08:00
|
|
|
} // namespace NEO
|