Arcane  4.1.12.0
Developer documentation
Loading...
Searching...
No Matches
Arcane::MpiSequentialParallelSuperMng Class Reference

MPI mode supervisor with a single allocated process to behave as if it were sequential but with an existing MPI communicator because we are compiled with MPI. More...

Inheritance diagram for Arcane::MpiSequentialParallelSuperMng:
Collaboration diagram for Arcane::MpiSequentialParallelSuperMng:

Public Member Functions

 MpiSequentialParallelSuperMng (const ServiceBuildInfo &sbi)
void build () override
 Build-level construction of the service.
Public Member Functions inherited from Arcane::SequentialParallelSuperMng
 SequentialParallelSuperMng (const ServiceBuildInfo &sbi)
 SequentialParallelSuperMng (const ServiceBuildInfo &sbi, Parallel::Communicator comm)
void build () override
 Build-level construction of the service.
void initialize () override
 Initializes the instance.
IApplicationapplication () const override
 Returns the main manager.
IThreadMngthreadMng () const override
 Thread manager.
bool isParallel () const override
 Returns true if the execution is parallel.
Int32 commRank () const override
 Returns the process number (between 0 and nbProcess()-1).
Int32 commSize () const override
 Returns the total number of processes used.
Int32 traceRank () const override
 Rank of this instance for traces.
void * getMPICommunicator () override
 Address of the MPI communicator associated with this manager.
MP::Communicator communicator () const override
 MPI communicator associated with this manager.
bool isMasterIO () const override
 Returns true if the instance is a master I/O manager.
Integer masterIORank () const override
 Rank of the instance managing input/output (for which isMasterIO() is true).
Integer nbLocalSubDomain () override
 Number of subdomains to create locally.
void barrier () override
 Parallelism manager for all allocated resources.
Ref< IParallelMnginternalCreateWorldParallelMng (Int32 local_rank) override
 Creates a parallelism manager for all allocated cores.
void tryAbort () override
 Attempts to abort.
Public Member Functions inherited from Arcane::AbstractService
 ~AbstractService () override
 Destructor.
IServiceInfoserviceInfo () const override
 Access to service information. See IServiceInfo for details.
IBaseserviceParent () const override
 Access to the base interface of main Arcane objects.
IServiceserviceInterface () override
 Returns the low-level IService interface of the service.
Public Member Functions inherited from Arcane::TraceAccessor
 TraceAccessor (ITraceMng *m)
 Constructs an accessor via the trace manager m.
 TraceAccessor (const TraceAccessor &rhs)
 Copy constructor.
TraceAccessoroperator= (const TraceAccessor &rhs)
 Copy assignment operator.
virtual ~TraceAccessor ()
 Frees resources.
ITraceMngtraceMng () const
 Trace manager.
TraceMessage info () const
 Flow for an information message.
TraceMessage pinfo () const
 Flow for a parallel information message.
TraceMessage info (char category) const
 Flow for an information message of a given category.
TraceMessage pinfo (char category) const
 Flow for a parallel information message of a given category.
TraceMessage info (bool v) const
 Flow for an information message.
TraceMessage warning () const
 Flow for a warning message.
TraceMessage pwarning () const
TraceMessage error () const
 Flow for an error message.
TraceMessage perror () const
TraceMessage log () const
 Flow for a log message.
TraceMessage plog () const
 Flow for a log message.
TraceMessage logdate () const
 Flow for a log message preceded by the date.
TraceMessage fatal () const
 Flow for a fatal error message.
TraceMessage pfatal () const
 Flow for a parallel fatal error message.
TraceMessageDbg debug (Trace::eDebugLevel=Trace::Medium) const
 Flow for a debug message.
Trace::eDebugLevel configDbgLevel () const
 Debug level of the configuration file.
TraceMessage info (Int32 verbose_level) const
 Flow for an information message of a given level.
TraceMessage linfo () const
 Flow for an information message with the local information level of this instance.
TraceMessage linfo (Int32 relative_level) const
 Flow for an information message with the local information level of this instance.
void fatalMessage (const StandaloneTraceMessage &o) const
Public Member Functions inherited from Arcane::IService
virtual ~IService ()
 Releases resources.
Public Member Functions inherited from Arcane::ParallelSuperMngDispatcher
virtual void allGather (ByteConstArrayView send_buf, ByteArrayView recv_buf)
virtual void allGather (Int32ConstArrayView send_buf, Int32ArrayView recv_buf)
virtual void allGather (Int64ConstArrayView send_buf, Int64ArrayView recv_buf)
virtual void allGather (RealConstArrayView send_buf, RealArrayView recv_buf)
virtual Int32 reduce (eReduceType rt, Int32 v)
virtual Int64 reduce (eReduceType rt, Int64 v)
virtual Real reduce (eReduceType rt, Real v)
virtual void reduce (eReduceType rt, Int32ArrayView v)
virtual void reduce (eReduceType rt, Int64ArrayView v)
virtual void reduce (eReduceType rt, RealArrayView v)
void broadcast (ByteArrayView send_buf, Integer id) override
 Sends an array of values to all processes This operation synchronizes the value array send_buf across all processes. The array used is that of the process whose identifier (processId()) is process_id. All processes must call this method with the same parameter process_id and have a send_buf array containing the same number of elements.
