Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

op attributes #667

Open
jeffhammond opened this issue Jan 16, 2023 · 0 comments
Open

op attributes #667

jeffhammond opened this issue Jan 16, 2023 · 0 comments
Assignees
Labels
chap-contexts Groups, Contexts, Communicators, Caching Chapter Committee mpi-5 For inclusion in the MPI 5.0 standard

Comments

@jeffhammond
Copy link
Member

Problem

We have attributes on communicators, windows and datatypes but not other handles.

One use case is a predefined attribute corresponding to the MPI_User_function input argument, so that middleware can implement reductions without calling MPI_{Allreduce,Reduce,Reduce_local}.

This requires the equivalence of data and function pointers, which is not defined by ISO C, but is required by POSIX here. We can just say that the attribute returns some special value on platforms where the function pointer cannot be returned, so that members of the Forum who worry about 16-bit DOS support can sleep at night.

Naming ops is nice for debugging purposes, in the same way that naming datatypes is nice.

Proposal

Add ops to the Caching subsection.

Changes to the Text

The copy-and-paste for this is pretty obvious.

Impact on Implementations

I will prototype in MPICH to demonstrate the ease of doing this.

Impact on Users

References and Pull Requests

#664

@jeffhammond jeffhammond added the mpi-5 For inclusion in the MPI 5.0 standard label Jan 16, 2023
@jeffhammond jeffhammond self-assigned this Jan 16, 2023
@jeffhammond jeffhammond added the chap-contexts Groups, Contexts, Communicators, Caching Chapter Committee label Jan 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chap-contexts Groups, Contexts, Communicators, Caching Chapter Committee mpi-5 For inclusion in the MPI 5.0 standard
Projects
Status: To Do
Development

No branches or pull requests

1 participant