如何启用SimGrid模拟的并行执行

时间:2016-11-07 12:39:56

标签: simgrid

根据Running user code in parallel,我按照以下方式启动模拟:

./simulator platform.xml deployment.xml --cfg=contexts/nthreads:2

但我有一个错误:

Segmentation fault.
Segmentation fault (core dump)

然后我尝试将ptask07模型添加到main中,希望它会有所帮助:

MSG_config("host/model", "ptask_L07"); 

现在我的模拟在几次执行作业后挂起。

也许我应该添加一些额外的配置来启用代码的并行执行? (当我运行没有contexts/nthreads的代码时,它可以正常工作。)

UPD : 我的回溯是。据说,它试图找到模糊点:

#0  0x00007fe7bfa9e418 in __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:54
#1  0x00007fe7bfaa001a in __GI_abort () at abort.c:89
#2  0x00007fe7c0674933 in xbt_abort () at /home/ubuntu/Downloads/simgrid/src/xbt/xbt_main.cpp:172
#3  0x00007fe7c062e9eb in simgrid::surf::HostImpl::findStorageOnMountList (this=0x19de7d0, mount=0x1da5d20 "\240\017\334\001")
    at /home/ubuntu/Downloads/simgrid/src/surf/HostImpl.cpp:181
#4  0x00007fe7c062f3bd in simgrid::surf::HostImpl::close (this=0x19de7d0, fd=0x1b0a7d0) at /home/ubuntu/Downloads/simgrid/src/surf/HostImpl.cpp:261
#5  0x00007fe7c060cbc2 in surf_host_close (host=0x19de210, fd=0x1b0a7d0) at /home/ubuntu/Downloads/simgrid/src/surf/surf_c_bindings.cpp:192
#6  0x00007fe7c0598d70 in SIMIX_file_close (fd=0x19ed230, host=0x19de210) at /home/ubuntu/Downloads/simgrid/src/simix/smx_io.cpp:142
#7  0x00007fe7c0598c61 in simcall_HANDLER_file_close (simcall=0x1d81a70, fd=0x19ed230, host=0x19de210)
    at /home/ubuntu/Downloads/simgrid/src/simix/smx_io.cpp:130
#8  0x00007fe7c05ae517 in SIMIX_simcall_handle (simcall=0x1d81a70, value=0) at /home/ubuntu/Downloads/simgrid/src/simix/popping_generated.cpp:349
#9  0x00007fe7c058fc58 in SIMIX_run () at /home/ubuntu/Downloads/simgrid/src/simix/smx_global.cpp:502
#10 0x00007fe7c053b93c in MSG_main () at /home/ubuntu/Downloads/simgrid/src/msg/msg_global.cpp:96
#11 0x0000000000407524 in main (argc=5, argv=0x7ffcac2a7708) at /home/ubuntu/LHCb/grid_simulation/main.cpp:51

0 个答案:

没有答案