Arcane  v3.14.10.0
Documentation utilisateur
Chargement...
Recherche...
Aucune correspondance
MessagePassingMpiEnum.cc
1// -*- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature -*-
2//-----------------------------------------------------------------------------
3// Copyright 2000-2022 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.cc (C) 2000-2018 */
9/* */
10/* Enumeration des differentes operations MPI. */
11/*---------------------------------------------------------------------------*/
12/*---------------------------------------------------------------------------*/
13
14#include "arccore/message_passing_mpi/MessagePassingMpiEnum.h"
15
16/*---------------------------------------------------------------------------*/
17/*---------------------------------------------------------------------------*/
18
19namespace Arccore
20{
21namespace MessagePassing
22{
23namespace Mpi
24{
25
26/*---------------------------------------------------------------------------*/
27/*---------------------------------------------------------------------------*/
28
29MpiInfo::
30MpiInfo(eMpiName mpi_operation)
31{
32 switch (mpi_operation) {
33 case eMpiName::Bcast:
34 m_name = "MPI_Bcast";
35 m_description = "Blocking Broadcast";
36 break;
37 case eMpiName::Gather:
38 m_name = "MPI_Gather";
39 m_description = "Blocking Gather";
40 break;
41 case eMpiName::Gatherv:
42 m_name = "MPI_Gatherv";
43 m_description = "Blocking Gather with variable message size";
44 break;
45 case eMpiName::Allgather:
46 m_name = "MPI_Allgather";
47 m_description = "Blocking allGather";
48 break;
49 case eMpiName::Allgatherv:
50 m_name = "MPI_Allgatherv";
51 m_description = "Blocking allGather with variable message size";
52 break;
53 case eMpiName::Scatterv:
54 m_name = "MPI_Scatterv";
55 m_description = "Blocking Scatter with variable message size";
56 break;
57 case eMpiName::Alltoall:
58 m_name = "MPI_Alltoall";
59 m_description = "Blocking Alltoall";
60 break;
61 case eMpiName::Alltoallv:
62 m_name = "MPI_Alltoallv";
63 m_description = "Blocking Alltoall with variable message size";
64 break;
65 case eMpiName::Barrier:
66 m_name = "MPI_Barrier";
67 m_description = "Blocking Barrier";
68 break;
69 case eMpiName::Reduce:
70 m_name = "MPI_Reduce";
71 m_description = "Blocking Reduce";
72 break;
73 case eMpiName::Allreduce:
74 m_name = "MPI_Allreduce";
75 m_description = "Blocking Allreduce";
76 break;
77 case eMpiName::Scan:
78 m_name = "MPI_Scan";
79 m_description = "Blocking Scan";
80 break;
81 case eMpiName::Sendrecv:
82 m_name = "MPI_Sendrecv";
83 m_description = "Blocking Sendrecv";
84 break;
85 case eMpiName::Isend:
86 m_name = "MPI_Isend";
87 m_description = "Non-blocking Send";
88 break;
89 case eMpiName::Send:
90 m_name = "MPI_Send";
91 m_description = "Blocking Send";
92 break;
93 case eMpiName::Irecv:
94 m_name = "MPI_Irecv";
95 m_description = "Non-blocking Recv";
96 break;
97 case eMpiName::Recv:
98 m_name = "MPI_Recv";
99 m_description = "Blocking Recv";
100 break;
101 case eMpiName::Test:
102 m_name = "MPI_Test";
103 m_description = "Test";
104 break;
105 case eMpiName::Probe:
106 m_name = "MPI_Probe";
107 m_description = "Probe";
108 break;
109 case eMpiName::Get_count:
110 m_name = "MPI_Get_count";
111 m_description = "Get count";
112 break;
113 case eMpiName::Wait:
114 m_name = "MPI_Wait";
115 m_description = "Wait";
116 break;
117 case eMpiName::Waitall:
118 m_name = "MPI_Waitall";
119 m_description = "Waitall";
120 break;
121 case eMpiName::Testsome:
122 m_name = "MPI_Testsome";
123 m_description = "Testsome";
124 break;
125 case eMpiName::Waitsome:
126 m_name = "MPI_Waitsome";
127 m_description = "Waitsome";
128 break;
129 default:
130 m_name = "Unkown";
131 m_description = "Unkown";
132 break;
133 }
134}
135
136/*---------------------------------------------------------------------------*/
137/*---------------------------------------------------------------------------*/
139name() const
140{
141 return m_name;
142}
143
144/*---------------------------------------------------------------------------*/
145/*---------------------------------------------------------------------------*/
146
148description() const
149{
150 return m_description;
151}
152
153/*---------------------------------------------------------------------------*/
154/*---------------------------------------------------------------------------*/
155
156} // End namespace Mpi
157
158} // End namespace MessagePassing
159
160} // End namespace Arccore
161
162/*---------------------------------------------------------------------------*/
163/*---------------------------------------------------------------------------*/
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.
Espace de nom de Arccore.
Definition ArcaneTypes.h:24