avatar
a question about MPI_Barrier# Computation - 科学计算
l*a
1
黄渤是个国内一线的喜剧明星,左小祖咒是个知名的音乐先锋派,同时左小祖咒也是知
名的政治敏感人物,属于敢说敢做的人
我不喜欢黄渤演的喜剧,我喜欢黄渤演的社会底层的悲苦小人物,那才是黄渤的强项,
但是我们总忽略了一点,黄渤的出身,黄渤可是歌厅驻场唱歌出身的一个人,嗓音和音
乐上的造诣,基本能碾压国内歌坛百分之98的歌手
所以当黄渤一献声的一刻,何止是惊艳,简直就是天籁之音,于是他遇到了左小祖咒,
俩个极不搭调的人,两个极不搭调的声音碰到到了一起,就有了一种迷人的化学反应
下面请听他们合作的《一剪梅》别有一番滋味在心头
一剪梅 - 张明敏
真情像草原广阔
层层风雨不能阻隔
总有云开日出时候
万丈阳光照亮你我
真情像梅花开过
冷冷冰雪不能掩没
就在最冷枝头绽放
看见春天走向你我
雪花飘飘北风啸啸
天地一片苍茫
一剪寒梅傲立雪中
只为伊人飘香
爱我所爱无怨无悔
此情长留心间
雪花飘飘北风啸啸
天地一片苍茫
一剪寒梅傲立雪中
只为伊人飘香
爱我所爱无怨无悔
此情长留心间
-
avatar
f*i
2
现在用的是comcast的internet,从上周开始就不能用viopraider往国内打电话了。查
了半天发现是网络的问题,请教大家这种情况怎么办??谢谢
avatar
p*n
3
I changed the loop in a serial code by MPI :
for (i=mynode;i<100;i=i+numprocs)
{ ...
MPI_barrier(MPI_COMM_WORLD);
...
}
MPI_barrier(MPI_COMM_WORLD);
I found that if 100 can not be divided by numprocs, there will be an error
in run time. If I comment MPI_barrier inside the loop, everything is OK.
Anyone know what is wrong with my usage of MPI_Barrier? Thank you!
avatar
f*d
4
好听!

【在 l******a 的大作中提到】
: 黄渤是个国内一线的喜剧明星,左小祖咒是个知名的音乐先锋派,同时左小祖咒也是知
: 名的政治敏感人物,属于敢说敢做的人
: 我不喜欢黄渤演的喜剧,我喜欢黄渤演的社会底层的悲苦小人物,那才是黄渤的强项,
: 但是我们总忽略了一点,黄渤的出身,黄渤可是歌厅驻场唱歌出身的一个人,嗓音和音
: 乐上的造诣,基本能碾压国内歌坛百分之98的歌手
: 所以当黄渤一献声的一刻,何止是惊艳,简直就是天籁之音,于是他遇到了左小祖咒,
: 俩个极不搭调的人,两个极不搭调的声音碰到到了一起,就有了一种迷人的化学反应
: 下面请听他们合作的《一剪梅》别有一番滋味在心头
: 一剪梅 - 张明敏
: 真情像草原广阔

avatar
j*u
5
MPI_Barrier is used to make sure all procs have reached at the same time
point (synchronized). I am not sure what the loop index i is. If it is the
rank of your node, it is wrong because all procs are running the same codes.
When the first node is waiting other nodes to reach the line of MPI_Barrier
to complet its loop, the other nodes are actually waiting for the first
node to complet the first loop. Hence, the program will stop at the point
for ever.
If loop index i isn't, I might need more in

【在 p*******n 的大作中提到】
: I changed the loop in a serial code by MPI :
: for (i=mynode;i<100;i=i+numprocs)
: { ...
: MPI_barrier(MPI_COMM_WORLD);
: ...
: }
: MPI_barrier(MPI_COMM_WORLD);
: I found that if 100 can not be divided by numprocs, there will be an error
: in run time. If I comment MPI_barrier inside the loop, everything is OK.
: Anyone know what is wrong with my usage of MPI_Barrier? Thank you!

avatar
l*a
6

很魔性吧

【在 f****d 的大作中提到】
: 好听!
avatar
p*n
7
mynode 是 node的identifier
numprocs 是node的总数.
在开始的串行程序中, loop按照i循环 100次
现在我想把loop循环简单的分拆开来. 但是有个balance的问题. 如果 node 数目不能
被100整除, 就会出问题.
循环中的barrier 还是要的. 每次循环主节点要读一些数据,然后bcast给所有的nodes.
但是好像和循环外面的barrier冲突了,成了deadlock了. 不知道这种情况怎么解决.
多谢拉

codes.
Barrier

【在 j**u 的大作中提到】
: MPI_Barrier is used to make sure all procs have reached at the same time
: point (synchronized). I am not sure what the loop index i is. If it is the
: rank of your node, it is wrong because all procs are running the same codes.
: When the first node is waiting other nodes to reach the line of MPI_Barrier
: to complet its loop, the other nodes are actually waiting for the first
: node to complet the first loop. Hence, the program will stop at the point
: for ever.
: If loop index i isn't, I might need more in

avatar
S*s
8
是夏洛特烦恼片尾曲。中间那段小号太精彩了。是史力吗?
avatar
j*u
9
I guess I might have known what you are trying to do. It seems you have to
repeat sth 100 times in your serial code. In your parallel code, you just
simply split the whole loop into many strips and each strip contains
repetitions with the same number of the procs. If it is this case, you
should make sure all nodes have same number of calls to MPI_Barrier(). In
you origin code, those nodes which deals with residual loop will have one
more call to MPI_Barrier(). One possible try could be as follow

【在 p*******n 的大作中提到】
: mynode 是 node的identifier
: numprocs 是node的总数.
: 在开始的串行程序中, loop按照i循环 100次
: 现在我想把loop循环简单的分拆开来. 但是有个balance的问题. 如果 node 数目不能
: 被100整除, 就会出问题.
: 循环中的barrier 还是要的. 每次循环主节点要读一些数据,然后bcast给所有的nodes.
: 但是好像和循环外面的barrier冲突了,成了deadlock了. 不知道这种情况怎么解决.
: 多谢拉
:
: codes.

avatar
s*9
10
左小祖咒不知道
黄渤这声音p的估计连他亲妈都不认识了

【在 l******a 的大作中提到】
:
: 很魔性吧

avatar
p*n
11
That makes sense.
Thank you.

【在 j**u 的大作中提到】
: I guess I might have known what you are trying to do. It seems you have to
: repeat sth 100 times in your serial code. In your parallel code, you just
: simply split the whole loop into many strips and each strip contains
: repetitions with the same number of the procs. If it is this case, you
: should make sure all nodes have same number of calls to MPI_Barrier(). In
: you origin code, those nodes which deals with residual loop will have one
: more call to MPI_Barrier(). One possible try could be as follow

avatar
A*g
12
我一开始也以为是P的,可是看了他上好声音,和其它的综艺,声音也是这样

【在 s******9 的大作中提到】
: 左小祖咒不知道
: 黄渤这声音p的估计连他亲妈都不认识了

avatar
l*a
13

我一开始跟你的想法一样,结果是真的

【在 A***g 的大作中提到】
: 我一开始也以为是P的,可是看了他上好声音,和其它的综艺,声音也是这样
avatar
l*a
14

那个真不知道

【在 S*******s 的大作中提到】
: 是夏洛特烦恼片尾曲。中间那段小号太精彩了。是史力吗?
avatar
l*a
15

左小祖咒很神秘的一个人

【在 s******9 的大作中提到】
: 左小祖咒不知道
: 黄渤这声音p的估计连他亲妈都不认识了

avatar
c*n
16
画面创意不错,歌不行。左小祖咒十几年前的歌是真的好。
avatar
I*n
17
造谣一时爽,全家火葬场的左小祖咒?

【在 l******a 的大作中提到】
:
: 左小祖咒很神秘的一个人

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