Skip to content

Commit 317ef37

Browse files
Do not pass active partitions from dispatched kernel to context class
Related-To: NEO-6244 Signed-off-by: Zbigniew Zdanowicz <[email protected]>
1 parent 30b3f5c commit 317ef37

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

opencl/source/command_queue/hardware_interface_xehp_and_later.inl

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -138,9 +138,6 @@ inline void HardwareInterface<GfxFamily>::programWalker(
138138
false,
139139
kernel.usesImages(),
140140
workPartitionAllocationGpuVa);
141-
if (queueCsr.isStaticWorkPartitioningEnabled()) {
142-
queueCsr.setActivePartitions(std::max(queueCsr.getActivePartitions(), partitionCount));
143-
}
144141
auto timestampPacket = currentTimestampPacketNodes->peekNodes().at(currentDispatchIndex);
145142
timestampPacket->setPacketsUsed(partitionCount);
146143
} else {

opencl/test/unit_test/command_queue/dispatch_walker_tests_xehp_and_later.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1456,7 +1456,7 @@ struct XeHPAndLaterDispatchWalkerBasicTestStaticPartition : public XeHPAndLaterD
14561456
}
14571457
};
14581458

1459-
HWCMDTEST_F(IGFX_XE_HP_CORE, XeHPAndLaterDispatchWalkerBasicTestStaticPartition, givenStaticPartitioningWhenEnqueueingKernelThenMultipleActivePartitionsAreSetInCsr) {
1459+
HWCMDTEST_F(IGFX_XE_HP_CORE, XeHPAndLaterDispatchWalkerBasicTestStaticPartition, givenStaticPartitioningWhenEnqueueingKernelThenNoMultipleActivePartitionsAreSetInCsr) {
14601460
if (!OSInterface::osEnableLocalMemory) {
14611461
GTEST_SKIP();
14621462
}
@@ -1466,7 +1466,7 @@ HWCMDTEST_F(IGFX_XE_HP_CORE, XeHPAndLaterDispatchWalkerBasicTestStaticPartition,
14661466
auto &commandStreamReceiver = cmdQ->getUltCommandStreamReceiver();
14671467
EXPECT_EQ(1u, commandStreamReceiver.activePartitions);
14681468
cmdQ->enqueueKernel(kernel->mockKernel, 1, nullptr, gws, lws, 0, nullptr, nullptr);
1469-
EXPECT_EQ(2u, commandStreamReceiver.activePartitions);
1469+
EXPECT_EQ(1u, commandStreamReceiver.activePartitions);
14701470

14711471
HardwareParse hwParser;
14721472
hwParser.parseCommands<FamilyType>(*cmdQ);

0 commit comments

Comments
 (0)