Commit fbcef3c1 authored by Giovanni Lacopo's avatar Giovanni Lacopo
Browse files

Force to use MPI_Reduce without OpenMP

parent b291407e
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -226,6 +226,9 @@ void gridding_data()

	  start = CPU_TIME_wt;


	  //Force to use MPI_Reduce when -fopenmp is not active
	 #ifdef _OPENMP
	  if( param.reduce_method == REDUCE_MPI )
	   
	    MPI_Reduce(gridss, grid, size_of_grid, MPI_DOUBLE, MPI_SUM, target_rank, MYMPI_COMM_WORLD);
@@ -246,6 +249,9 @@ void gridding_data()
		}
	      
	    }
	 #else
	  MPI_Reduce(gridss, grid, size_of_grid, MPI_DOUBLE, MPI_SUM, target_rank, MYMPI_COMM_WORLD);
	 #endif
	  
	  timing_wt.reduce += CPU_TIME_wt - start;