avatar
a question about MPI# Computation - 科学计算
K*N
1
i have a 3 nodes (each nodes with 32 processors) machine.
but why if i run the following:
*****************************************************
/* Starts MPI processes ... */
MPI_Init(&argc,&argv); /* starts MPI */
MPI_Comm_rank(MPI_COMM_WORLD, &myid); /* get current process id */
MPI_Comm_size(MPI_COMM_WORLD, &p); /* get number of processes */
*****************************************************
p value is always 1?
how to access all 32 processes?
thanks.
avatar
h*o
2
问个问题先...
你怎么跑的这个程序呀...

【在 K*****N 的大作中提到】
: i have a 3 nodes (each nodes with 32 processors) machine.
: but why if i run the following:
: *****************************************************
: /* Starts MPI processes ... */
: MPI_Init(&argc,&argv); /* starts MPI */
: MPI_Comm_rank(MPI_COMM_WORLD, &myid); /* get current process id */
: MPI_Comm_size(MPI_COMM_WORLD, &p); /* get number of processes */
: *****************************************************
: p value is always 1?
: how to access all 32 processes?

avatar
K*N
3
sorry. i am very new to this field. i just downloaded a piece of source
code. and upload to that supercomputer and mpcc my file.
it could pass debug.
i suppose "p" value in that program equals to the number of the processes,
what 's wrong with me? i might have some very silly problem. please let me
know.

【在 h***o 的大作中提到】
: 问个问题先...
: 你怎么跑的这个程序呀...

avatar
K*N
4
got it all. not bother to reply.

【在 K*****N 的大作中提到】
: sorry. i am very new to this field. i just downloaded a piece of source
: code. and upload to that supercomputer and mpcc my file.
: it could pass debug.
: i suppose "p" value in that program equals to the number of the processes,
: what 's wrong with me? i might have some very silly problem. please let me
: know.

avatar
h*o
5
forgot to assign node number in queue script or command line ba
hoho

【在 K*****N 的大作中提到】
: got it all. not bother to reply.
avatar
K*N
6
hehe. no. just much more silly. i didn't use script. hehe.

【在 h***o 的大作中提到】
: forgot to assign node number in queue script or command line ba
: hoho

avatar
s*l
7
Is it possible to detect how much a node is available?
suppose I have to use 10 nodes to do computation, and at
the same time someone else may submit a job to some of the
processors, and I want to send the computations in my program
that cannot be parallelized to a processors that has more
space. For instance I want to have a prog like this:
call mpi_init
...
mpi_scatter
...
mpi_gather
if this processor is fully available
do .....
end if
mpi_finalize
avatar
b*g
8

Sure, use "uptime" command in UNIX. It shows the system load (actually
it is avg length of job queue.)
If you're running on Linux, check the file /proc/loadavg

【在 s*****l 的大作中提到】
: Is it possible to detect how much a node is available?
: suppose I have to use 10 nodes to do computation, and at
: the same time someone else may submit a job to some of the
: processors, and I want to send the computations in my program
: that cannot be parallelized to a processors that has more
: space. For instance I want to have a prog like this:
: call mpi_init
: ...
: mpi_scatter
: ...

avatar
s*l
9
That I know. I meant during the running, in the program unit.

【在 b**g 的大作中提到】
:
: Sure, use "uptime" command in UNIX. It shows the system load (actually
: it is avg length of job queue.)
: If you're running on Linux, check the file /proc/loadavg

avatar
l*v
10
very interesting question. you basically want the slave node doesn't do its
job after the master node has assigning them one.
alternatively, you may want the slave node to check it's load average, respond
to the master node, and let the master decide if to allocate some job to that
node.
you may want to let the master node sort the load average. because you may
have to compete with other programs on all the nodes.
i don't know if it's implementable. if you did that, it would be good to
know.

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