Files
compute-runtime/runtime/dll/linux/allocator_helper.cpp

18 lines
354 B
C++
Raw Normal View History

/*
* 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