Arcane  4.2.3.0
Documentation développeur
Chargement...
Recherche...
Aucune correspondance
MessagePassingMpiEnum.h
1// -*- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature -*-
2//-----------------------------------------------------------------------------
3// Copyright 2000-2026 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/* MessagePassingMpiEnum.h (C) 2000-2026 */
9/* */
10/* Enumeration des differentes operations MPI. */
11/*---------------------------------------------------------------------------*/
12#ifndef ARCCORE_MESSAGEPASSINGMPI_MESSAGEPASSINGMPIENUM_H
13#define ARCCORE_MESSAGEPASSINGMPI_MESSAGEPASSINGMPIENUM_H
14/*---------------------------------------------------------------------------*/
15/*---------------------------------------------------------------------------*/
16
17#include "arccore/message_passing_mpi/MessagePassingMpiGlobal.h"
18
19#include "arccore/collections/CollectionsGlobal.h"
20
22#include "arccore/base/String.h"
23
24/*---------------------------------------------------------------------------*/
25/*---------------------------------------------------------------------------*/
26
27namespace Arcane::MessagePassing::Mpi
28{
29
30/*---------------------------------------------------------------------------*/
31/*---------------------------------------------------------------------------*/
36enum class ARCCORE_MESSAGEPASSINGMPI_EXPORT eMpiName
37{
38 Bcast = 0,
39 Gather = 1,
40 Gatherv = 2,
41 Allgather = 3,
42 Allgatherv = 4,
43 Scatterv = 5,
44 Alltoall = 6,
45 Alltoallv = 7,
46 Barrier = 8,
47 Reduce = 9,
48 Allreduce = 10,
49 Scan = 11,
50 Sendrecv = 12,
51 Isend = 13,
52 Send = 14,
53 Irecv = 15,
54 Recv = 16,
55 Test = 17,
56 Probe = 18,
57 Get_count = 19,
58 Wait = 20,
59 Waitall = 21,
60 Testsome = 22,
61 Waitsome = 23,
62 ScanExclusive = 24,
63 NameOffset = 25 // Attention a bien laisser ce champ en dernier (avec sa valeur a jour) si on rajoute des enums !
64};
65
66/*---------------------------------------------------------------------------*/
67/*---------------------------------------------------------------------------*/
73class ARCCORE_MESSAGEPASSINGMPI_EXPORT MpiInfo
74{
75 public:
76
77 // Ctor : on construit tout a la volee plutot que de stocker une enorme table de string
78 explicit MpiInfo(eMpiName mpi_operation);
79 ~MpiInfo() = default;
80
82 const String& name() const;
83
85 const String& description() const;
86
87 private:
88
89 String m_name;
90 String m_description;
91};
92
93/*---------------------------------------------------------------------------*/
94/*---------------------------------------------------------------------------*/
95
96} // namespace Arcane::MessagePassing::Mpi
97
98/*---------------------------------------------------------------------------*/
99/*---------------------------------------------------------------------------*/
100
101namespace Arccore::MessagePassing::Mpi
102{
103using Arcane::MessagePassing::Mpi::eMpiName;
105} // namespace Arccore::MessagePassing::Mpi
106
107/*---------------------------------------------------------------------------*/
108/*---------------------------------------------------------------------------*/
109
110#endif
Déclarations des types de la composante 'base' de Arccore.
Structure informative liee aux enumerationx pour les operations MPI. Donne le nom associe a l'enum ai...
const String & description() const
Accesseur sur la description associee a l'enum.
const String & name() const
Accesseur sur le nom associe a l'enum.
Chaîne de caractères unicode.