Fixing Kokkos output for number of OpenMP threads
git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@15488 f3b2605a-c512-4ea7-a41b-209d697bcdaa
This commit is contained in:
@ -162,10 +162,17 @@ void Finish::end(int flag)
|
|||||||
if (screen) fprintf(screen,fmt2,cpu_loop,nprocs,nthreads);
|
if (screen) fprintf(screen,fmt2,cpu_loop,nprocs,nthreads);
|
||||||
if (logfile) fprintf(logfile,fmt2,cpu_loop,nprocs,nthreads);
|
if (logfile) fprintf(logfile,fmt2,cpu_loop,nprocs,nthreads);
|
||||||
#else
|
#else
|
||||||
const char fmt2[] =
|
if (lmp->kokkos) {
|
||||||
"%.1f%% CPU use with %d MPI tasks x no OpenMP threads\n";
|
const char fmt2[] =
|
||||||
if (screen) fprintf(screen,fmt2,cpu_loop,nprocs);
|
"%.1f%% CPU use with %d MPI tasks x %d OpenMP threads\n";
|
||||||
if (logfile) fprintf(logfile,fmt2,cpu_loop,nprocs);
|
if (screen) fprintf(screen,fmt2,cpu_loop,nprocs,lmp->kokkos->num_threads);
|
||||||
|
if (logfile) fprintf(logfile,fmt2,cpu_loop,nprocs,lmp->kokkos->num_threads);
|
||||||
|
} else {
|
||||||
|
const char fmt2[] =
|
||||||
|
"%.1f%% CPU use with %d MPI tasks x no OpenMP threads\n";
|
||||||
|
if (screen) fprintf(screen,fmt2,cpu_loop,nprocs);
|
||||||
|
if (logfile) fprintf(logfile,fmt2,cpu_loop,nprocs);
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user