Arcane  v3.15.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-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/* MessagePassingMpiEnum.h (C) 2000-2025 */
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 NameOffset = 24 // Attention a bien laisser ce champ en dernier (avec sa valeur a jour) si on rajoute des enums !
63};
64
65/*---------------------------------------------------------------------------*/
66/*---------------------------------------------------------------------------*/
72class ARCCORE_MESSAGEPASSINGMPI_EXPORT MpiInfo
73{
74 public:
75
76 // Ctor : on construit tout a la volee plutot que de stocker une enorme table de string
77 explicit MpiInfo(eMpiName mpi_operation);
78 ~MpiInfo() = default;
79
81 const String& name() const;
82
84 const String& description() const;
85
86 private:
87
88 String m_name;
89 String m_description;
90};
91
92/*---------------------------------------------------------------------------*/
93/*---------------------------------------------------------------------------*/
94
95} // namespace Arcane::MessagePassing::Mpi
96
97/*---------------------------------------------------------------------------*/
98/*---------------------------------------------------------------------------*/
99
100namespace Arccore::MessagePassing::Mpi
101{
102using Arcane::MessagePassing::Mpi::eMpiName;
104}
105
106/*---------------------------------------------------------------------------*/
107/*---------------------------------------------------------------------------*/
108
109#endif
Déclarations des types de la composante 'base' de Arccore.
Lecteur des fichiers de maillage via la bibliothèque LIMA.
Definition Lima.cc:149
Structure informative liee aux enumerationx pour les operations MPI. Donne le nom associe a l'enum ai...
Chaîne de caractères unicode.