From f26545d87d0cf964e34bc895a65f669edb4edbaa Mon Sep 17 00:00:00 2001 From: Luca Tornatore Date: Tue, 12 Apr 2022 14:41:21 +0200 Subject: [PATCH] added call to allocation of shared windows from init.c --- init.c | 2 ++ numa.c | 2 +- proto.h | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/init.c b/init.c index 7977926..37af40c 100644 --- a/init.c +++ b/init.c @@ -365,6 +365,8 @@ void allocate_memory() { gridss_w = (double*) calloc(size_of_grid,sizeof(double)); gridss_real = (double*) calloc(size_of_grid/2,sizeof(double)); gridss_img = (double*) calloc(size_of_grid/2,sizeof(double)); + + numa_allocate_shared_windows( Me, size_of_grid*sizeof(double)*1.1, size_of_grid*sizeof(double)*1.1); // Create destination slab grid = (double*) calloc(size_of_grid,sizeof(double)); diff --git a/numa.c b/numa.c index 6e73eaf..7271ea4 100644 --- a/numa.c +++ b/numa.c @@ -75,7 +75,7 @@ int numa_init( int Rank, int Size, MPI_Comm *MYWORLD, map_t *Me ) } -int numa_allocate_shared_windos( map_t *Me, MPI_Aint size, MPI_Aint host_size ) +int numa_allocate_shared_windows( map_t *Me, MPI_Aint size, MPI_Aint host_size ) { int SHMEMl = Me->SHMEMl; diff --git a/proto.h b/proto.h index 3df0825..bde3bdf 100644 --- a/proto.h +++ b/proto.h @@ -3,7 +3,7 @@ /* numa.c */ int numa_init( int, int, MPI_Comm *, map_t *); -int numa_allocate_shared_windos( map_t *, MPI_Aint, MPI_Aint ); +int numa_allocate_shared_windows( map_t *, MPI_Aint, MPI_Aint ); int numa_shutdown( int, int, MPI_Comm *, map_t *); /* init.c */ -- GitLab