avatar
a question about mpi-fortran# Computation - 科学计算
s*l
1
I wrote some mpi-fortran code, and I discovered something funny.
Everytime I take the number of grid points to be some power of 2, the program
runs smoothly, and produces good results. But if I take the number to be
something else, the program will be terminated after running for a while.
Here # of grid points = # of processors \times # of subroutines run on each
processor, and the execution of each subroutine is completely independent, and
the only mpi commands I use are simply mpi_scatter and
avatar
s*l
2
mpich,
my program is rather simple: send Ns independent subroutines to each node, and
collect them
afterwards, and there is no communications between them until they are
finished.

program
each
and
also
avatar
g*n
3
1. try simple communication routine instead of collective routines
2. Make sure your mpich is the latest stable version

【在 s*****l 的大作中提到】
: mpich,
: my program is rather simple: send Ns independent subroutines to each node, and
: collect them
: afterwards, and there is no communications between them until they are
: finished.
:
: program
: each
: and
: also

相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。