diff --git a/opencl/test/unit_test/xe_hpc_core/pvc/linux/dll/CMakeLists.txt b/opencl/test/unit_test/xe_hpc_core/pvc/linux/dll/CMakeLists.txt new file mode 100644 index 0000000000..a7869117d7 --- /dev/null +++ b/opencl/test/unit_test/xe_hpc_core/pvc/linux/dll/CMakeLists.txt @@ -0,0 +1,11 @@ +# +# Copyright (C) 2021 Intel Corporation +# +# SPDX-License-Identifier: MIT +# + +set(IGDRCL_SRCS_linux_dll_tests_xe_hpc_core_pvc + ${CMAKE_CURRENT_SOURCE_DIR}/CMakeLists.txt + ${CMAKE_CURRENT_SOURCE_DIR}/${BRANCH_DIR_SUFFIX}/device_id_tests_pvc.cpp +) +target_sources(igdrcl_linux_dll_tests PRIVATE ${IGDRCL_SRCS_linux_dll_tests_xe_hpc_core_pvc}) diff --git a/opencl/test/unit_test/xe_hpc_core/pvc/linux/dll/device_id_tests_pvc.cpp b/opencl/test/unit_test/xe_hpc_core/pvc/linux/dll/device_id_tests_pvc.cpp new file mode 100644 index 0000000000..468f00919f --- /dev/null +++ b/opencl/test/unit_test/xe_hpc_core/pvc/linux/dll/device_id_tests_pvc.cpp @@ -0,0 +1,19 @@ +/* + * Copyright (C) 2021 Intel Corporation + * + * SPDX-License-Identifier: MIT + * + */ + +#include "shared/test/common/fixtures/linux/device_id_fixture.h" + +using namespace NEO; + +TEST_F(DeviceIdTests, GivenPvcSupportedDeviceIdThenConfigIsCorrect) { + std::array expectedDescriptors = {{ + {0x0BD0, &PVC_CONFIG::hwInfo, &PVC_CONFIG::setupHardwareInfo, GTTYPE_GT4}, + {0x0BD5, &PVC_CONFIG::hwInfo, &PVC_CONFIG::setupHardwareInfo, GTTYPE_GT4}, + }}; + + testImpl(expectedDescriptors); +} diff --git a/shared/source/dll/devices/devices_additional.inl b/shared/source/dll/devices/devices_additional.inl index b0d3ab166c..0cc69d3aae 100644 --- a/shared/source/dll/devices/devices_additional.inl +++ b/shared/source/dll/devices/devices_additional.inl @@ -5,6 +5,13 @@ * */ +#if SUPPORT_XE_HPC_CORE +#ifdef SUPPORT_PVC +DEVICE(0x0BD0, PVC_CONFIG, GTTYPE_GT4) +DEVICE(0x0BD5, PVC_CONFIG, GTTYPE_GT4) +#endif +#endif + #ifdef SUPPORT_XE_HPG_CORE #ifdef SUPPORT_DG2 DEVICE(0x4F80, DG2_CONFIG, GTTYPE_GT4)