Skip to content

Sessions and attribute caching #1004

@hppritcha

Description

@hppritcha

Problem

Sessions attribute caching was dropped early in the process of getting sessions accepted into MPI 4.0. But now there is renewed interest in possibly putting it back in.

A motivation for this is the utility of the attribute delete callback function. This can be used as a mechanism for cleaning up MPI resources allocated by an application that can be attributed to a particular session.

See discussion in #733 about sessions and keyvals.

Proposal

Add text in the caching section of the groups, contexts, ... chapter describing methods for creating a keyval, associating a value with this key, binding to a session, etc.

Changes to the Text

To be included in a subsequent PR.

Impact on Implementations

Implementations will need to extend their attribute caching mechanism to support caching of attributes on session handles.

Impact on Users

Primarily envisioned for middleware, in particular bindings for modern compilers like julia, rust, and c++. may also be of use for mpi4py.

References and Pull Requests

TBD

Metadata

Metadata

Assignees

Labels

chap-contextsGroups, Contexts, Communicators, Caching Chapter Committeempi-nextFor inclusion in the MPI 5.1 or 6.0 standardwg-sessionsSessions Working Group

Type

No type

Projects

Status

To Do

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions