Commit cfb28a92 authored by Bram Veenboer's avatar Bram Veenboer

Make the -mp examples also work without mpirun (master only)

parent 3c548e23
......@@ -560,6 +560,7 @@ void run_master() {
// Reduce grids
runtime_reduction -= omp_get_wtime();
if (world_size > 1)
reduce_grids(grid, 0, world_size);
runtime_reduction += omp_get_wtime();
......@@ -570,6 +571,7 @@ void run_master() {
// Distribute grid
runtime_send_grid -= omp_get_wtime();
if (world_size > 1)
distribute_grid(grid, world_size);
runtime_send_grid += omp_get_wtime();
......@@ -587,6 +589,7 @@ void run_master() {
// Receive visibilities
runtime_receive_output -= omp_get_wtime();
if (world_size > 1)
receive_visibilities(visibilities, nr_baselines_per_worker, world_size);
runtime_receive_output += omp_get_wtime();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment