From: Christian Heinrich Date: Thu, 28 Jun 2018 07:51:22 +0000 (+0200) Subject: [SMPI] Remove old smpirun check X-Git-Tag: v3_21~618 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/f6c392a8ae65365589b83f6b6ea939e027ef8b1c [SMPI] Remove old smpirun check smpirun registers its own instances (called 'smpirun'). If we want to check whether or not the instance exists, we should not do so by calling .empty() --- diff --git a/src/smpi/internals/smpi_deployment.cpp b/src/smpi/internals/smpi_deployment.cpp index f60d178fd8..f783e8cd66 100644 --- a/src/smpi/internals/smpi_deployment.cpp +++ b/src/smpi/internals/smpi_deployment.cpp @@ -76,9 +76,6 @@ void SMPI_app_instance_register(const char *name, xbt_main_func_t code, int num_ void smpi_deployment_register_process(const std::string instance_id, int rank, simgrid::s4u::ActorPtr actor) { - if (smpi_instances.empty()) // no instance registered, we probably used smpirun. - return; - Instance& instance = smpi_instances.at(instance_id); instance.present_processes++;