From e336f8e875c983592d0c772eed983a13761b8bc6 Mon Sep 17 00:00:00 2001 From: Maciej Dziuban Date: Wed, 12 May 2021 13:58:14 +0000 Subject: [PATCH] Add memory constant Signed-off-by: Maciej Dziuban --- shared/source/helpers/constants.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/shared/source/helpers/constants.h b/shared/source/helpers/constants.h index 6316d71925..bc0b819fe7 100644 --- a/shared/source/helpers/constants.h +++ b/shared/source/helpers/constants.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2017-2020 Intel Corporation + * Copyright (C) 2017-2021 Intel Corporation * * SPDX-License-Identifier: MIT * @@ -34,6 +34,7 @@ constexpr size_t minBufferAlignment = 4; constexpr size_t cacheLineSize = 64; constexpr size_t pageSize = 4 * kiloByte; constexpr size_t pageSize64k = 64 * kiloByte; +constexpr size_t pageSize2Mb = 2 * megaByte; constexpr size_t preferredAlignment = pageSize; // alignment preferred for performance reasons, i.e. internal allocations constexpr size_t allocationAlignment = pageSize; // alignment required to gratify incoming pointer, i.e. passed host_ptr constexpr size_t slmWindowAlignment = 128 * kiloByte;