Added debug message for duration of synchronizing.
This commit is contained in:
@@ -191,6 +191,10 @@ void Simulation::sync_cpus() {
|
||||
}
|
||||
|
||||
void Simulation::sync_populations() {
|
||||
uint64_t t1, t2;
|
||||
int time1, time2;
|
||||
time1 = MPI_Wtime();
|
||||
__asm volatile ("rdtsc" : "=A"(t1));
|
||||
Population_Manager *populations = looper.get_populations();
|
||||
Population_Container *container;
|
||||
double *global_delta_cumulated_time_s;
|
||||
@@ -228,7 +232,10 @@ void Simulation::sync_populations() {
|
||||
delete[] local_delta_cumulated_time_s;
|
||||
delete[] local_delta_offset;
|
||||
}
|
||||
|
||||
__asm volatile ("rdtsc" : "=A"(t2));
|
||||
time2=MPI_Wtime();
|
||||
cout<<"number of cycles: \t"<<(t2-t1)<<"\n";
|
||||
cout<<"time: \t"<<(time2-time1)<<"\n";
|
||||
}
|
||||
|
||||
void Simulation::do_statusUpdate() {
|
||||
|
||||
Reference in New Issue
Block a user