Arcane
v3.16.0.0
Documentation développeur
Chargement...
Recherche...
Aucune correspondance
ParallelReplication.cc
1
// -*- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature -*-
2
//-----------------------------------------------------------------------------
3
// Copyright 2000-2023 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
/* ParallelReplicationInfo.cc (C) 2000-2023 */
9
/* */
10
/* Informations sur la réplication de sous-domaines. */
11
/*---------------------------------------------------------------------------*/
12
/*---------------------------------------------------------------------------*/
13
14
#include "arcane/impl/ParallelReplication.h"
15
#include "arcane/IParallelMng.h"
16
17
/*---------------------------------------------------------------------------*/
18
/*---------------------------------------------------------------------------*/
19
20
namespace
Arcane
21
{
22
23
/*---------------------------------------------------------------------------*/
24
/*---------------------------------------------------------------------------*/
25
26
ParallelReplication::
27
ParallelReplication
()
28
: m_is_active(false)
29
, m_nb_replication(1)
30
, m_replication_rank(0)
31
, m_is_master_rank(true)
32
, m_master_replication_rank(0)
33
{
34
}
35
36
/*---------------------------------------------------------------------------*/
37
/*---------------------------------------------------------------------------*/
38
39
ParallelReplication::
40
ParallelReplication
(
Int32
replica_rank,
Int32
nb_replica,
Ref<IParallelMng>
replica_pm)
41
: m_is_active(nb_replica!=1)
42
, m_nb_replication(nb_replica)
43
, m_replication_rank(replica_rank)
44
, m_is_master_rank(replica_rank==0)
45
, m_master_replication_rank(0)
46
, m_replica_parallel_mng(replica_pm)
47
{
48
}
49
50
/*---------------------------------------------------------------------------*/
51
/*---------------------------------------------------------------------------*/
52
53
ParallelReplication::
54
~ParallelReplication()
55
{
56
}
57
58
/*---------------------------------------------------------------------------*/
59
/*---------------------------------------------------------------------------*/
60
61
}
// End namespace Arcane
62
63
/*---------------------------------------------------------------------------*/
64
/*---------------------------------------------------------------------------*/
Arcane::ParallelReplication::ParallelReplication
ParallelReplication()
Constructeur sans réplication.
Definition
ParallelReplication.cc:27
Arcane::Ref
Référence à une instance.
Definition
arccore/src/base/arccore/base/Ref.h:143
Arcane
-*- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature -*-
Definition
AcceleratorGlobal.h:36
Arcane::Int32
std::int32_t Int32
Type entier signé sur 32 bits.
Definition
ArccoreGlobal.h:184
arcane
impl
ParallelReplication.cc
Généré le Lundi 31 Mars 2025 02:53:06 pour Arcane par
1.13.2