<HTML>
<CENTER><A HREF = "https://sparta.github.io">SPARTA WWW Site</A> - <A HREF = "Manual.html">SPARTA Documentation</A> - <A HREF = "Section_commands.html#comm">SPARTA Commands</A> 
</CENTER>






<HR>

<H3>suffix command 
</H3>
<P><B>Syntax:</B>
</P>
<PRE>suffix style args 
</PRE>
<UL><LI>style = <I>off</I> or <I>on</I> or <I>kk</I> 
</UL>
<P><B>Examples:</B>
</P>
<PRE>suffix off
suffix on
suffix kk 
</PRE>
<P><B>Description:</B>
</P>
<P>This command allows you to use variants of various styles if they
exist.  In that respect it operates the same as the <A HREF = "Section_start.html#start_7">-suffix
command-line switch</A>.  It also has options
to turn off or back on any suffix setting made via the command line.
</P>
<P>The specified style <I>kk</I> refers to the optional KOKKOS package that
SPARTA can be built with, as described in <A HREF = "Section_start.html#start_3">this section of the
manual</A>. The KOKKOS package is a collection
of styles optimized to run using the Kokkos library on various kinds
of hardware, including GPUs via CUDA and many-core chips via OpenMP
multi-threading.
</P>
<P>As an example, the KOKKOS package provides a <A HREF = "compute_temp.html">compute_style
temp</A> variant, with style name temp/kk. A variant
style can be specified explicitly in your input script, e.g. compute
temp/kk. If the suffix command is used with the appropriate style, you
do not need to modify your input script.  The specified suffix (kk) is
automatically appended whenever your input script command creates a
new <A HREF = "fix.html">fix</A>, <A HREF = "compute.html">compute</A>, etc.  If the variant
version does not exist, the standard version is created.
</P>
<P>If the specified style is <I>off</I>, 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 <I>on</I>,
a disabled suffix is turned back on.  The use of these 2 commands lets
your input script use a standard SPARTA 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
explicitly appending or not appending the suffix to the relevant
commands in your input script.
</P>
<P><B>Restrictions:</B> none
</P>
<P><B>Related commands:</B>
</P>
<P><A HREF = "Section_start.html#start_7">Command-line switch -suffix</A>
</P>
<P><B>Default:</B> none
</P>
</HTML>
