Skip to content
Snippets Groups Projects
Commit f26545d8 authored by Luca Tornatore's avatar Luca Tornatore
Browse files

added call to allocation of shared windows from init.c

parent a1f0f5e7
No related branches found
No related tags found
No related merge requests found
...@@ -366,6 +366,8 @@ void allocate_memory() { ...@@ -366,6 +366,8 @@ void allocate_memory() {
gridss_real = (double*) calloc(size_of_grid/2,sizeof(double)); gridss_real = (double*) calloc(size_of_grid/2,sizeof(double));
gridss_img = (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 // Create destination slab
grid = (double*) calloc(size_of_grid,sizeof(double)); grid = (double*) calloc(size_of_grid,sizeof(double));
......
...@@ -75,7 +75,7 @@ int numa_init( int Rank, int Size, MPI_Comm *MYWORLD, map_t *Me ) ...@@ -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; int SHMEMl = Me->SHMEMl;
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
/* numa.c */ /* numa.c */
int numa_init( int, int, MPI_Comm *, map_t *); 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 *); int numa_shutdown( int, int, MPI_Comm *, map_t *);
/* init.c */ /* init.c */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment