Arcane  v3.16.7.0
Documentation développeur
Chargement...
Recherche...
Aucune correspondance
HybridMachineMemoryWindowBaseInternalCreator.h
1// -*- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature -*-
2//-----------------------------------------------------------------------------
3// Copyright 2000-2025 CEA (www.cea.fr) IFPEN (www.ifpenergiesnouvelles.com)
4// See the top-level COPYRIGHT file for details.
5// SPDX-License-Identifier: Apache-2.0
6//-----------------------------------------------------------------------------
7/*---------------------------------------------------------------------------*/
8/* HybridMachineMemoryWindowBaseInternalCreator.h (C) 2000-2025 */
9/* */
10/* Classe permettant de créer des objets de type */
11/* HybridMachineMemoryWindowBaseInternal. Une instance de cet objet doit */
12/* être partagée par tous les threads d'un processus. */
13/*---------------------------------------------------------------------------*/
14
15#ifndef ARCANE_PARALLEL_MPITHREAD_INTERNAL_HYBRIDMACHINEMEMORYWINDOWBASEINTERNALCREATOR_H
16#define ARCANE_PARALLEL_MPITHREAD_INTERNAL_HYBRIDMACHINEMEMORYWINDOWBASEINTERNALCREATOR_H
17
18/*---------------------------------------------------------------------------*/
19/*---------------------------------------------------------------------------*/
20
21#include "arcane/utils/Ref.h"
22#include "arcane/utils/UniqueArray.h"
23
24/*---------------------------------------------------------------------------*/
25/*---------------------------------------------------------------------------*/
26
27namespace Arcane
28{
29class MpiParallelMng;
30
31namespace MessagePassing
32{
35
36 namespace Mpi
37 {
39 }
40} // namespace MessagePassing
41} // namespace Arcane
42
43/*---------------------------------------------------------------------------*/
44/*---------------------------------------------------------------------------*/
45
47{
48
49/*---------------------------------------------------------------------------*/
50/*---------------------------------------------------------------------------*/
51
52class HybridMachineMemoryWindowBaseInternalCreator
53{
54 public:
55
56 HybridMachineMemoryWindowBaseInternalCreator(Int32 nb_rank_local_proc, IThreadBarrier* barrier);
57 ~HybridMachineMemoryWindowBaseInternalCreator() = default;
58
59 public:
60
61 HybridMachineMemoryWindowBaseInternal* createWindow(Int32 my_rank_global, Int64 sizeof_segment, Int32 sizeof_type, MpiParallelMng* mpi_parallel_mng);
62
63 private:
64
65 void _buildMachineRanksArray(const Mpi::MpiMachineMemoryWindowBaseInternalCreator* mpi_window_creator);
66
67 private:
68
69 Int32 m_nb_rank_local_proc;
70 Int64 m_sizeof_segment_local_proc;
71 IThreadBarrier* m_barrier;
73 Ref<IMachineMemoryWindowBaseInternal> m_sizeof_sub_segments;
74 Ref<IMachineMemoryWindowBaseInternal> m_sum_sizeof_sub_segments;
75 UniqueArray<Int32> m_machine_ranks;
76};
77
78/*---------------------------------------------------------------------------*/
79/*---------------------------------------------------------------------------*/
80
81} // namespace Arcane::MessagePassing
82
83/*---------------------------------------------------------------------------*/
84/*---------------------------------------------------------------------------*/
85
86#endif
Classe permettant de créer une fenêtre mémoire pour un noeud de calcul.
Gestionnaire du parallélisme utilisant MPI.
Référence à une instance.
Vecteur 1D de données avec sémantique par valeur (style STL).
Déclarations des types et méthodes utilisés par les mécanismes d'échange de messages.
-*- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature -*-
std::int64_t Int64
Type entier signé sur 64 bits.
std::int32_t Int32
Type entier signé sur 32 bits.