void broadcast (Int32ArrayView send_buf, Integer id) override
void broadcast (Int64ArrayView send_buf, Integer id) override
void broadcast (RealArrayView send_buf, Integer id) override
virtual void send (ByteConstArrayView values, Integer id)
virtual void send (Int32ConstArrayView values, Integer id)
virtual void send (Int64ConstArrayView values, Integer id)
virtual void send (RealConstArrayView values, Integer id)
virtual void recv (ByteArrayView values, Integer id)
virtual void recv (Int32ArrayView values, Integer id)
virtual void recv (Int64ArrayView values, Integer id)
virtual void recv (RealArrayView values, Integer id)
virtual Request send (ByteConstArrayView values, Integer id, bool is_blocked)
virtual Request send (Int32ConstArrayView values, Integer id, bool is_blocked)
virtual Request send (Int64ConstArrayView values, Integer id, bool is_blocked)
virtual Request send (RealConstArrayView values, Integer id, bool is_blocked)
virtual Request recv (ByteArrayView values, Integer id, bool is_blocked)
virtual Request recv (Int32ArrayView values, Integer id, bool is_blocked)
virtual Request recv (Int64ArrayView values, Integer id, bool is_blocked)
virtual Request recv (RealArrayView values, Integer id, bool is_blocked)
virtual void sendRecv (ByteConstArrayView send_buf, ByteArrayView recv_buf, Integer id)
virtual void sendRecv (Int32ConstArrayView send_buf, Int32ArrayView recv_buf, Integer id)
virtual void sendRecv (Int64ConstArrayView send_buf, Int64ArrayView recv_buf, Integer id)
virtual void sendRecv (RealConstArrayView send_buf, RealArrayView recv_buf, Integer id)
virtual void allToAll (ByteConstArrayView send_buf, ByteArrayView recv_buf, Integer count)
virtual void allToAll (Int32ConstArrayView send_buf, Int32ArrayView recv_buf, Integer count)
virtual void allToAll (Int64ConstArrayView send_buf, Int64ArrayView recv_buf, Integer count)
virtual void allToAll (RealConstArrayView send_buf, RealArrayView recv_buf, Integer count)
virtual Int32 scan (eReduceType rt, Int32 v)
virtual Int64 scan (eReduceType rt, Int64 v)
virtual Real scan (eReduceType rt, Real v)
virtual void scan (eReduceType rt, Int32ArrayView v)
virtual void scan (eReduceType rt, Int64ArrayView v)
virtual void scan (eReduceType rt, RealArrayView v)
Public Member Functions inherited from Arcane::IParallelSuperMng
virtual ~IParallelSuperMng ()
 Frees resources.

Additional Inherited Members

Public Types inherited from Arcane::IParallelSuperMng
typedef Parallel::Request Request
typedef Parallel::eReduceType eReduceType
Protected Member Functions inherited from Arcane::AbstractService
 AbstractService (const ServiceBuildInfo &)
 Constructor from a ServiceBuildInfo.
Protected Member Functions inherited from Arcane::TraceAccessor
void _setLocalVerboseLevel (Int32 v)
Int32 _localVerboseLevel () const
Protected Member Functions inherited from Arcane::IService
 IService ()
 Constructor.
Protected Member Functions inherited from Arcane::ParallelSuperMngDispatcher
void _setDispatchers (IParallelDispatchT< Byte > *b, IParallelDispatchT< Int32 > *i32, IParallelDispatchT< Int64 > *i64, IParallelDispatchT< Real > *r)
void _finalize ()

Detailed Description

MPI mode supervisor with a single allocated process to behave as if it were sequential but with an existing MPI communicator because we are compiled with MPI.

Definition at line 335 of file MpiParallelSuperMng.cc.

Constructor & Destructor Documentation

◆ MpiSequentialParallelSuperMng()

Arcane::MpiSequentialParallelSuperMng::MpiSequentialParallelSuperMng ( const ServiceBuildInfo & sbi)
inlineexplicit

Definition at line 340 of file MpiParallelSuperMng.cc.

◆ ~MpiSequentialParallelSuperMng()

Arcane::MpiSequentialParallelSuperMng::~MpiSequentialParallelSuperMng ( )
inlineoverride

Definition at line 345 of file MpiParallelSuperMng.cc.

Member Function Documentation

◆ build()

void Arcane::MpiSequentialParallelSuperMng::build ( void )
inlineoverridevirtual

Build-level construction of the service.

This method is called right after the constructor.

Reimplemented from Arcane::AbstractService.

Definition at line 350 of file MpiParallelSuperMng.cc.

References Arcane::SequentialParallelSuperMng::application(), and Arcane::SequentialParallelSuperMng::build().

Here is the call graph for this function:

The documentation for this class was generated from the following file: