Skip to content

Commit 796ef8d

Browse files
hmt23grospelliergilles
authored andcommitted
[arcane] Replace hardcoded 4096 bytes by a call to get system page size.
This call supports POSIX systems (Unix, Linux, macOS) and Windows.
1 parent 421860e commit 796ef8d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

arcane/src/arcane/accelerator/cuda/CudaAccelerator.cc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
// -*- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature -*-
22
//-----------------------------------------------------------------------------
3-
// Copyright 2000-2023 CEA (www.cea.fr) IFPEN (www.ifpenergiesnouvelles.com)
3+
// Copyright 2000-2024 CEA (www.cea.fr) IFPEN (www.ifpenergiesnouvelles.com)
44
// See the top-level COPYRIGHT file for details.
55
// SPDX-License-Identifier: Apache-2.0
66
//-----------------------------------------------------------------------------
77
/*---------------------------------------------------------------------------*/
8-
/* CudaAccelerator.cc (C) 2000-2023 */
8+
/* CudaAccelerator.cc (C) 2000-2024 */
99
/* */
1010
/* Backend 'CUDA' pour les accélérateurs. */
1111
/*---------------------------------------------------------------------------*/
@@ -100,7 +100,7 @@ class UnifiedMemoryCudaMemoryAllocator
100100
{
101101
public:
102102

103-
static constexpr Int64 page_size = 4096;
103+
Int64 page_size = platform::getPageSize();
104104

105105
void initialize()
106106
{

0 commit comments

Comments
 (0)