mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 23:03:02 +08:00
Remove getSupportedClVersion function from Device
Related-To: NEO-3938 Change-Id: Ida4e0d8b3a758376ea433960c8a329c061b15666 Signed-off-by: Filip Hazubski <filip.hazubski@intel.com>
This commit is contained in:
committed by
sys_ocldev
parent
307a5cb822
commit
5be85293d6
@@ -77,7 +77,9 @@ void ClDevice::allocateSyncBufferHandler() {
|
||||
}
|
||||
}
|
||||
|
||||
unsigned int ClDevice::getSupportedClVersion() const { return device.getSupportedClVersion(); }
|
||||
unsigned int ClDevice::getSupportedClVersion() const {
|
||||
return device.getHardwareInfo().capabilityTable.clVersionSupport;
|
||||
}
|
||||
|
||||
void ClDevice::retainApi() {
|
||||
auto parentDeviceId = deviceInfo.parentDevice;
|
||||
|
||||
@@ -912,7 +912,7 @@ TEST_F(BuiltInTests, BuiltinDispatchInfoBuilderGetBuilderForUnknownBuiltInOp) {
|
||||
}
|
||||
|
||||
HWCMDTEST_F(IGFX_GEN8_CORE, BuiltInTests, getSchedulerKernel) {
|
||||
if (pDevice->getSupportedClVersion() >= 20) {
|
||||
if (pClDevice->getSupportedClVersion() >= 20) {
|
||||
SchedulerKernel &schedulerKernel = pContext->getSchedulerKernel();
|
||||
std::string name = SchedulerKernel::schedulerName;
|
||||
EXPECT_EQ(name, schedulerKernel.getKernelInfo().name);
|
||||
@@ -920,7 +920,7 @@ HWCMDTEST_F(IGFX_GEN8_CORE, BuiltInTests, getSchedulerKernel) {
|
||||
}
|
||||
|
||||
HWCMDTEST_F(IGFX_GEN8_CORE, BuiltInTests, getSchedulerKernelForSecondTimeDoesNotCreateNewKernel) {
|
||||
if (pDevice->getSupportedClVersion() >= 20) {
|
||||
if (pClDevice->getSupportedClVersion() >= 20) {
|
||||
SchedulerKernel &schedulerKernel = pContext->getSchedulerKernel();
|
||||
|
||||
Program *program = schedulerKernel.getProgram();
|
||||
|
||||
@@ -904,7 +904,7 @@ HWCMDTEST_F(IGFX_GEN8_CORE, EnqueueKernelTest, givenCacheFlushAfterWalkerEnabled
|
||||
}
|
||||
|
||||
HWCMDTEST_F(IGFX_GEN8_CORE, EnqueueAuxKernelTests, givenParentKernelWhenAuxTranslationIsRequiredThenMakeEnqueueBlocking) {
|
||||
if (pDevice->getSupportedClVersion() >= 20) {
|
||||
if (pClDevice->getSupportedClVersion() >= 20) {
|
||||
MyCmdQ<FamilyType> cmdQ(context, pClDevice);
|
||||
size_t gws[3] = {1, 0, 0};
|
||||
|
||||
@@ -926,7 +926,7 @@ HWCMDTEST_F(IGFX_GEN8_CORE, EnqueueAuxKernelTests, givenParentKernelWhenAuxTrans
|
||||
}
|
||||
|
||||
HWCMDTEST_F(IGFX_GEN8_CORE, EnqueueAuxKernelTests, givenParentKernelButNoDeviceQueueWhenEnqueueIsCalledItReturnsInvalidOperation) {
|
||||
if (pDevice->getSupportedClVersion() >= 20) {
|
||||
if (pClDevice->getSupportedClVersion() >= 20) {
|
||||
MyCmdQ<FamilyType> cmdQ(context, pClDevice);
|
||||
size_t gws[3] = {1, 0, 0};
|
||||
|
||||
|
||||
@@ -39,7 +39,7 @@ TEST_F(DeviceTest, WhenDeviceIsCreatedThenCommandStreamReceiverIsNotNull) {
|
||||
}
|
||||
|
||||
TEST_F(DeviceTest, WhenDeviceIsCreatedThenSupportedClVersionMatchesHardwareInfo) {
|
||||
auto version = pDevice->getSupportedClVersion();
|
||||
auto version = pClDevice->getSupportedClVersion();
|
||||
auto version2 = pDevice->getHardwareInfo().capabilityTable.clVersionSupport;
|
||||
|
||||
EXPECT_EQ(version, version2);
|
||||
|
||||
@@ -124,7 +124,7 @@ HWCMDTEST_P(IGFX_GEN8_CORE, ParentKernelEnqueueTest, givenParentKernelWhenEnqueu
|
||||
}
|
||||
|
||||
HWCMDTEST_P(IGFX_GEN8_CORE, ParentKernelEnqueueTest, GivenBlockKernelWithPrivateSurfaceWhenParentKernelIsEnqueuedThenPrivateSurfaceIsMadeResident) {
|
||||
if (pDevice->getSupportedClVersion() >= 20) {
|
||||
if (pClDevice->getSupportedClVersion() >= 20) {
|
||||
size_t offset[3] = {0, 0, 0};
|
||||
size_t gws[3] = {1, 1, 1};
|
||||
int32_t executionStamp = 0;
|
||||
@@ -155,7 +155,7 @@ HWCMDTEST_P(IGFX_GEN8_CORE, ParentKernelEnqueueTest, GivenBlockKernelWithPrivate
|
||||
}
|
||||
|
||||
HWCMDTEST_P(IGFX_GEN8_CORE, ParentKernelEnqueueTest, GivenBlocksWithPrivateMemoryWhenEnqueueKernelThatIsBlockedByUserEventIsCalledThenPrivateAllocationIsMadeResidentWhenEventUnblocks) {
|
||||
if (pDevice->getSupportedClVersion() >= 20) {
|
||||
if (pClDevice->getSupportedClVersion() >= 20) {
|
||||
size_t offset[3] = {0, 0, 0};
|
||||
size_t gws[3] = {1, 1, 1};
|
||||
|
||||
@@ -192,7 +192,7 @@ HWCMDTEST_P(IGFX_GEN8_CORE, ParentKernelEnqueueTest, GivenBlocksWithPrivateMemor
|
||||
}
|
||||
|
||||
HWCMDTEST_P(IGFX_GEN8_CORE, ParentKernelEnqueueTest, GivenParentKernelWithBlocksWhenEnqueueKernelIsCalledThenBlockKernelIsaAllocationIsMadeResident) {
|
||||
if (pDevice->getSupportedClVersion() >= 20) {
|
||||
if (pClDevice->getSupportedClVersion() >= 20) {
|
||||
size_t offset[3] = {0, 0, 0};
|
||||
size_t gws[3] = {1, 1, 1};
|
||||
|
||||
@@ -210,7 +210,7 @@ HWCMDTEST_P(IGFX_GEN8_CORE, ParentKernelEnqueueTest, GivenParentKernelWithBlocks
|
||||
}
|
||||
|
||||
HWCMDTEST_P(IGFX_GEN8_CORE, ParentKernelEnqueueTest, GivenBlockKernelManagerFilledWithBlocksWhenMakeInternalAllocationsResidentIsCalledThenAllSurfacesAreMadeResident) {
|
||||
if (pDevice->getSupportedClVersion() >= 20) {
|
||||
if (pClDevice->getSupportedClVersion() >= 20) {
|
||||
auto blockKernelManager = pKernel->getProgram()->getBlockKernelManager();
|
||||
auto &csr = pDevice->getUltCommandStreamReceiver<FamilyType>();
|
||||
csr.storeMakeResidentAllocations = true;
|
||||
@@ -225,7 +225,7 @@ HWCMDTEST_P(IGFX_GEN8_CORE, ParentKernelEnqueueTest, GivenBlockKernelManagerFill
|
||||
}
|
||||
|
||||
HWCMDTEST_P(IGFX_GEN8_CORE, ParentKernelEnqueueTest, GivenParentKernelWithBlocksWhenEnqueueKernelThatIsBlockedByUserEventIsCalledThenBlockKernelIsaAllocationIsMadeResidentWhenEventUnblocks) {
|
||||
if (pDevice->getSupportedClVersion() >= 20) {
|
||||
if (pClDevice->getSupportedClVersion() >= 20) {
|
||||
size_t offset[3] = {0, 0, 0};
|
||||
size_t gws[3] = {1, 1, 1};
|
||||
|
||||
@@ -455,7 +455,7 @@ class ParentKernelEnqueueFixture : public ExecutionModelSchedulerTest,
|
||||
|
||||
HWCMDTEST_F(IGFX_GEN8_CORE, ParentKernelEnqueueFixture, GivenParentKernelWhenEnqueuedTheDefaultDeviceQueueAndEventPoolIsPatched) {
|
||||
|
||||
if (pDevice->getSupportedClVersion() >= 20) {
|
||||
if (pClDevice->getSupportedClVersion() >= 20) {
|
||||
size_t offset[3] = {0, 0, 0};
|
||||
size_t gws[3] = {1, 1, 1};
|
||||
|
||||
@@ -481,7 +481,7 @@ HWCMDTEST_F(IGFX_GEN8_CORE, ParentKernelEnqueueFixture, GivenParentKernelWhenEnq
|
||||
|
||||
HWCMDTEST_F(IGFX_GEN8_CORE, ParentKernelEnqueueFixture, GivenParentKernelWhenEnqueuedThenBlocksDSHOnReflectionSurfaceArePatchedWithDeviceQueueAndEventPoolAddresses) {
|
||||
|
||||
if (pDevice->getSupportedClVersion() >= 20) {
|
||||
if (pClDevice->getSupportedClVersion() >= 20) {
|
||||
size_t offset[3] = {0, 0, 0};
|
||||
size_t gws[3] = {1, 1, 1};
|
||||
DeviceQueueHw<FamilyType> *pDevQueueHw = castToObject<DeviceQueueHw<FamilyType>>(pDevQueue);
|
||||
@@ -521,7 +521,7 @@ HWCMDTEST_F(IGFX_GEN8_CORE, ParentKernelEnqueueFixture, GivenParentKernelWhenEnq
|
||||
|
||||
HWCMDTEST_F(IGFX_GEN8_CORE, ParentKernelEnqueueFixture, GivenParentKernelWhenEnqueuedToNonBlockedQueueThenDeviceQueueCriticalSetionIsAcquired) {
|
||||
|
||||
if (pDevice->getSupportedClVersion() >= 20) {
|
||||
if (pClDevice->getSupportedClVersion() >= 20) {
|
||||
size_t offset[3] = {0, 0, 0};
|
||||
size_t gws[3] = {1, 1, 1};
|
||||
DeviceQueueHw<FamilyType> *pDevQueueHw = castToObject<DeviceQueueHw<FamilyType>>(pDevQueue);
|
||||
@@ -536,7 +536,7 @@ HWCMDTEST_F(IGFX_GEN8_CORE, ParentKernelEnqueueFixture, GivenParentKernelWhenEnq
|
||||
|
||||
HWCMDTEST_F(IGFX_GEN8_CORE, ParentKernelEnqueueFixture, GivenParentKernelWhenEnqueuedToBlockedQueueThenDeviceQueueCriticalSetionIsNotAcquired) {
|
||||
|
||||
if (pDevice->getSupportedClVersion() >= 20) {
|
||||
if (pClDevice->getSupportedClVersion() >= 20) {
|
||||
size_t offset[3] = {0, 0, 0};
|
||||
size_t gws[3] = {1, 1, 1};
|
||||
DeviceQueueHw<FamilyType> *pDevQueueHw = castToObject<DeviceQueueHw<FamilyType>>(pDevQueue);
|
||||
@@ -555,7 +555,7 @@ HWCMDTEST_F(IGFX_GEN8_CORE, ParentKernelEnqueueFixture, GivenParentKernelWhenEnq
|
||||
|
||||
HWCMDTEST_F(IGFX_GEN8_CORE, ParentKernelEnqueueFixture, ParentKernelEnqueuedToNonBlockedQueueFlushesCSRWithSLM) {
|
||||
|
||||
if (pDevice->getSupportedClVersion() >= 20) {
|
||||
if (pClDevice->getSupportedClVersion() >= 20) {
|
||||
size_t offset[3] = {0, 0, 0};
|
||||
size_t gws[3] = {1, 1, 1};
|
||||
int32_t execStamp;
|
||||
@@ -570,7 +570,7 @@ HWCMDTEST_F(IGFX_GEN8_CORE, ParentKernelEnqueueFixture, ParentKernelEnqueuedToNo
|
||||
|
||||
HWCMDTEST_F(IGFX_GEN8_CORE, ParentKernelEnqueueFixture, ParentKernelEnqueuedWithSchedulerReturnInstanceRunsSimulation) {
|
||||
|
||||
if (pDevice->getSupportedClVersion() >= 20) {
|
||||
if (pClDevice->getSupportedClVersion() >= 20) {
|
||||
|
||||
DebugManagerStateRestore dbgRestorer;
|
||||
DebugManager.flags.SchedulerSimulationReturnInstance.set(1);
|
||||
@@ -599,7 +599,7 @@ HWCMDTEST_F(IGFX_GEN8_CORE, ParentKernelEnqueueFixture, ParentKernelEnqueuedWith
|
||||
}
|
||||
|
||||
HWCMDTEST_F(IGFX_GEN8_CORE, ParentKernelEnqueueFixture, givenCsrInBatchingModeWhenExecutionModelKernelIsSubmittedThenItIsFlushed) {
|
||||
if (pDevice->getSupportedClVersion() >= 20) {
|
||||
if (pClDevice->getSupportedClVersion() >= 20) {
|
||||
auto mockCsr = new MockCsrHw2<FamilyType>(*pDevice->executionEnvironment, pDevice->getRootDeviceIndex());
|
||||
mockCsr->overrideDispatchPolicy(DispatchMode::BatchedDispatch);
|
||||
pDevice->resetCommandStreamReceiver(mockCsr);
|
||||
@@ -622,7 +622,7 @@ HWCMDTEST_F(IGFX_GEN8_CORE, ParentKernelEnqueueFixture, givenCsrInBatchingModeWh
|
||||
|
||||
HWCMDTEST_F(IGFX_GEN8_CORE, ParentKernelEnqueueFixture, ParentKernelEnqueueMarksCSRMediaVFEStateDirty) {
|
||||
|
||||
if (pDevice->getSupportedClVersion() >= 20) {
|
||||
if (pClDevice->getSupportedClVersion() >= 20) {
|
||||
size_t offset[3] = {0, 0, 0};
|
||||
size_t gws[3] = {1, 1, 1};
|
||||
int32_t execStamp;
|
||||
|
||||
@@ -261,7 +261,7 @@ class MockParentKernelDispatch : public ExecutionModelSchedulerTest,
|
||||
|
||||
HWCMDTEST_F(IGFX_GEN8_CORE, MockParentKernelDispatch, GivenBlockedQueueWhenParentKernelIsDispatchedThenDshHeapForIndirectObjectHeapIsUsed) {
|
||||
|
||||
if (pDevice->getSupportedClVersion() >= 20) {
|
||||
if (pClDevice->getSupportedClVersion() >= 20) {
|
||||
MockParentKernel *mockParentKernel = MockParentKernel::create(*context);
|
||||
|
||||
auto blockedCommandsData = createBlockedCommandsData(*pCmdQ);
|
||||
@@ -293,7 +293,7 @@ HWCMDTEST_F(IGFX_GEN8_CORE, MockParentKernelDispatch, GivenParentKernelWhenDispa
|
||||
typedef typename FamilyType::MEDIA_INTERFACE_DESCRIPTOR_LOAD MEDIA_INTERFACE_DESCRIPTOR_LOAD;
|
||||
typedef typename FamilyType::INTERFACE_DESCRIPTOR_DATA INTERFACE_DESCRIPTOR_DATA;
|
||||
|
||||
if (pDevice->getSupportedClVersion() >= 20) {
|
||||
if (pClDevice->getSupportedClVersion() >= 20) {
|
||||
MockParentKernel *mockParentKernel = MockParentKernel::create(*context);
|
||||
|
||||
KernelOperation *blockedCommandsData = nullptr;
|
||||
@@ -338,7 +338,7 @@ HWCMDTEST_F(IGFX_GEN8_CORE, MockParentKernelDispatch, GivenParentKernelWhenDispa
|
||||
|
||||
HWCMDTEST_F(IGFX_GEN8_CORE, MockParentKernelDispatch, GivenUsedSSHHeapWhenParentKernelIsDispatchedThenNewSSHIsAllocated) {
|
||||
|
||||
if (pDevice->getSupportedClVersion() >= 20) {
|
||||
if (pClDevice->getSupportedClVersion() >= 20) {
|
||||
MockParentKernel *mockParentKernel = MockParentKernel::create(*context);
|
||||
|
||||
KernelOperation *blockedCommandsData = nullptr;
|
||||
@@ -379,7 +379,7 @@ HWCMDTEST_F(IGFX_GEN8_CORE, MockParentKernelDispatch, GivenUsedSSHHeapWhenParent
|
||||
|
||||
HWCMDTEST_F(IGFX_GEN8_CORE, MockParentKernelDispatch, GivenNotUsedSSHHeapWhenParentKernelIsDispatchedThenExistingSSHIsUsed) {
|
||||
|
||||
if (pDevice->getSupportedClVersion() >= 20) {
|
||||
if (pClDevice->getSupportedClVersion() >= 20) {
|
||||
MockParentKernel *mockParentKernel = MockParentKernel::create(*context);
|
||||
|
||||
KernelOperation *blockedCommandsData = nullptr;
|
||||
|
||||
@@ -43,7 +43,7 @@ HWCMDTEST_F(IGFX_GEN8_CORE, ExecutionModelSchedulerFixture, dispatchScheduler) {
|
||||
using PIPE_CONTROL = typename FamilyType::PIPE_CONTROL;
|
||||
using MI_BATCH_BUFFER_START = typename FamilyType::MI_BATCH_BUFFER_START;
|
||||
|
||||
if (pDevice->getSupportedClVersion() >= 20) {
|
||||
if (pClDevice->getSupportedClVersion() >= 20) {
|
||||
DeviceQueueHw<FamilyType> *pDevQueueHw = castToObject<DeviceQueueHw<FamilyType>>(pDevQueue);
|
||||
SchedulerKernel &scheduler = context->getSchedulerKernel();
|
||||
|
||||
@@ -172,7 +172,7 @@ HWCMDTEST_F(IGFX_GEN8_CORE, ExecutionModelSchedulerFixture, dispatchSchedulerDoe
|
||||
using MEDIA_VFE_STATE = typename FamilyType::MEDIA_VFE_STATE;
|
||||
using PIPE_CONTROL = typename FamilyType::PIPE_CONTROL;
|
||||
|
||||
if (pDevice->getSupportedClVersion() >= 20) {
|
||||
if (pClDevice->getSupportedClVersion() >= 20) {
|
||||
DeviceQueueHw<FamilyType> *pDevQueueHw = castToObject<DeviceQueueHw<FamilyType>>(pDevQueue);
|
||||
SchedulerKernel &scheduler = context->getSchedulerKernel();
|
||||
|
||||
@@ -241,7 +241,7 @@ HWCMDTEST_F(IGFX_GEN8_CORE, ParentKernelCommandQueueFixture, dispatchSchedulerWi
|
||||
|
||||
HWCMDTEST_F(IGFX_GEN8_CORE, ExecutionModelSchedulerFixture, ForceDispatchSchedulerEnqueuesSchedulerKernel) {
|
||||
|
||||
if (pDevice->getSupportedClVersion() >= 20) {
|
||||
if (pClDevice->getSupportedClVersion() >= 20) {
|
||||
DebugManagerStateRestore dbgRestorer;
|
||||
|
||||
DebugManager.flags.ForceDispatchScheduler.set(true);
|
||||
|
||||
@@ -23,6 +23,6 @@ struct BdwDeviceTest : public DeviceFixture,
|
||||
};
|
||||
|
||||
BDWTEST_F(BdwDeviceTest, givenBdwDeviceWhenAskedForClVersionThenReport21) {
|
||||
auto version = pDevice->getSupportedClVersion();
|
||||
auto version = pClDevice->getSupportedClVersion();
|
||||
EXPECT_EQ(21u, version);
|
||||
}
|
||||
|
||||
@@ -27,7 +27,7 @@ BDWTEST_F(BdwSchedulerTest, givenCallToDispatchSchedulerWhenPipeControlWithCSSta
|
||||
|
||||
using PIPE_CONTROL = typename FamilyType::PIPE_CONTROL;
|
||||
|
||||
if (pDevice->getSupportedClVersion() >= 20) {
|
||||
if (pClDevice->getSupportedClVersion() >= 20) {
|
||||
DeviceQueueHw<FamilyType> *pDevQueueHw = castToObject<DeviceQueueHw<FamilyType>>(pDevQueue);
|
||||
SchedulerKernel &scheduler = context->getSchedulerKernel();
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@ using namespace NEO;
|
||||
typedef Test<DeviceFixture> DeviceTest;
|
||||
|
||||
BXTTEST_F(DeviceTest, getSupportedClVersion12Device) {
|
||||
auto version = pDevice->getSupportedClVersion();
|
||||
auto version = pClDevice->getSupportedClVersion();
|
||||
EXPECT_EQ(12u, version);
|
||||
}
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@ using namespace NEO;
|
||||
typedef Test<DeviceFixture> DeviceTest;
|
||||
|
||||
SKLTEST_F(DeviceTest, getSupportedClVersion21Device) {
|
||||
auto version = pDevice->getSupportedClVersion();
|
||||
auto version = pClDevice->getSupportedClVersion();
|
||||
EXPECT_EQ(21u, version);
|
||||
}
|
||||
|
||||
|
||||
@@ -1362,7 +1362,7 @@ HWCMDTEST_F(IGFX_GEN8_CORE, KernelEventPoolSurfaceTest, givenStatelessKernelWhen
|
||||
pKernelInfo->requiresSshForBuffers = false;
|
||||
|
||||
ASSERT_EQ(CL_SUCCESS, pKernel->initialize());
|
||||
if (pDevice->getSupportedClVersion() < 20) {
|
||||
if (pClDevice->getSupportedClVersion() < 20) {
|
||||
EXPECT_EQ(0u, pKernel->getSurfaceStateHeapSize());
|
||||
} else {
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user