diff --git a/init.c b/init.c index 79779264142931db41cd528de996cabffce13beb..37af40c7083610d9ab10ce5c5d317d5c918a477b 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 6e73eafa7d05d9c26c12d29ee9c50f10625b8e13..7271ea4753105c0e8b1a6b928ef491e25848933a 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 3df0825cdc7a27ed6d755dcf4076bbf0236b2d31..bde3bdfc47e0bfb3944e7215b2e23fa3b91db5c0 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 */