2011-05-21 07:21:12 +08:00
|
|
|
"LAMMPS WWW Site"_lws - "LAMMPS Documentation"_ld - "LAMMPS Commands"_lc :c
|
|
|
|
|
|
|
|
:link(lws,http://lammps.sandia.gov)
|
|
|
|
:link(ld,Manual.html)
|
|
|
|
:link(lc,Section_commands.html#comm)
|
|
|
|
|
|
|
|
:line
|
|
|
|
|
2011-06-01 07:08:32 +08:00
|
|
|
suffix command :h3
|
2011-05-21 07:21:12 +08:00
|
|
|
|
|
|
|
[Syntax:]
|
|
|
|
|
2011-06-01 07:08:32 +08:00
|
|
|
suffix style :pre
|
2011-05-21 07:21:12 +08:00
|
|
|
|
2011-10-07 01:32:51 +08:00
|
|
|
style = {off} or {on} or {opt} or {omp} or {gpu} or {cuda} :ul
|
2011-05-21 07:21:12 +08:00
|
|
|
|
|
|
|
[Examples:]
|
|
|
|
|
2011-06-01 07:08:32 +08:00
|
|
|
suffix off
|
|
|
|
suffix on
|
|
|
|
suffix gpu :pre
|
2011-05-21 07:21:12 +08:00
|
|
|
|
|
|
|
[Description:]
|
|
|
|
|
2011-06-01 07:17:17 +08:00
|
|
|
This command allows you to use variants of various styles if they
|
|
|
|
exist. In that respect it operates the same as the "-suffix
|
2012-01-28 07:39:14 +08:00
|
|
|
command-line switch"_Section_start.html#start_7. It also has options
|
2011-08-26 00:46:23 +08:00
|
|
|
to turn off/on any suffix setting made via the command line.
|
2011-06-01 07:08:32 +08:00
|
|
|
|
2011-10-07 01:32:51 +08:00
|
|
|
The specified style can be {opt}, {omp}, {gpu}, or {cuda}. These refer to
|
2011-06-01 07:17:17 +08:00
|
|
|
optional packages that LAMMPS can be built with, as described in "this
|
2011-08-26 00:46:23 +08:00
|
|
|
section of the manual"_Section_start.html#start_3. The "opt" style
|
2011-10-07 01:32:51 +08:00
|
|
|
corrsponds to the OPT package, the "omp" style to the USER-OMP package,
|
|
|
|
the "gpu" style to the GPU package, and the "cuda" style to the
|
|
|
|
USER-CUDA package.
|
2011-06-01 07:08:32 +08:00
|
|
|
|
2011-06-01 07:20:31 +08:00
|
|
|
These are the variants these packages provide:
|
2011-05-21 07:21:12 +08:00
|
|
|
|
2011-12-01 23:35:32 +08:00
|
|
|
OPT = a handful of pair styles, cache-optimized for faster CPU
|
|
|
|
performance :ulb,l
|
|
|
|
|
|
|
|
USER-OMP = a collection of pair, bond, angle, dihedral, improper,
|
|
|
|
kspace, compute, and fix styles with support for OpenMP
|
|
|
|
multi-threading :l
|
|
|
|
|
|
|
|
GPU = a handful of pair styles and the PPPM kspace_style, optimized to
|
|
|
|
run on one or more GPUs or multicore CPU/GPU nodes :l
|
|
|
|
|
|
|
|
USER-CUDA = a collection of atom, pair, fix, compute, and intergrate
|
|
|
|
styles, optimized to run on one or more NVIDIA GPUs :l,ule
|
2011-05-21 07:21:12 +08:00
|
|
|
|
2011-06-01 07:17:17 +08:00
|
|
|
As an example, all of the packages provide a "pair_style
|
2011-10-07 01:32:51 +08:00
|
|
|
lj/cut"_pair_lj.html variant, with style names lj/cut/opt, lj/cut/omp,
|
|
|
|
lj/cut/gpu, or lj/cut/cuda. A variant styles can be specified
|
2011-06-01 07:17:17 +08:00
|
|
|
explicitly in your input script, e.g. pair_style lj/cut/gpu. If the
|
|
|
|
suffix command is used with the appropriate style, you do not need to
|
2011-10-07 01:32:51 +08:00
|
|
|
modify your input script. The specified suffix (opt,omp,gpu,cuda) is
|
2011-06-01 07:20:31 +08:00
|
|
|
automatically appended whenever your input script command creates a
|
2011-12-01 23:35:32 +08:00
|
|
|
new "atom"_atom_style.html, "pair"_pair_style.html,
|
|
|
|
"bond"_bond_style.html, "angle"_angle_style.html,
|
|
|
|
"dihedral"_dihedral_style.html, "improper"_improper_style.html,
|
|
|
|
"kspace"_kspace_style.html, "fix"_fix.html, "compute"_compute.html, or
|
|
|
|
"run"_run_style.html style. If the variant version does not exist,
|
|
|
|
the standard version is created.
|
2011-06-01 07:17:17 +08:00
|
|
|
|
|
|
|
If the specified style is {off}, then any previously specified suffix
|
|
|
|
is temporarily disabled, whether it was specified by a command-line
|
|
|
|
switch or a previous suffix command. If the specified style is {on},
|
2011-06-01 07:20:31 +08:00
|
|
|
a disabled suffix is turned back on. The use of these 2 commands lets
|
|
|
|
your input script use a standard LAMMPS style (i.e. a non-accelerated
|
|
|
|
variant), which can be useful for testing or benchmarking purposes.
|
|
|
|
Of course this is also possible by not using any suffix commands, and
|
|
|
|
explictly appending or not appending the suffix to the relevant
|
|
|
|
commands in your input script.
|
2011-05-21 07:21:12 +08:00
|
|
|
|
2011-06-01 07:08:32 +08:00
|
|
|
[Restrictions:] none
|
2011-05-21 07:21:12 +08:00
|
|
|
|
|
|
|
[Related commands:]
|
|
|
|
|
2012-01-28 07:39:14 +08:00
|
|
|
"Command-line switch -suffix"_Section_start.html#start_7
|
2011-05-21 07:21:12 +08:00
|
|
|
|
|
|
|
[Default:] none
|