mpi4py.MPI.Session
- class mpi4py.MPI.Session
Bases:
object
Session context.
Methods Summary
Attach_buffer
(buf)Attach a user-provided buffer for sending in buffered mode.
Call_errhandler
(errorcode)Call the error handler installed on a session.
Create_errhandler
(errhandler_fn)Create a new error handler for sessions.
Create_group
(pset_name)Create a new group from session and process set.
Remove an existing attached buffer.
Finalize
()Finalize a session.
Block until all buffered messages have been transmitted.
Get the error handler for a session.
Get_info
()Return the current hints for a session.
Get_nth_pset
(n[, info])Name of the n-th process set.
Get_num_psets
([info])Number of available process sets.
Get_pset_info
(pset_name)Return the current hints for a session and process set.
Nonblocking flush for buffered messages.
Init
([info, errhandler])Create a new session.
Set_errhandler
(errhandler)Set the error handler for a session.
f2py
(arg)free
()Call
Finalize
if not null.fromhandle
(handle)Create object from MPI handle.
py2f
()Attributes Summary
MPI handle.
Methods Documentation
- Attach_buffer(buf)
Attach a user-provided buffer for sending in buffered mode.
- Call_errhandler(errorcode)
Call the error handler installed on a session.
- classmethod Create_errhandler(errhandler_fn)
Create a new error handler for sessions.
- Parameters:
- Return type:
- Create_group(pset_name)
Create a new group from session and process set.
- Get_errhandler()
Get the error handler for a session.
- Return type:
- Get_nth_pset(n, info=INFO_NULL)
Name of the n-th process set.
- Get_num_psets(info=INFO_NULL)
Number of available process sets.
- Get_pset_info(pset_name)
Return the current hints for a session and process set.
- classmethod Init(info=INFO_NULL, errhandler=None)
Create a new session.
- Parameters:
info (Info)
errhandler (Errhandler | None)
- Return type:
- Set_errhandler(errhandler)
Set the error handler for a session.
- Parameters:
errhandler (Errhandler)
- Return type:
- classmethod fromhandle(handle)
Create object from MPI handle.
Attributes Documentation
- handle
MPI handle.