Skip to content

Commit b1d82cd

Browse files
Add Local memory to MemoryPool
Change-Id: I908d4d99b53ed3ab959bbdc094cc1ae7bdfe2971 Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com>
1 parent 3c1bb4a commit b1d82cd

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

runtime/memory_manager/memory_pool.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ constexpr Type System64KBPages{2};
1919
constexpr Type System4KBPagesWith32BitGpuAddressing{3};
2020
constexpr Type System64KBPagesWith32BitGpuAddressing{4};
2121
constexpr Type SystemCpuInaccessible{5};
22+
constexpr Type LocalMemory{6};
2223

2324
inline bool isSystemMemoryPool(Type pool) {
2425
return pool == System4KBPages ||

unit_tests/memory_manager/memory_pool_tests.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (C) 2018 Intel Corporation
2+
* Copyright (C) 2018-2019 Intel Corporation
33
*
44
* SPDX-License-Identifier: MIT
55
*
@@ -25,7 +25,8 @@ TEST(MemoryPool, givenSystemMemoryPoolTypesWhenIsSystemMemoryPoolIsCalledThenTru
2525
TEST(MemoryPool, givenNonSystemMemoryPoolTypesWhenIsSystemMemoryPoolIsCalledThenFalseIsReturned) {
2626

2727
MemoryPool::Type memoryTypes[] = {MemoryPool::MemoryNull,
28-
MemoryPool::SystemCpuInaccessible};
28+
MemoryPool::SystemCpuInaccessible,
29+
MemoryPool::LocalMemory};
2930

3031
for (size_t i = 0; i < arrayCount(memoryTypes); i++) {
3132
EXPECT_FALSE(MemoryPool::isSystemMemoryPool(memoryTypes[i]));

0 commit comments

Comments
 (0)