mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 14:55:24 +08:00
improve stub for zetKernelGetProfileInfo with ULT
Signed-off-by: davidoli <david.olien@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
c0268abc26
commit
8fdd1931a9
@@ -705,6 +705,19 @@ HWTEST_F(KernelPropertiesTests, givenValidKernelThenPropertiesAreRetrieved) {
|
||||
sizeof(kernelProperties.uuid.mid)));
|
||||
}
|
||||
|
||||
HWTEST_F(KernelPropertiesTests, givenValidKernelThenProfilePropertiesAreRetrieved) {
|
||||
zet_profile_properties_t kernelProfileProperties = {};
|
||||
|
||||
kernelProfileProperties.flags = std::numeric_limits<uint32_t>::max();
|
||||
kernelProfileProperties.numTokens = std::numeric_limits<uint32_t>::max();
|
||||
|
||||
ze_result_t res = kernel->getProfileInfo(&kernelProfileProperties);
|
||||
EXPECT_EQ(ZE_RESULT_SUCCESS, res);
|
||||
|
||||
EXPECT_EQ(0U, kernelProfileProperties.flags);
|
||||
EXPECT_EQ(0U, kernelProfileProperties.numTokens);
|
||||
}
|
||||
|
||||
HWTEST_F(KernelPropertiesTests, whenSettingValidKernelIndirectAccessFlagsThenFlagsAreSetCorrectly) {
|
||||
UnifiedMemoryControls unifiedMemoryControls = kernel->getUnifiedMemoryControls();
|
||||
EXPECT_EQ(false, unifiedMemoryControls.indirectDeviceAllocationsAllowed);
|
||||
|
||||
Reference in New Issue
Block a user