md_print_warn(cr, fplog, "step %s: resetting all time and cycle counters\n",
gmx_step_str(step, sbuf));
- nbnxn_gpu_reset_timings(nbv);
+ if (use_GPU(nbv))
+ {
+ nbnxn_gpu_reset_timings(nbv);
+ }
wallcycle_stop(wcycle, ewcRUN);
wallcycle_reset_all(wcycle);