<li><em>args</em> = one or more of <em>off</em> or <em>loop</em> or <em>normal</em> or <em>full</em> or <em>sync</em> or <em>nosync</em> or <em>timeout</em> or <em>every</em></li>
</ul>
<preclass="literal-block">
<em>off</em> = do not collect or print any timing information
<em>loop</em> = collect only the total time for the simulation loop
<em>normal</em> = collect timer information broken down by sections (default)
<em>full</em> = like <em>normal</em> but also include CPU and thread utilzation
<em>sync</em> = explicitly synchronize MPI tasks between sections
<em>nosync</em> = do not synchronize MPI tasks between sections (default)
<em>timeout</em> elapse = set walltime limit to <em>elapse</em>
<em>every</em> Ncheck = perform timeout check every <em>Ncheck</em> steps
<p>Select the level of detail at which LAMMPS performs its CPU timings.</p>
<p>During a simulation run LAMMPS collects information about how much
time is spent in different sections of the code and thus can provide
information for determining performance and load imbalance problems.
This can be done at different levels of detail and accuracy. For more
information about the timing output, see this <aclass="reference internal"href="Section_start.html#start-8"><spanclass="std std-ref">discussion of screen output</span></a>.</p>
<p>The <em>off</em> setting will turn all time measurements off. The <em>loop</em>
setting will only measure the total time for a run and not collect any
detailed per section information. With the <em>normal</em> setting, timing
information for portions of the timestep (pairwise calculations,
neighbor list construction, output, etc) are collected as well as
information about load imbalances for those sections across
procsessors. The <em>full</em> setting adds information about CPU
utilization and thread utilization, when multi-threading is enabled.</p>
<p>With the <em>sync</em> setting, all MPI tasks are synchronized at each timer
call which meaures load imbalance more accuractly, though it can also
slow down the simulation. Using the <em>nosync</em> setting (which is the
default) turns off this synchronization.</p>
<p>With the <em>timeout</em> keyword a walltime limit can be imposed that
affects the <aclass="reference internal"href="run.html"><spanclass="doc">run</span></a> and <aclass="reference internal"href="minimize.html"><spanclass="doc">minimize</span></a> commands. If
the time limit is reached, the run or energy minimization will exit on
the next step or iteration that is a multiple of the <em>Ncheck</em> value
specified with the <em>every</em> keyword. All subsequent run or minimize
commands in the input script will be skipped until the timeout is
reset or turned off by a new <em>timer</em> command. The timeout <em>elapse</em>
value can be specified as <em>off</em> or <em>unlimited</em> to impose no timeout
condition (which is the default). The <em>elapse</em> setting can be
specified as a single number for seconds, two numbers separated by a
colon (MM:SS) for minutes and seconds, or as three numbers separated
by colons for hours, minutes, and seconds.</p>
<p>The <em>every</em> keyword sets how frequently during a run or energy
minimization the wall clock will be checked. This check count applies
to the outer iterations or time steps during minimizations or <aclass="reference internal"href="run_style.html"><spanclass="doc">r-RESPA runs</span></a>, respectively. Checking for timeout too often,
can slow a calculation down. Checking too infrequently can make the
timeout measurement less accurate, with the run being stopped later
than desired.</p>
<p>Multiple keywords can be specified with the <em>timer</em> command. For
keywords that are mutually exclusive, the last one specified takes
effect.</p>
<divclass="admonition note">
<pclass="first admonition-title">Note</p>
<pclass="last">Using the <em>full</em> and <em>sync</em> options provides the most detailed
and accurate timing information, but can also have a negative
performance impact due to the overhead of the many required system
calls. It is thus recommended to use these settings only when testing
tests to identify performance bottlenecks. For calculations with few
atoms or a very large number of processors, even the <em>normal</em> setting
can have a measurable negative performance impact. In those cases you
can just use the <em>loop</em> or <em>off</em> setting.</p>
</div>
</div>
<divclass="section"id="restrictions">
<h2>Restrictions</h2>
<blockquote>
<div>none</div></blockquote>
</div>
<divclass="section"id="related-commands">
<h2>Related commands</h2>
<p><aclass="reference internal"href="run.html"><spanclass="doc">run post no</span></a>, <aclass="reference internal"href="kspace_modify.html"><spanclass="doc">kspace_modify fftbench</span></a></p>
Built with <ahref="http://sphinx-doc.org/">Sphinx</a> using a <ahref="https://github.com/snide/sphinx_rtd_theme">theme</a> provided by <ahref="https://readthedocs.org">Read the Docs</a>.