Files
compute-runtime/shared/source/memory_manager/memory_pool.h
Dunajski, Bartosz af7bcbf99c Revert "refactor: split CpuInaccessible MemoryPool types to Device and System"
This reverts commit 2e8cf5fdf5.

Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com>
2023-10-17 10:03:14 +02:00

35 lines
764 B
C++

/*
* Copyright (C) 2018-2023 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#pragma once
namespace NEO {
enum class MemoryPool {
MemoryNull,
System4KBPages,
System64KBPages,
System4KBPagesWith32BitGpuAddressing,
System64KBPagesWith32BitGpuAddressing,
SystemCpuInaccessible,
LocalMemory,
};
namespace MemoryPoolHelper {
template <typename... Args>
inline bool isSystemMemoryPool(Args... pool) {
return ((pool == MemoryPool::System4KBPages ||
pool == MemoryPool::System64KBPages ||
pool == MemoryPool::System4KBPagesWith32BitGpuAddressing ||
pool == MemoryPool::System64KBPagesWith32BitGpuAddressing) &&
...);
}
} // namespace MemoryPoolHelper
} // namespace NEO