You don't. The memory is freed when the window is freed by MPI_Win_free (). See
MPI-3.1 § 11.2.5
-Nathan
On Apr 24, 2017, at 11:41 AM, Benjamin Brock wrote:
How are we meant to free memory allocated with MPI_Win_allocate()? The
following crashes for me with OpenMPI 1.10.6:
#include
#inclu
How are we meant to free memory allocated with MPI_Win_allocate()? The
following crashes for me with OpenMPI 1.10.6:
#include
#include
#include
int main(int argc, char **argv) {
MPI_Init(&argc, &argv);
int n = 1000;
int *a;
MPI_Win win;
MPI_Win_allocate(n*sizeof(int), sizeof(int),
I’m afraid none of the current options is going to do that right now. I’ll put
a note on my to-do list to look at this, but I can’t promise when I’ll get to
it.
> On Apr 24, 2017, at 3:13 AM, Heinz-Ado Arnolds
> wrote:
>
> Dear Ralph,
>
> thanks for this new hint. Unfortunately I don't see h
Dear Ralph,
thanks for this new hint. Unfortunately I don't see how that would fulfill all
my requirements:
I like to have 8 OpenMPI jobs for 2 nodes -> 4 OpenMPI jobs per node -> 2 per
socket, each executing one OpenMP job with 5 threads
mpirun -np 8 --map-by ppr:4:node:pe=5 ...
How can I