mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-20 00:24:58 +08:00
refactor: remove device enqueue specific code
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
fd2a6b55c2
commit
50e22ef5e7
@@ -108,9 +108,6 @@ struct DeviceGetCapsTest : public ::testing::Test {
|
||||
EXPECT_STREQ("__opencl_c_ext_fp16_local_atomic_min_max", (++openclCFeatureIterator)->name);
|
||||
}
|
||||
}
|
||||
if (hwInfo.capabilityTable.supportsDeviceEnqueue) {
|
||||
EXPECT_STREQ("__opencl_c_device_enqueue", (++openclCFeatureIterator)->name);
|
||||
}
|
||||
if (hwInfo.capabilityTable.supportsPipes) {
|
||||
EXPECT_STREQ("__opencl_c_pipes", (++openclCFeatureIterator)->name);
|
||||
}
|
||||
@@ -1349,25 +1346,14 @@ TEST_F(DeviceGetCapsTest, givenOcl21DeviceWhenCheckingPipesSupportThenPipesAreSu
|
||||
TEST_F(DeviceGetCapsTest, givenCapsDeviceEnqueueWhenCheckingDeviceEnqueueSupportThenNoSupportReported) {
|
||||
auto hwInfo = *defaultHwInfo;
|
||||
|
||||
for (auto isDeviceEnqueueSupportedByHw : ::testing::Bool()) {
|
||||
hwInfo.capabilityTable.supportsDeviceEnqueue = isDeviceEnqueueSupportedByHw;
|
||||
auto pClDevice = std::make_unique<MockClDevice>(MockDevice::createWithNewExecutionEnvironment<MockDevice>(&hwInfo));
|
||||
auto &caps = pClDevice->getDeviceInfo();
|
||||
|
||||
auto pClDevice = std::make_unique<MockClDevice>(MockDevice::createWithNewExecutionEnvironment<MockDevice>(&hwInfo));
|
||||
auto &caps = pClDevice->getDeviceInfo();
|
||||
|
||||
size_t deviceEnqueueFeaturesCount = 0;
|
||||
for (auto &openclCFeature : caps.openclCFeatures) {
|
||||
if (0 == strcmp(openclCFeature.name, "__opencl_c_device_enqueue")) {
|
||||
deviceEnqueueFeaturesCount++;
|
||||
}
|
||||
}
|
||||
EXPECT_EQ(0u, caps.maxOnDeviceEvents);
|
||||
EXPECT_EQ(0u, caps.maxOnDeviceQueues);
|
||||
EXPECT_EQ(0u, caps.queueOnDeviceMaxSize);
|
||||
EXPECT_EQ(0u, caps.queueOnDevicePreferredSize);
|
||||
EXPECT_EQ(static_cast<cl_command_queue_properties>(0), caps.queueOnDeviceProperties);
|
||||
EXPECT_EQ(0u, deviceEnqueueFeaturesCount);
|
||||
}
|
||||
EXPECT_EQ(0u, caps.maxOnDeviceEvents);
|
||||
EXPECT_EQ(0u, caps.maxOnDeviceQueues);
|
||||
EXPECT_EQ(0u, caps.queueOnDeviceMaxSize);
|
||||
EXPECT_EQ(0u, caps.queueOnDevicePreferredSize);
|
||||
EXPECT_EQ(static_cast<cl_command_queue_properties>(0), caps.queueOnDeviceProperties);
|
||||
}
|
||||
|
||||
TEST_F(DeviceGetCapsTest, givenPipeSupportForcedWhenCheckingPipeSupportThenPipeIsCorrectlyReported) {
|
||||
|
||||
@@ -63,7 +63,6 @@ const RuntimeCapabilityTable ADLN::capabilityTable{
|
||||
true, // ftr64KBpages
|
||||
false, // supportCacheFlushAfterWalker
|
||||
true, // supportsImages
|
||||
false, // supportsDeviceEnqueue
|
||||
false, // supportsPipes
|
||||
true, // supportsOcl21Features
|
||||
false, // supportsOnDemandPageFaults
|
||||
|
||||
@@ -63,7 +63,6 @@ const RuntimeCapabilityTable ADLP::capabilityTable{
|
||||
true, // ftr64KBpages
|
||||
false, // supportCacheFlushAfterWalker
|
||||
true, // supportsImages
|
||||
false, // supportsDeviceEnqueue
|
||||
false, // supportsPipes
|
||||
true, // supportsOcl21Features
|
||||
false, // supportsOnDemandPageFaults
|
||||
|
||||
@@ -63,7 +63,6 @@ const RuntimeCapabilityTable ADLS::capabilityTable{
|
||||
true, // ftr64KBpages
|
||||
false, // supportCacheFlushAfterWalker
|
||||
true, // supportsImages
|
||||
false, // supportsDeviceEnqueue
|
||||
false, // supportsPipes
|
||||
true, // supportsOcl21Features
|
||||
false, // supportsOnDemandPageFaults
|
||||
|
||||
@@ -63,7 +63,6 @@ const RuntimeCapabilityTable DG1::capabilityTable{
|
||||
true, // instrumentationEnabled
|
||||
true, // supportCacheFlushAfterWalker
|
||||
true, // supportsImages,
|
||||
false, // supportsDeviceEnqueue
|
||||
false, // supportsPipes
|
||||
true, // supportsOcl21Features
|
||||
false, // supportsOnDemandPageFaults
|
||||
|
||||
@@ -63,7 +63,6 @@ const RuntimeCapabilityTable RKL::capabilityTable{
|
||||
true, // instrumentationEnabled
|
||||
false, // supportCacheFlushAfterWalker
|
||||
true, // supportsImages
|
||||
false, // supportsDeviceEnqueue
|
||||
false, // supportsPipes
|
||||
true, // supportsOcl21Features
|
||||
false, // supportsOnDemandPageFaults
|
||||
|
||||
@@ -63,7 +63,6 @@ const RuntimeCapabilityTable TGLLP::capabilityTable{
|
||||
true, // ftr64KBpages
|
||||
false, // supportCacheFlushAfterWalker
|
||||
true, // supportsImages
|
||||
false, // supportsDeviceEnqueue
|
||||
false, // supportsPipes
|
||||
true, // supportsOcl21Features
|
||||
false, // supportsOnDemandPageFaults
|
||||
|
||||
@@ -50,7 +50,6 @@ struct RuntimeCapabilityTable {
|
||||
bool instrumentationEnabled;
|
||||
bool supportCacheFlushAfterWalker;
|
||||
bool supportsImages;
|
||||
bool supportsDeviceEnqueue;
|
||||
bool supportsPipes;
|
||||
bool supportsOcl21Features;
|
||||
bool supportsOnDemandPageFaults;
|
||||
@@ -113,7 +112,6 @@ inline bool operator==(const RuntimeCapabilityTable &lhs, const RuntimeCapabilit
|
||||
result &= (lhs.deviceName == rhs.deviceName);
|
||||
result &= (lhs.supportCacheFlushAfterWalker == rhs.supportCacheFlushAfterWalker);
|
||||
result &= (lhs.supportsImages == rhs.supportsImages);
|
||||
result &= (lhs.supportsDeviceEnqueue == rhs.supportsDeviceEnqueue);
|
||||
result &= (lhs.supportsPipes == rhs.supportsPipes);
|
||||
result &= (lhs.supportsOcl21Features == rhs.supportsOcl21Features);
|
||||
result &= (lhs.supportsOnDemandPageFaults == rhs.supportsOnDemandPageFaults);
|
||||
|
||||
@@ -66,7 +66,6 @@ const RuntimeCapabilityTable BMG::capabilityTable{
|
||||
true, // instrumentationEnabled
|
||||
false, // supportCacheFlushAfterWalker
|
||||
true, // supportsImages
|
||||
false, // supportsDeviceEnqueue
|
||||
false, // supportsPipes
|
||||
true, // supportsOcl21Features
|
||||
true, // supportsOnDemandPageFaults
|
||||
|
||||
@@ -64,7 +64,6 @@ const RuntimeCapabilityTable LNL::capabilityTable{
|
||||
true, // instrumentationEnabled
|
||||
false, // supportCacheFlushAfterWalker
|
||||
true, // supportsImages
|
||||
false, // supportsDeviceEnqueue
|
||||
false, // supportsPipes
|
||||
true, // supportsOcl21Features
|
||||
true, // supportsOnDemandPageFaults
|
||||
|
||||
@@ -64,7 +64,6 @@ const RuntimeCapabilityTable PTL::capabilityTable{
|
||||
true, // instrumentationEnabled
|
||||
false, // supportCacheFlushAfterWalker
|
||||
true, // supportsImages
|
||||
false, // supportsDeviceEnqueue
|
||||
false, // supportsPipes
|
||||
true, // supportsOcl21Features
|
||||
true, // supportsOnDemandPageFaults
|
||||
|
||||
@@ -76,7 +76,6 @@ const RuntimeCapabilityTable PVC::capabilityTable{
|
||||
true, // instrumentationEnabled
|
||||
false, // supportCacheFlushAfterWalker
|
||||
false, // supportsImages
|
||||
false, // supportsDeviceEnqueue
|
||||
false, // supportsPipes
|
||||
true, // supportsOcl21Features
|
||||
true, // supportsOnDemandPageFaults
|
||||
|
||||
@@ -61,7 +61,6 @@ const RuntimeCapabilityTable ARL::capabilityTable{
|
||||
true, // instrumentationEnabled
|
||||
true, // supportCacheFlushAfterWalker
|
||||
true, // supportsImages
|
||||
false, // supportsDeviceEnqueue
|
||||
false, // supportsPipes
|
||||
true, // supportsOcl21Features
|
||||
false, // supportsOnDemandPageFaults
|
||||
|
||||
@@ -66,7 +66,6 @@ const RuntimeCapabilityTable DG2::capabilityTable{
|
||||
true, // instrumentationEnabled
|
||||
true, // supportCacheFlushAfterWalker
|
||||
true, // supportsImages
|
||||
false, // supportsDeviceEnqueue
|
||||
false, // supportsPipes
|
||||
true, // supportsOcl21Features
|
||||
false, // supportsOnDemandPageFaults
|
||||
|
||||
@@ -62,7 +62,6 @@ const RuntimeCapabilityTable MTL::capabilityTable{
|
||||
true, // instrumentationEnabled
|
||||
true, // supportCacheFlushAfterWalker
|
||||
true, // supportsImages
|
||||
false, // supportsDeviceEnqueue
|
||||
false, // supportsPipes
|
||||
true, // supportsOcl21Features
|
||||
false, // supportsOnDemandPageFaults
|
||||
|
||||
@@ -1229,10 +1229,6 @@ HWTEST2_F(DeviceTests, givenHwInfoWhenSlmSizeIsRequiredThenReturnCorrectValue, I
|
||||
EXPECT_EQ(64u, defaultHwInfo->capabilityTable.slmSize);
|
||||
}
|
||||
|
||||
HWCMDTEST_F(IGFX_XE_HP_CORE, DeviceTests, givenXeHPAndLaterProductWhenCheckingDeviceEnqueueSupportThenFalseIsReturned) {
|
||||
EXPECT_FALSE(defaultHwInfo->capabilityTable.supportsDeviceEnqueue);
|
||||
}
|
||||
|
||||
HWCMDTEST_F(IGFX_XE_HP_CORE, DeviceTests, givenXeHPAndLaterProductWhenCheckingPipesSupportThenFalseIsReturned) {
|
||||
EXPECT_FALSE(defaultHwInfo->capabilityTable.supportsPipes);
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2019-2024 Intel Corporation
|
||||
* Copyright (C) 2019-2025 Intel Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
@@ -68,10 +68,6 @@ HWTEST2_F(Gen12LpDeviceCaps, givenTglLpWhenCheckSupportCacheFlushAfterWalkerThen
|
||||
EXPECT_FALSE(pDevice->getHardwareInfo().capabilityTable.supportCacheFlushAfterWalker);
|
||||
}
|
||||
|
||||
GEN12LPTEST_F(Gen12LpDeviceCaps, givenGen12LpDeviceWhenCheckingDeviceEnqueueSupportThenFalseIsReturned) {
|
||||
EXPECT_FALSE(pDevice->getHardwareInfo().capabilityTable.supportsDeviceEnqueue);
|
||||
}
|
||||
|
||||
GEN12LPTEST_F(Gen12LpDeviceCaps, givenGen12LpDeviceWhenCheckingPipesSupportThenFalseIsReturned) {
|
||||
EXPECT_FALSE(pDevice->getHardwareInfo().capabilityTable.supportsPipes);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user