Arcane  v3.14.10.0
Documentation utilisateur
Chargement...
Recherche...
Aucune correspondance
MpiRequestList.h
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/* MpiRequestList.h (C) 2000-2020 */
9/* */
10/* Liste de requêtes MPI. */
11/*---------------------------------------------------------------------------*/
12#ifndef ARCCORE_MESSAGEPASSINGMPI_MPIREQUESTLIST_H
13#define ARCCORE_MESSAGEPASSINGMPI_MPIREQUESTLIST_H
14/*---------------------------------------------------------------------------*/
15/*---------------------------------------------------------------------------*/
16
17#include "arccore/message_passing/RequestListBase.h"
18#include "arccore/message_passing_mpi/MessagePassingMpiGlobal.h"
19
20/*---------------------------------------------------------------------------*/
21/*---------------------------------------------------------------------------*/
22
23namespace Arccore::MessagePassing::Mpi
24{
25/*!
26 * \brief Liste de requêtes MPI.
27 */
28class ARCCORE_MESSAGEPASSINGMPI_EXPORT MpiRequestList
30{
31 public:
32
33 MpiRequestList(MpiAdapter* adapter) : m_adapter(adapter){}
34
35 public:
36
37 void _wait(eWaitType wait_type) override;
38
39 private:
40
41 MpiAdapter* m_adapter;
42 UniqueArray<MPI_Status> m_requests_status;
43
44 private:
45
46 void _doWaitSome(bool is_non_blocking);
47};
48
49/*---------------------------------------------------------------------------*/
50/*---------------------------------------------------------------------------*/
51
52} // End namespace Arccore::MessagePassing
53
54/*---------------------------------------------------------------------------*/
55/*---------------------------------------------------------------------------*/
56
57#endif
58
Vecteur 1D de données avec sémantique par valeur (style STL).