mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-10 07:08:04 +08:00
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:
committed by
Compute-Runtime-Automation
parent
621ceaf9ec
commit
2dd9940f60
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user