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
boost::mpi::wait_all(reqs.begin(), reqs.begin() + 1 + n_dbg_reqs); // MPI_Waitall is thread-safe?
152
+
boost::mpi::wait_all(reqs.begin(), reqs.begin() + 1 + n_dbg_send_reqs); // MPI_Waitall is thread-safe?
141
153
#else
142
154
assert(false);
143
155
#endif
@@ -153,7 +165,7 @@ namespace libmpdataxx
153
165
recv_hlpr(a, idx_recv);
154
166
155
167
// waiting for the transfers to finish
156
-
boost::mpi::wait_all(reqs.begin() + 1 + n_dbg_reqs, reqs.end()); // MPI_Waitall is thread-safe?
168
+
boost::mpi::wait_all(reqs.begin() + 1 + n_dbg_send_reqs, reqs.end()); // MPI_Waitall is thread-safe?
157
169
158
170
// a blitz handler for the used part of the receive buffer
159
171
arr_tarr_recv(buf_recv, a(idx_recv).shape(), blitz::neverDeleteData); // TODO: shape directly from idx_recv
@@ -207,13 +219,21 @@ namespace libmpdataxx
207
219
// ctor
208
220
remote_common(
209
221
constrng_t &i,
210
-
const std::array<int, n_dims> &grid_size
222
+
const std::array<int, n_dims> &distmem_grid_size,
223
+
bool single_threaded = false
211
224
) :
212
-
parent_t(i, grid_size),
213
-
grid_size_0(grid_size[0])
225
+
parent_t(i, distmem_grid_size, single_threaded)
214
226
{
215
227
#if defined(USE_MPI)
216
-
constint slice_size = n_dims==1 ? 1 : (n_dims==2? grid_size[1]+6 : (grid_size[1]+6) * (grid_size[2]+6) ); // 3 is the max halo size (?), so 6 on both sides
228
+
229
+
constint slice_size = n_dims==1 ? 1 : (n_dims==2? distmem_grid_size[1]+6 : (distmem_grid_size[1]+6) * (distmem_grid_size[2]+6) ); // 3 is the max halo size (?), so 6 on both sides
0 commit comments