Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
More informative error message when the user does not provide a main() to smpirun...
authorMartin Quinson <martin.quinson@ens-rennes.fr>
Mon, 17 May 2021 07:33:06 +0000 (09:33 +0200)
committerMartin Quinson <martin.quinson@ens-rennes.fr>
Mon, 17 May 2021 07:33:19 +0000 (09:33 +0200)
src/smpi/internals/smpi_global.cpp

index f51c041..1f2f20c 100644 (file)
@@ -488,7 +488,7 @@ static void smpi_init_privatization_dlopen(const std::string& executable)
                  dlerror(), saved_errno, strerror(saved_errno));
 
       smpi_entry_point_type entry_point = smpi_resolve_function(handle);
-      xbt_assert(entry_point, "Could not resolve entry point");
+      xbt_assert(entry_point, "Could not resolve entry point. Does your program contain a main() function?");
       smpi_run_entry_point(entry_point, executable, args);
     });
   });