- MPI_Win_allocate(2*sizeof(int), sizeof(int), MPI_INFO_NULL, hdl->comm,
+#ifdef USE_WIN_ALLOC_SHM
+ MPI_Info_create(&hdl->win_info);
+ MPI_Info_set(hdl->win_info, "alloc_shm", "true");
+#else
+ MPI_Info_create(&hdl->win_info);
+ MPI_Info_set(hdl->win_info, "alloc_shm", "false");
+#endif
+ MPI_Win_allocate(2*sizeof(int), sizeof(int), hdl->win_info, hdl->comm,