We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a110ff8 commit bd9ad37Copy full SHA for bd9ad37
examples/plot_matrixmult.py
@@ -152,7 +152,8 @@
152
Aop = MPIMatrixMult(A_p, N, dtype="float32")
153
154
col_lens = comm.allgather(my_own_cols)
155
-x = DistributedArray(global_shape=K * N,
+total_cols = np.sum(col_lens)
156
+x = DistributedArray(global_shape=K * total_cols,
157
local_shapes=[K * col_len for col_len in col_lens],
158
partition=Partition.SCATTER,
159
mask=[i % p_prime for i in range(comm.Get_size())],
0 commit comments