simgrid

    0热度

    1回答

    是否可以在SimGrid中创建文件? 例如,一些执行程序创建文件并将输出写入到Msg_file_write()之后。 为此,我尝试使用不存在名称的Msg_file_open(),期望simgrid会创建一个新文件。但是编译器只给了我MSG_file_write和MSG_file_open的 Segmentation fault.

    1热度

    1回答

    我有主的过程,会生成50000个工艺 int master(int argc, char* argv[]) { for (int i = 0; i < 10000; i++){ string name = tostring(i); MSG_process_create(name.c_str(), some_code, NULL, MSG_host_self());

    0热度

    2回答

    在平台文件I只有一个主机: <host id="Worker1" speed="100Mf" core="101"/> 然后在worker.c我创建101(或> 100)处理期望,每个在每个核上一个进程将被启动。但我注意到,只有第一进程能够执行任务或XBT_INFO写: int worker(int argc, char *argv[]) { for (int i = 0; i

    0热度

    1回答

    有一个主持人: <host id="Worker1" speed="1Mf" core="101"/> 只有一个进程在该主机上部署: <process host="Worker1" function="worker"/> 工人功能如下: int worker(int argc, char *argv[]) { MSG_host_set_property_value(MSG_ho

    0热度

    1回答

    我通过SimGrid框架打开文件: msg_file_t file = MSG_file_open("/scratch/bin/tesh", NULL); XBT_INFO("file size is %zd", MSG_file_get_size(file)); 这是确定的: [carl:host:(1) 0.000000] [remote_io/INFO] file size is 35

    1热度

    1回答

    我可以在模拟开始时通过标记--cfg=contexts/stack-size=10来定义堆栈大小msg_process_t。 但是是否可以为不同的进程定义不同的堆栈大小,因为我的进程至多使用小堆栈,但主进程需要更多的千字节?

    1热度

    1回答

    此代码,例如,开放和尝试复制一个文件1029次 for (int i = 0; i < 1029; ++i) { MSG_process_create("copy", create_copy, data, MSG_host_self()); } int create_copy(){ MSG_file_rcopy(file, src, argv[2]); } 我有例外:

    0热度

    1回答

    有其发射100个处理的方法: for (int i = 0; i < 100; ++i) { MSG_process_create("w", executor, NULL, MSG_host_self()); } 的执行程序创建样品任务并执行它。所以有100个进程同时开始执行任务并完成同时完成任务。对于监控的进程数我有void plusOneActiveProcess()

    0热度

    2回答

    我有过程worker这将启动executor。 Executor是一个创建10秒任务并执行它的过程。但2秒后工人杀死executor程序。 SimGrid给了我一个对数级杀灭executor后: [ 2.000000] (0:[email protected]) dp_objs: 1 pending task? 我应该如何妥善销毁任务和task_data当另一个进程杀掉目前的工作流程? int

    1热度

    1回答

    我想产卵量很大的过程。所以我有master这个过程。 int master(int argc, char* argv[]){ for (int i = 0; i < 50000; ++i) { std::string name = std::to_string(i); MSG_process_create(name.c_str(), slave, NULL, MS