Add supportsOnDemandPageFaults to HW capability table

Change-Id: I99a2ed9cfaadb60d049628b03bc3abdfde4877b1
Signed-off-by: Raiyan Latif <raiyan.latif@intel.com>
This commit is contained in:
Raiyan Latif
2020-06-05 01:32:00 -07:00
committed by sys_ocldev
parent de2cce1238
commit af2fe237b4
16 changed files with 84 additions and 1 deletions

View File

@@ -8,6 +8,7 @@ if(TESTS_GEN12LP)
target_sources(${TARGET_NAME} PRIVATE
${COMPUTE_RUNTIME_ULT_GEN12LP}
${CMAKE_CURRENT_SOURCE_DIR}/CMakeLists.txt
${CMAKE_CURRENT_SOURCE_DIR}/test_device_gen12lp.cpp
)
target_include_directories(${TARGET_NAME} PRIVATE ${COMPUTE_RUNTIME_DIR}/level_zero/core/source/gen12lp/definitions${BRANCH_DIR_SUFFIX}/)

View File

@@ -0,0 +1,30 @@
/*
* Copyright (C) 2020 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#include "test.h"
#include "level_zero/core/test/unit_tests/fixtures/device_fixture.h"
namespace L0 {
namespace ult {
using ::testing::_;
using ::testing::AnyNumber;
using ::testing::Return;
using DevicePropertyTest = Test<DeviceFixture>;
HWTEST2_F(DevicePropertyTest, givenReturnedDevicePropertiesThenExpectedPageFaultSupportReturned, IsGen12LP) {
ze_device_properties_t deviceProps;
deviceProps.version = ZE_DEVICE_PROPERTIES_VERSION_CURRENT;
device->getProperties(&deviceProps);
EXPECT_FALSE(deviceProps.onDemandPageFaultsSupported);
}
} // namespace ult
} // namespace L0

View File

@@ -10,5 +10,6 @@ if(TESTS_GEN9)
${CMAKE_CURRENT_SOURCE_DIR}/CMakeLists.txt
${CMAKE_CURRENT_SOURCE_DIR}/test_cmdlist_append_launch_kernel_gen9.cpp
${CMAKE_CURRENT_SOURCE_DIR}/test_cmdqueue_thread_arbitration_policy_gen9.cpp
${CMAKE_CURRENT_SOURCE_DIR}/test_device_gen9.cpp
)
endif()

View File

@@ -0,0 +1,40 @@
/*
* Copyright (C) 2020 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#include "test.h"
#include "level_zero/core/test/unit_tests/fixtures/device_fixture.h"
namespace L0 {
namespace ult {
using ::testing::_;
using ::testing::AnyNumber;
using ::testing::Return;
using KernelPropertyTest = Test<DeviceFixture>;
HWTEST2_F(KernelPropertyTest, givenReturnedKernelPropertiesThenExpectedDp4aSupportReturned, IsGen9) {
ze_device_kernel_properties_t kernelProps;
kernelProps.version = ZE_DEVICE_KERNEL_PROPERTIES_VERSION_CURRENT;
device->getKernelProperties(&kernelProps);
EXPECT_FALSE(kernelProps.dp4aSupported);
}
using DevicePropertyTest = Test<DeviceFixture>;
HWTEST2_F(DevicePropertyTest, givenReturnedDevicePropertiesThenExpectedPageFaultSupportReturned, IsGen9) {
ze_device_properties_t deviceProps;
deviceProps.version = ZE_DEVICE_PROPERTIES_VERSION_CURRENT;
device->getProperties(&deviceProps);
EXPECT_FALSE(deviceProps.onDemandPageFaultsSupported);
}
} // namespace ult
} // namespace L0