static void reset_pmeonly_counters(gmx_wallcycle_t wcycle, gmx_walltime_accounting_t walltime_accounting, t_nrnb *nrnb, t_inputrec *ir, gmx_int64_t step) { /* Reset all the counters related to performance over the run */ wallcycle_stop(wcycle, ewcRUN); wallcycle_reset_all(wcycle); init_nrnb(nrnb); if (ir->nsteps >= 0) { /* ir->nsteps is not used here, but we update it for consistency */ ir->nsteps -= step - ir->init_step; } ir->init_step = step; wallcycle_start(wcycle, ewcRUN); walltime_accounting_start(walltime_accounting); }
static void reset_pmeonly_counters(gmx_wallcycle_t wcycle, gmx_walltime_accounting_t walltime_accounting, t_nrnb *nrnb, int64_t step, bool useGpuForPme) { /* Reset all the counters related to performance over the run */ wallcycle_stop(wcycle, ewcRUN); wallcycle_reset_all(wcycle); init_nrnb(nrnb); wallcycle_start(wcycle, ewcRUN); walltime_accounting_reset_time(walltime_accounting, step); if (useGpuForPme) { resetGpuProfiler(); } }