Revert "fix: count active modules for enabling per-dispatch private memory"

This reverts commit a483b361f9.

Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com>
This commit is contained in:
Lukasz Jobczyk
2025-01-15 11:00:40 +00:00
committed by Compute-Runtime-Automation
parent 621ceaf9ec
commit 2dd9940f60
8 changed files with 12 additions and 79 deletions

View File

@@ -5,6 +5,7 @@
*
*/
#include "shared/source/compiler_interface/external_functions.h"
#include "shared/source/gmm_helper/gmm_helper.h"
#include "shared/source/helpers/blit_helper.h"
#include "shared/source/helpers/surface_format_info.h"
@@ -228,18 +229,6 @@ TEST(MemoryManagerTest, givenFailureOnRegisterLocalMemoryAllocationWhenAllocatin
EXPECT_EQ(nullptr, memoryManager.allocateGraphicsMemoryWithProperties(properties));
}
TEST(MemoryManagerTest, givenDifferentSizesWhenRegisteringAndUnregisteringModulePrivateMemorySizesThenCorrectValuesAreReturned) {
MockMemoryManager memoryManager(true, true);
auto privateMemorySizeLock = memoryManager.lockKernelManagedPrivateMemorySize();
EXPECT_EQ(0u, memoryManager.getKernelManagedPrivateMemorySize());
memoryManager.registerKernelManagedPrivateMemorySize(1234u);
EXPECT_EQ(1234u, memoryManager.getKernelManagedPrivateMemorySize());
memoryManager.unregisterKernelManagedPrivateMemorySize(1000u);
EXPECT_EQ(234u, memoryManager.getKernelManagedPrivateMemorySize());
memoryManager.unregisterKernelManagedPrivateMemorySize(234u);
EXPECT_EQ(0u, memoryManager.getKernelManagedPrivateMemorySize());
}
using MemoryhManagerMultiContextResourceTests = ::testing::Test;
HWTEST_F(MemoryhManagerMultiContextResourceTests, givenAllocationUsedByManyOsContextsWhenCheckingUsageBeforeDestroyThenMultiContextDestructorIsUsedForWaitingForAllOsContexts) {
auto executionEnvironment = new MockExecutionEnvironment(defaultHwInfo.get(), true, 2);