mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-28 00:03:14 +08:00
Change-Id: I143b7af450ff48d4958b4bc7137b393a2dc0eb64 Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
18 lines
354 B
C++
18 lines
354 B
C++
/*
|
|
* Copyright (C) 2018-2019 Intel Corporation
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*
|
|
*/
|
|
|
|
#include "runtime/os_interface/linux/allocator_helper.h"
|
|
|
|
#include "core/helpers/basic_math.h"
|
|
#include "runtime/helpers/aligned_memory.h"
|
|
|
|
namespace NEO {
|
|
size_t getSizeToMap() {
|
|
return static_cast<size_t>(alignUp(4 * GB - 8096, 4096));
|
|
}
|
|
} // namespace NEO
|