compute-runtime/unit_tests/os_interface/linux/allocator_helper.cpp

20 lines
345 B
C++

/*
* Copyright (C) 2018-2020 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#include "core/os_interface/linux/allocator_helper.h"
#include "core/helpers/basic_math.h"
namespace NEO {
size_t getSizeToReserve() {
// 4 x sizeof(Heap32) + 2 x sizeof(Standard/Standard64k)
return (4 * 4 + 2 * 4) * GB;
}
} // namespace NEO