You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to write some C++ code that calls ScaLAPACK and I encountered this problem.
After extracting the problem to a minimum example, I want to broadcast a general matrix, which here is a special case, that is 1x1, to a process grid, applying in each row of this grid.
For example, the grid is 2 rows x 1 cols, and process 1 wants to broadcast a value to process 0.
And here I have this minimum ~50 lines example showing this weird result:
I am trying to write some C++ code that calls ScaLAPACK and I encountered this problem.
After extracting the problem to a minimum example, I want to broadcast a general matrix, which here is a special case, that is 1x1, to a process grid, applying in each row of this grid.
For example, the grid is 2 rows x 1 cols, and process 1 wants to broadcast a value to process 0.
And here I have this minimum ~50 lines example showing this weird result:
The output is
which totally confuses me. And also I found that the output value is actually, the value in the
magic
variable. Why?(The reason I use the sleep code is to make the output more clear)
Also, I tried to replace
igebr2d
,igebs2d
withMPI_Bcast
. That works well (only tested in this example)The text was updated successfully, but these errors were encountered: