From f6c392a8ae65365589b83f6b6ea939e027ef8b1c Mon Sep 17 00:00:00 2001 From: Christian Heinrich Date: Thu, 28 Jun 2018 09:51:22 +0200 Subject: [PATCH] [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() --- src/smpi/internals/smpi_deployment.cpp | 3 --- 1 file changed, 3 deletions(-) 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++; -- 2.20.1