Skip to content

Feature/100 ibarrier #107

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

Open
wants to merge 2 commits into
base: feature/non-blocking-common
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions include/boost/mpi/detail/request_handlers.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -509,9 +509,6 @@ class BOOST_MPI_DECL request::trivial_handler : public request::handler {

private:
friend class request;
#if BOOST_MPI_VERSION >= 3
friend class communicator;
#endif
MPI_Request m_request;
};

Expand Down
1 change: 0 additions & 1 deletion include/boost/mpi/request.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,6 @@ class BOOST_MPI_DECL request
template<typename T, class A> class legacy_dynamic_primitive_array_handler;
#if BOOST_MPI_VERSION >= 3
template<class Data> class probe_handler;
friend class communicator;
#endif

private:
Expand Down
7 changes: 4 additions & 3 deletions src/communicator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -328,9 +328,10 @@ bool operator==(const communicator& comm1, const communicator& comm2)
#if BOOST_MPI_VERSION >= 3
request communicator::ibarrier() const
{
request::trivial_handler* handler = new request::trivial_handler;
BOOST_MPI_CHECK_RESULT(MPI_Ibarrier, (*this, &handler->m_request));
return request(handler);
MPI_Request *c_ptr;
request req = request::make_trivial(c_ptr);
BOOST_MPI_CHECK_RESULT(MPI_Ibarrier, (*this, c_ptr));
return req;
}
#endif

Expand Down