Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[SMPI] Remove old smpirun check
authorChristian Heinrich <franz-christian.heinrich@inria.fr>
Thu, 28 Jun 2018 07:51:22 +0000 (09:51 +0200)
committerChristian Heinrich <franz-christian.heinrich@inria.fr>
Thu, 28 Jun 2018 07:56:52 +0000 (09:56 +0200)
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

index f60d178..f783e8c 100644 (file)
@@ -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)
 {
 
 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++;
   Instance& instance = smpi_instances.at(instance_id);
 
   instance.present_processes++;