| 查看: 1930 | 回复: 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 我很想知道广播在这里到底哪里除了问题,还请大家帮忙解答一下 |
» 猜你喜欢
国自然申请面上模板最新2026版出了吗?
已经有11人回复
推荐一本书
已经有12人回复
基金申报
已经有4人回复
计算机、0854电子信息(085401-058412)调剂
已经有4人回复
溴的反应液脱色
已经有6人回复
纳米粒子粒径的测量
已经有7人回复
常年博士招收(双一流,工科)
已经有4人回复
参与限项
已经有5人回复
有没有人能给点建议
已经有5人回复
萌生出自己或许不适合搞科研的想法,现在跑or等等看?
已经有4人回复

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












回复此楼