Skip to content

Individual request oprations from request_pool? #47

@zhao-shihan

Description

@zhao-shihan

I found there's no something like operator[] in request_pool, so that it is impossible to start or wait a request independently (not even possible if using another std::vector<request*> since reference to requests cannot be accessed after being pushed into the pool). For example, operation like this seems not possible for now:

mpl::prequest_pool send;
...
send.start(i)
...
send.wait(i)
...

Is there any way to start or wait a single request in the request pool? If not possible, is it better to add an operator[] or start and wait with index?

Update: I check the implementation and I think start and wait with index should be preferred. However, for completeness, there should also be an indexed version of get_status but it has been occupied by another member function for accessing status list, returned by MPI_Wait/Testall/some/any.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions