| 查看: 2195 | 回复: 4 | |||
[求助]
并行初学者遇到了点问题,已经被困很久了,希望大家帮助一下,不胜感激 已有1人参与
|
|
我现在想在从c++中实现并行,然后开始接触这一块,但是遇到了点问题。具体的程序如下: if(MyPID==0) { N=6; MPI_Bcast(&N,1,MPI_INT,0,MPI_COMM_WORLD); } MPI_Bcast(&N,1,MPI_INT,0,MPI_COMM_WORLD); Epetra_Map Map(N,0,Comm); cout<<Map; 这段程序我就是想验证一下广播可不可以使用,但是结果一直出错,显示这样的错误: Number of Global Elements = 6 Number of Global Points = 6 Maximum of all GIDs = 5 Minimum of all GIDs = 0 Index Base = 0 Constant Element Size = 1 Number of Local Elements = 2 Number of Local Points = 2 Maximum of my GIDs = 1 Minimum of my GIDs = 0 MyPID Local Index Global Index 0 0 0 0 1 1 Fatal error in PMPI_Barrier: Message truncated, error stack: PMPI_Barrier(425)...................: MPI_Barrier(MPI_COMM_WORLD) failed MPIR_Barrier_impl(332)..............: Failure during collective MPIR_Barrier_impl(327)..............: MPIR_Barrier(292)...................: MPIR_Barrier_intra(150).............: barrier_smp_intra(111)..............: MPIR_Bcast_impl(1452)...............: MPIR_Bcast(1476)....................: MPIR_Bcast_intra(1287)..............: MPIR_Bcast_binomial(239)............: MPIC_Recv(353)......................: MPIDI_CH3U_Request_unpack_uebuf(568): Message truncated; 4 bytes received but buffer size is 1 Fatal error in PMPI_Barrier: Message truncated, error stack: PMPI_Barrier(425)...................: MPI_Barrier(MPI_COMM_WORLD) failed MPIR_Barrier_impl(332)..............: Failure during collective MPIR_Barrier_impl(327)..............: MPIR_Barrier(292)...................: MPIR_Barrier_intra(150).............: barrier_smp_intra(111)..............: MPIR_Bcast_impl(1452)...............: MPIR_Bcast(1476)....................: MPIR_Bcast_intra(1287)..............: MPIR_Bcast_binomial(239)............: MPIC_Recv(353)......................: MPIDI_CH3U_Request_unpack_uebuf(568): Message truncated; 4 bytes received but buffer size is 1 Fatal error in PMPI_Barrier: Other MPI error, error stack: PMPI_Barrier(425).......: MPI_Barrier(MPI_COMM_WORLD) failed MPIR_Barrier_impl(332)..: Failure during collective MPIR_Barrier_impl(327)..: MPIR_Barrier(292).......: MPIR_Barrier_intra(150).: barrier_smp_intra(111)..: MPIR_Bcast_impl(1452)...: MPIR_Bcast(1476)........: MPIR_Bcast_intra(1287)..: MPIR_Bcast_binomial(310): Failure during collective 我很想知道广播在这里到底哪里除了问题,还请大家帮忙解答一下 |
» 猜你喜欢
各位大神,目前国内有哪些比较好用的逆合成软件?
已经有14人回复
国社科系统bug了,是不是要放榜了?
已经有10人回复
现代”学阀”该如何界定
已经有9人回复
课题组招2027级博士 上海工程技术大学 激光智能制造方向
已经有4人回复
上海工程技术大学 激光智能制造课题组 2027级博士研究生招生
已经有3人回复
上海工程技术大学激光智能制造课题组|2027级博士研究生招生公告
已经有11人回复
申博发邮件
已经有11人回复
我的奶奶
已经有3人回复

2楼2016-08-02 18:22:14
3楼2016-08-03 09:55:42

4楼2016-08-04 12:49:09
5楼2016-08-05 18:34:18










回复此楼