From: Frederic Suter Date: Fri, 15 Feb 2019 14:50:43 +0000 (+0100) Subject: fix build X-Git-Tag: v3_22~326 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/35c78ad8f81fb892c32e2a16d3cbb0ed84480e51?ds=sidebyside fix build --- diff --git a/src/kernel/activity/MailboxImpl.cpp b/src/kernel/activity/MailboxImpl.cpp index 9aaa5e6cc1..8ad9e02ce9 100644 --- a/src/kernel/activity/MailboxImpl.cpp +++ b/src/kernel/activity/MailboxImpl.cpp @@ -93,10 +93,10 @@ smx_activity_t MailboxImpl::iprobe(int type, int (*match_fun)(void*, void*, Comm CommImpl::Type smx_type; if (type == 1) { this_comm = CommImplPtr(new CommImpl(CommImpl::Type::SEND)); - smx_type = CommImpl::Type::SEND; + smx_type = CommImpl::Type::RECEIVE; } else { this_comm = CommImplPtr(new CommImpl(CommImpl::Type::RECEIVE)); - smx_type = CommImpl::Type::RECEIVE; + smx_type = CommImpl::Type::SEND; } smx_activity_t other_synchro = nullptr; if (permanent_receiver_ != nullptr && not done_comm_queue_.empty()) { diff --git a/src/mc/mc_request.cpp b/src/mc/mc_request.cpp index d1d1409347..0ac83559e8 100644 --- a/src/mc/mc_request.cpp +++ b/src/mc/mc_request.cpp @@ -75,11 +75,11 @@ bool request_depend_asymmetric(smx_simcall_t r1, smx_simcall_t r2) simcall_comm_wait__get__timeout(r2) <= 0) return false; - if ((r1->call == SIMCALL_COMM_ISEND) && (synchro2->type == SIMIX_COMM_SEND) && + if ((r1->call == SIMCALL_COMM_ISEND) && (synchro2->type == kernel::activity::CommImpl::Type::SEND) && (synchro2->src_buff_ != simcall_comm_isend__get__src_buff(r1)) && simcall_comm_wait__get__timeout(r2) <= 0) return false; - if ((r1->call == SIMCALL_COMM_IRECV) && (synchro2->type == SIMIX_COMM_RECEIVE) && + if ((r1->call == SIMCALL_COMM_IRECV) && (synchro2->type == kernel::activity::CommImpl::Type::RECEIVE) && (synchro2->dst_buff_ != simcall_comm_irecv__get__dst_buff(r1)) && simcall_comm_wait__get__timeout(r2) <= 0) return false; } diff --git a/src/mc/mc_state.cpp b/src/mc/mc_state.cpp index f18e7ea017..a689df8d19 100644 --- a/src/mc/mc_state.cpp +++ b/src/mc/mc_state.cpp @@ -117,7 +117,8 @@ static inline smx_simcall_t MC_state_get_request_for_process(simgrid::mc::State* simgrid::kernel::activity::CommImpl* act = temp_act.getBuffer(); if (act->src_actor_.get() && act->dst_actor_.get()) state->transition.argument = 0; - else if (act->src_actor_.get() == nullptr && act->type == SIMIX_COMM_READY && act->detached == 1) + else if (act->src_actor_.get() == nullptr && act->type == simgrid::kernel::activity::CommImpl::Type::READY && + act->detached == 1) state->transition.argument = 0; else state->transition.argument = -1; diff --git a/src/smpi/mpi/smpi_request.cpp b/src/smpi/mpi/smpi_request.cpp index 9f1a9d8770..f0f51844c2 100644 --- a/src/smpi/mpi/smpi_request.cpp +++ b/src/smpi/mpi/smpi_request.cpp @@ -491,7 +491,7 @@ void Request::start() XBT_DEBUG("SSEND : Is there a corresponding recv already posted in the small mailbox %s?", mailbox->get_cname()); action = mailbox->iprobe(1, &match_send, static_cast(this)); - if (action != nullptr) { + if (action == nullptr) { XBT_DEBUG("No, we are first, send to large mailbox"); mailbox = process->mailbox(); }