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



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

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应该是什么。我试图在每个轴上保持2,就像最初一样,但这导致了在第一次网格平衡((调用之后出现以下错误

===================================================================================
=   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)

维度应该乘以进程的数量。所以,4x2换8,4x4换16。

最新更新