Commit ae34b9df authored by Philip Carns's avatar Philip Carns

remove barriers in bw benchmarks

- also switch bake benchmark to not use a progress thread
parent 483abf35
...@@ -212,10 +212,15 @@ int main(int argc, char **argv) ...@@ -212,10 +212,15 @@ int main(int argc, char **argv)
assert(ret == 0); assert(ret == 0);
} }
MPI_Barrier(MPI_COMM_WORLD);
if(my_mpi_rank > 0) if(my_mpi_rank > 0)
{ {
/* TODO: this is a hack; we need a better way to wait for services
* to be ready. MPI Barriers aren't safe without setting aside
* threads to make sure that servers can answer RPCs.
*/
/* wait for server to be ready */
margo_thread_sleep(mid, 3000);
/* ssg clients initiate benchmark */ /* ssg clients initiate benchmark */
hg_handle_t handle; hg_handle_t handle;
hg_addr_t target_addr; hg_addr_t target_addr;
......
...@@ -279,10 +279,15 @@ int main(int argc, char **argv) ...@@ -279,10 +279,15 @@ int main(int argc, char **argv)
assert(ret == 0); assert(ret == 0);
} }
MPI_Barrier(MPI_COMM_WORLD);
if(my_mpi_rank == 1) if(my_mpi_rank == 1)
{ {
/* TODO: this is a hack; we need a better way to wait for services
* to be ready. MPI Barriers aren't safe without setting aside
* threads to make sure that servers can answer RPCs.
*/
/* wait for server to be ready */
margo_thread_sleep(mid, 3000);
/* rank 1 (client) initiates benchmark */ /* rank 1 (client) initiates benchmark */
/* warmup */ /* warmup */
......
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