qimpy.MPI

Message Passing Interface.

Functions

Add_error_class

Add_error_class() -> int

Add_error_code

Add_error_code(errorclass: int) -> int

Add_error_string

Add_error_string(errorcode: int, string: str) -> None

Aint_add

Aint_add(base: int, disp: int) -> int

Aint_diff

Aint_diff(addr1: int, addr2: int) -> int

Alloc_mem

Alloc_mem(size: int, info: Info = INFO_NULL) -> buffer

Attach_buffer

Attach_buffer(buf: Buffer | None) -> None

Close_port

Close_port(port_name: str) -> None

Compute_dims

Compute_dims(nnodes: int, dims: int | Sequence[int]) -> list[int]

Detach_buffer

Detach_buffer() -> Buffer | None

Finalize

Finalize() -> None

Flush_buffer

Flush_buffer() -> None

Free_mem

Free_mem(mem: buffer) -> None

Get_abi_fortran_info

Get_abi_fortran_info() -> Info

Get_abi_info

Get_abi_info() -> Info

Get_abi_version

Get_abi_version() -> tuple[int, int]

Get_address

Get_address(location: Buffer | Bottom) -> int

Get_error_class

Get_error_class(errorcode: int) -> int

Get_error_string

Get_error_string(errorcode: int) -> str

Get_hw_resource_info

Get_hw_resource_info() -> Info

Get_library_version

Get_library_version() -> str

Get_processor_name

Get_processor_name() -> str

Get_version

Get_version() -> tuple[int, int]

Iflush_buffer

Iflush_buffer() -> Request

Init

Init() -> None

Init_thread

Init_thread(required: int = THREAD_MULTIPLE) -> int

Is_finalized

Is_finalized() -> bool

Is_initialized

Is_initialized() -> bool

Is_thread_main

Is_thread_main() -> bool

Lookup_name

Lookup_name(service_name: str, info: Info = INFO_NULL) -> str

Open_port

Open_port(info: Info = INFO_NULL) -> str

Pcontrol

Pcontrol(level: int) -> None

Publish_name

Publish_name(service_name: str, port_name: str, info: Info = INFO_NULL) -> None

Query_thread

Query_thread() -> int

Register_datarep

Register_datarep(datarep: str, read_fn: Callable[[Buffer, Datatype, int, Buffer, int], None], write_fn: Callable[[Buffer, Datatype, int, Buffer, int], None], extent_fn: Callable[[Datatype], int]) -> None

Remove_error_class

Remove_error_class(errorclass: int) -> None

Remove_error_code

Remove_error_code(errorcode: int) -> None

Remove_error_string

Remove_error_string(errorcode: int) -> None

Unpublish_name

Unpublish_name(service_name: str, port_name: str, info: Info = INFO_NULL) -> None

Wtick

Wtick() -> float

Wtime

Wtime() -> float

get_vendor

get_vendor() -> tuple[str, tuple[int, int, int]]

Classes

BottomType

Type of BOTTOM.

BufferAutomaticType

Type of BUFFER_AUTOMATIC.

Cartcomm

Cartesian topology intracommunicator.

Comm

Communication context.

Datatype

Datatype object.

Distgraphcomm

Distributed graph topology intracommunicator.

Errhandler

Error handler.

File

File I/O context.

Graphcomm

General graph topology intracommunicator.

Grequest

Generalized request handler.

Group

Group of processes.

InPlaceType

Type of IN_PLACE.

Info

Info object.

Intercomm

Intercommunicator.

Intracomm

Intracommunicator.

Message

Matched message.

Op

Reduction operation.

Pickle

Pickle/unpickle Python objects.

Prequest

Persistent request handler.

Request

Request handler.

Session

Session context.

Status

Status object.

Topocomm

Topology intracommunicator.

Win

Remote memory access context.

buffer

Buffer.

memory

alias of buffer

Exceptions

Exception

Exception class.