由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Computation版 - a question about MPI
相关主题
请问这个mpi程序有什么问题?MPI_send 使用求助
a question about mpi in c[合集] 分子动力学程序,有人自己编吗?我快疯了。。。
a question about data transfer in MPI问个MPI问题(有包子)
a question about MPI_Barrier[合集] 貌似问题解决了Re: 问个MPI问题(有包子)
请问不能写数据到学校的并行机上是怎么回事?c++ versus fortran
[请教]uniformly random sampling请教各位大下, MPI并行计算的问题
MPI随机数请教MPI Write?
请帮我看看这个MPI_Scatter() 问题MPI CPUtime on processors different?
相关话题的讨论汇总
话题: mpi话题: comm话题: processes话题: nodes话题: world
进入Computation版参与讨论
1 (共1页)
K*****N
发帖数: 117
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.
h***o
发帖数: 539
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?

K*****N
发帖数: 117
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 的大作中提到】
: 问个问题先...
: 你怎么跑的这个程序呀...

K*****N
发帖数: 117
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.

h***o
发帖数: 539
5
forgot to assign node number in queue script or command line ba
hoho

【在 K*****N 的大作中提到】
: got it all. not bother to reply.
K*****N
发帖数: 117
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

s*****l
发帖数: 167
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
b**g
发帖数: 335
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
: ...

s*****l
发帖数: 167
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

l******v
发帖数: 12
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.
1 (共1页)
进入Computation版参与讨论
相关主题
MPI CPUtime on processors different?请问不能写数据到学校的并行机上是怎么回事?
[合集] 如何在多nodes上运行1000多个单独的程序? (转载)[请教]uniformly random sampling
[合集] MPI的问题MPI随机数请教
mpi 的简单程序问题请帮我看看这个MPI_Scatter() 问题
请问这个mpi程序有什么问题?MPI_send 使用求助
a question about mpi in c[合集] 分子动力学程序,有人自己编吗?我快疯了。。。
a question about data transfer in MPI问个MPI问题(有包子)
a question about MPI_Barrier[合集] 貌似问题解决了Re: 问个MPI问题(有包子)
相关话题的讨论汇总
话题: mpi话题: comm话题: processes话题: nodes话题: world