diff --git a/hostfile b/hostfile index eedda91..f020af5 100644 --- a/hostfile +++ b/hostfile @@ -1,2 +1,8 @@ -192.168.100.6 -192.168.100.9 \ No newline at end of file +192.168.100.1 slots=9 +192.168.100.4 slots=8 +192.168.100.5 slots=8 +192.168.100.6 slots=8 +192.168.100.9 slots=8 +192.168.100.10 slots=8 +192.168.100.11 slots=8 +192.168.100.12 slots=8 \ No newline at end of file diff --git a/src/leader.hpp b/src/leader.hpp index ea74a72..e1ffe00 100644 --- a/src/leader.hpp +++ b/src/leader.hpp @@ -139,4 +139,8 @@ void leader_main(light* S, int num_procs, int rank) { printf("s UNKNOWN\n"); } + auto clk_now = std::chrono::high_resolution_clock::now(); + double solve_time = std::chrono::duration_cast(clk_now - clk_st).count(); + printf("c time: %.3f\n", solve_time / 1000); + } \ No newline at end of file