mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 06:49:52 +08:00
Use GfxPartition for GPU address range allocations
[2/n] - OsAgnosticMemoryManager Related-To: NEO-2877 Change-Id: I887126362381ac960608a2150fae211631d3cd5b Signed-off-by: Venevtsev, Igor <igor.venevtsev@intel.com>
This commit is contained in:
committed by
sys_ocldev
parent
bb6dfd4fe6
commit
165d1e4e55
@@ -11,7 +11,13 @@
|
||||
#include "runtime/helpers/aligned_memory.h"
|
||||
|
||||
namespace NEO {
|
||||
|
||||
size_t getSizeToMap() {
|
||||
return static_cast<size_t>(alignUp(4 * GB - 8096, 4096));
|
||||
}
|
||||
|
||||
size_t getSizeToReserve() {
|
||||
return maxNBitValue<47> / 4;
|
||||
}
|
||||
|
||||
} // namespace NEO
|
||||
|
||||
Reference in New Issue
Block a user