2018-07-13 18:50:55 +02:00
|
|
|
/*
|
2022-06-01 21:13:52 +00:00
|
|
|
* Copyright (C) 2018-2022 Intel Corporation
|
2018-07-13 18:50:55 +02:00
|
|
|
*
|
2018-09-18 09:11:08 +02:00
|
|
|
* SPDX-License-Identifier: MIT
|
2018-07-13 18:50:55 +02:00
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
2022-06-01 21:13:52 +00:00
|
|
|
namespace NEO {
|
2018-07-13 18:50:55 +02:00
|
|
|
|
2022-06-01 21:13:52 +00:00
|
|
|
enum class MemoryPool {
|
|
|
|
|
MemoryNull,
|
|
|
|
|
System4KBPages,
|
|
|
|
|
System64KBPages,
|
|
|
|
|
System4KBPagesWith32BitGpuAddressing,
|
|
|
|
|
System64KBPagesWith32BitGpuAddressing,
|
|
|
|
|
SystemCpuInaccessible,
|
|
|
|
|
LocalMemory,
|
2018-07-13 18:50:55 +02:00
|
|
|
};
|
2018-07-24 18:36:26 +02:00
|
|
|
|
2022-06-01 21:13:52 +00:00
|
|
|
namespace MemoryPoolHelper {
|
|
|
|
|
|
|
|
|
|
inline bool isSystemMemoryPool(MemoryPool pool) {
|
|
|
|
|
return pool == MemoryPool::System4KBPages ||
|
|
|
|
|
pool == MemoryPool::System64KBPages ||
|
|
|
|
|
pool == MemoryPool::System4KBPagesWith32BitGpuAddressing ||
|
|
|
|
|
pool == MemoryPool::System64KBPagesWith32BitGpuAddressing;
|
2018-07-24 18:36:26 +02:00
|
|
|
}
|
2022-06-01 21:13:52 +00:00
|
|
|
|
|
|
|
|
} // namespace MemoryPoolHelper
|
|
|
|
|
} // namespace NEO
|