Commit f26545d8 authored by Luca Tornatore's avatar Luca Tornatore
Browse files

added call to allocation of shared windows from init.c

parent a1f0f5e7
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -366,6 +366,8 @@ void allocate_memory() {
     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));
     
+1 −1
Original line number Diff line number Diff line
@@ -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;
+1 −1
Original line number Diff line number Diff line
@@ -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 */