mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-18 13:54:58 +08:00
Add PVC unit test target
Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
d5f3ac37bf
commit
1f09d40e5a
@@ -184,6 +184,23 @@ void PVC_CONFIG::setupHardwareInfoMultiTile(HardwareInfo *hwInfo, bool setupFeat
|
|||||||
gtSysInfo->IsL3HashModeEnabled = false;
|
gtSysInfo->IsL3HashModeEnabled = false;
|
||||||
gtSysInfo->IsDynamicallyPopulated = false;
|
gtSysInfo->IsDynamicallyPopulated = false;
|
||||||
|
|
||||||
|
// non-zero values for unit tests
|
||||||
|
if (gtSysInfo->SliceCount == 0) {
|
||||||
|
gtSysInfo->SliceCount = 2;
|
||||||
|
gtSysInfo->SubSliceCount = 8;
|
||||||
|
gtSysInfo->EUCount = 40;
|
||||||
|
gtSysInfo->MaxEuPerSubSlice = gtSysInfo->EUCount / gtSysInfo->SubSliceCount;
|
||||||
|
gtSysInfo->MaxSlicesSupported = gtSysInfo->SliceCount;
|
||||||
|
gtSysInfo->MaxSubSlicesSupported = gtSysInfo->SubSliceCount;
|
||||||
|
|
||||||
|
gtSysInfo->L3BankCount = 1;
|
||||||
|
|
||||||
|
gtSysInfo->CCSInfo.IsValid = true;
|
||||||
|
gtSysInfo->CCSInfo.NumberOfCCSEnabled = 1;
|
||||||
|
|
||||||
|
hwInfo->featureTable.ftrBcsInfo = 1;
|
||||||
|
}
|
||||||
|
|
||||||
if (setupFeatureTableAndWorkaroundTable) {
|
if (setupFeatureTableAndWorkaroundTable) {
|
||||||
PVC::setupFeatureAndWorkaroundTable(hwInfo);
|
PVC::setupFeatureAndWorkaroundTable(hwInfo);
|
||||||
}
|
}
|
||||||
|
|||||||
9
target_unit_tests/xe_hpc_core/CMakeLists.txt
Normal file
9
target_unit_tests/xe_hpc_core/CMakeLists.txt
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
#
|
||||||
|
# Copyright (C) 2021 Intel Corporation
|
||||||
|
#
|
||||||
|
# SPDX-License-Identifier: MIT
|
||||||
|
#
|
||||||
|
|
||||||
|
if(TESTS_XE_HPC_CORE)
|
||||||
|
add_subdirectories()
|
||||||
|
endif()
|
||||||
9
target_unit_tests/xe_hpc_core/pvc/CMakeLists.txt
Normal file
9
target_unit_tests/xe_hpc_core/pvc/CMakeLists.txt
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
#
|
||||||
|
# Copyright (C) 2021 Intel Corporation
|
||||||
|
#
|
||||||
|
# SPDX-License-Identifier: MIT
|
||||||
|
#
|
||||||
|
|
||||||
|
if(TESTS_PVC)
|
||||||
|
include(${CMAKE_CURRENT_SOURCE_DIR}${BRANCH_DIR_SUFFIX}enable_pvc_testing.cmake)
|
||||||
|
endif()
|
||||||
10
target_unit_tests/xe_hpc_core/pvc/enable_pvc_testing.cmake
Normal file
10
target_unit_tests/xe_hpc_core/pvc/enable_pvc_testing.cmake
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
#
|
||||||
|
# Copyright (C) 2021 Intel Corporation
|
||||||
|
#
|
||||||
|
# SPDX-License-Identifier: MIT
|
||||||
|
#
|
||||||
|
|
||||||
|
if(TESTS_PVC)
|
||||||
|
set(unit_test_config "pvc/2/4/5/0") # non-zero values for unit tests
|
||||||
|
include(${NEO_SOURCE_DIR}/cmake/run_ult_target.cmake)
|
||||||
|
endif()
|
||||||
Reference in New Issue
Block a user