mpi4py.MPI.Session

class mpi4py.MPI.Session(session=None)

Bases: object

Parameters

session (Optional[Session]) –

Return type

Session

static __new__(cls, session=None)
Parameters

session (Optional[Session]) –

Return type

Session

Methods Summary

Call_errhandler(errorcode)

Call the error handler installed on a session

Create_group(pset_name)

Create a new group from session and process set

Finalize()

Finalize a session

Get_errhandler()

Get the error handler for a session

Get_info()

Return the hints for a session

Get_nth_pset(n[, info])

Name of the nth process set

Get_num_psets([info])

Number of available process sets

Get_pset_info(pset_name)

Return the hints for a session and process set

Init([info, errhandler])

Create a new session

Set_errhandler(errhandler)

Set the error handler for a session

f2py(arg)

py2f()

Methods Documentation

Call_errhandler(errorcode)

Call the error handler installed on a session

Parameters

errorcode (int) –

Return type

None

Create_group(pset_name)

Create a new group from session and process set

Parameters

pset_name (str) –

Return type

Group

Finalize()

Finalize a session

Return type

None

Get_errhandler()

Get the error handler for a session

Return type

Errhandler

Get_info()

Return the hints for a session

Return type

Info

Get_nth_pset(n, info=INFO_NULL)

Name of the nth process set

Parameters
Return type

str

Get_num_psets(info=INFO_NULL)

Number of available process sets

Parameters

info (Info) –

Return type

int

Get_pset_info(pset_name)

Return the hints for a session and process set

Parameters

pset_name (str) –

Return type

Info

classmethod Init(info=INFO_NULL, errhandler=None)

Create a new session

Parameters
Return type

Session

Set_errhandler(errhandler)

Set the error handler for a session

Parameters

errhandler (Errhandler) –

Return type

None

classmethod f2py(arg)
Parameters

arg (int) –

Return type

Session

py2f()
Return type

int