[SimGrid-user] segmentation fault in replay_multiple

yao hu huyao0107 at gmail.com
Sat Nov 17 09:45:42 CET 2018

Hi Augustin,

Thanks for your reply.
I am afraid there is no target for replay_multiple in Makefile.
When using gcc, it seems it still misses a path to mpi.h. Any workaround
for this? Thanks a lot.

$ gcc replay_multiple.c -o replay_multiple -lsimgrid -l/usr/include/smpi
replay_multiple.c:8:10: fatal error: mpi.h: No such file or directory
 #include "mpi.h"
compilation terminated.

2018年11月17日(土) 17:01 Augustin DEGOMME <adegomme at gmail.com>:

> Hi,
> I think this example should not be compiled with smpicc, which is meant
> only for codes launched later by smpirun. It should be built with the rest
> of simgrid, and you can rebuild it with with "make replay_multiple" if
> needed, or by hand with gcc/clang/icc, using -lsimgrid and
> -I/path/to/simgrid/include/smpi.
> Best regards,
> Augustin
> Le sam. 17 nov. 2018 à 08:21, yao hu <huyao0107 at gmail.com> a écrit :
>> Hi,
>> I intend to execute multiple applications on the same time.
>> I looked into the example of smpi/replay_multiple, however it crashes
>> after doing the following:
>> $ smpicc -O3 replay_multiple.c -o replay_multiple
>> $ ./generate_multiple_deployment.sh -platform
>> ../../platforms/small_platform_with_routers.xml -hostfile ../hostfile
>> description_file deployment.xml
>> $ ./replay_multiple description_file
>> ../../platforms/small_platform_with_routers.xml deployment.xml
>> --log=smpi.:info --cfg=maxmin/concurrency-limit:100
>> Segmentation fault
>> The description file and platform file are originally from the example
>> folder.
>> Is there something wrong with the setting? Thanks very much for your help.
>> _______________________________________________
>> Simgrid-user mailing list
>> Simgrid-user at lists.gforge.inria.fr
>> https://lists.gforge.inria.fr/mailman/listinfo/simgrid-user
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gforge.inria.fr/pipermail/simgrid-user/attachments/20181117/9ced915c/attachment-0001.html>

More information about the Simgrid-user mailing list