首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >在4个以上的进程上运行离散网格投影

在4个以上的进程上运行离散网格投影
EN

Stack Overflow用户
提问于 2022-03-02 16:25:22
回答 1查看 38关注 0票数 1

目前,我的模型在4个进程上以离散网格投影方式运行。我创建网格的方式如下:

代码语言:javascript
复制
    std::vector<int> processDimensions;
processDimensions.push_back(2);
processDimensions.push_back(2);

// The grid projection will contain agents of type VirusCellInteractionAgents, so that it can facilitate all agents types
// Then we can use the agent type identifier in each agent ID, to cast them to the correct type of agent.
discreteGridSpace = new repast::SharedDiscreteSpace<VirusCellInteractionAgents, repast::WrapAroundBorders, repast::SimpleAdder<VirusCellInteractionAgents>>("AgentsDeiscreteSpace", gridDimensions, processDimensions, 2, comm);

我想尝试在8或16个进程上运行模型,所以我想知道在这种情况下processDimensions应该是什么。我试图将它保持在每个轴上,因为它最初是这样的,但是在第一个网格balance()调用之后,会导致以下错误

代码语言:javascript
复制
===================================================================================
=   BAD TERMINATION OF ONE OF YOUR APPLICATION PROCESSES
=   PID 71163 RUNNING AT Aleksandars-MBP
=   EXIT CODE: 11
=   CLEANING UP REMAINING PROCESSES
=   YOU CAN IGNORE THE BELOW CLEANUP MESSAGES
===================================================================================
YOUR APPLICATION TERMINATED WITH THE EXIT STRING: Segmentation fault: 11 (signal 11)
EN

回答 1

Stack Overflow用户

发布于 2022-03-03 18:20:03

维度应与进程的数量相乘。所以,4x2代表8,4x4代表16。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/71326034

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档