vtk-m/docs/users-guide/introduction.rst
Kenneth Moreland b80b7e2e71 Add VTK-m User's Guide to source
This is a start of moving the VTK-m User's Guide into the VTK-m source.
This is only the start of the process. There are several goals of this
work.

1. Integrate the documentation into the source code better to better
   keep the code up to date.
2. Move the documentation over to Sphinx so that it can be posted online
   and be more easily linked.
3. Incoporate Doxygen into the guide to keep the documentation
   consistent.
4. Build the user guide examples as part of the VTK-m CI to catch
   compatibility changes quickly.
2023-10-17 11:31:27 -04:00

87 lines
5.4 KiB
ReStructuredText

==============================
Introduction
==============================
High-performance computing relies on ever finer threading.
Advances in processor technology include ever greater numbers of cores, hyperthreading, accelerators with integrated blocks of cores, and special vectorized instructions, all of which require more software parallelism to achieve peak performance.
Traditional visualization solutions cannot support this extreme level of concurrency.
Extreme scale systems require a new programming model and a fundamental change in how we design algorithms.
To address these issues we created |VTKm|: the visualization toolkit for multi-/many-core architectures.
|VTKm| supports a number of algorithms and the ability to design further algorithms through a top-down design with an emphasis on extreme parallelism.
|VTKm| also provides support for finding and building links across topologies, making it possible to perform operations that determine manifold surfaces, interpolate generated values, and find adjacencies.
Although |VTKm| provides a simplified high-level interface for programming, its template-based code removes the overhead of abstraction.
.. |MCCompareCuda| image:: images/MCCompareCuda.png
:width: 75px
.. |MCCompareVTKm| image:: images/MCCompareVTKm.png
:width: 75px
.. table:: Comparison of Marching Cubes implementations.
:name: MCCompare
:widths: auto
:align: center
+-----------------+-----------------+
| CUDA SDK | |VTKm| |
+-----------------+-----------------+
| 431 LOC | 265 LOC |
+-----------------+-----------------+
| |MCCompareCuda| | |MCCompareVTKm| |
+-----------------+-----------------+
|VTKm| simplifies the development of parallel scientific visualization algorithms by providing a framework of supporting functionality that allows developers to focus on visualization operations.
Consider the listings in :numref:`MCCompare` that compares the size of the implementation for the Marching Cubes algorithm in |VTKm| with the equivalent reference implementation in the CUDA software development kit.
Because |VTKm| internally manages the parallel distribution of work and data, the |VTKm| implementation is shorter and easier to maintain.
Additionally, |VTKm| provides data abstractions not provided by other libraries that make code written in |VTKm| more versatile.
------------------------------
How to Use This Guide
------------------------------
This user's guide is organized into 5 parts to help guide novice to advanced users and to provide a convenient reference.
:partref:`part-getting-started:Getting Started` provides a brief overview of using |VTKm|.
This part provides instructions on building |VTKm| and some simple examples of using |VTKm|.
Users new to |VTKm| are well served to read through Part :partref:`part-getting-started:Getting Started` first to become acquainted with the basic concepts.
The remaining parts, which provide detailed documentation of increasing complexity, have chapters that do not need to be read in detail.
Readers will likely find it useful to skip to specific topics of interest.
:partref:`part-using:Using |VTKm|` dives deeper into the |VTKm| library.
It provides much more detail on the concepts introduced in :partref:`part-getting-started:Getting Started` and introduces new topics helpful to people who use |VTKm|'s existing algorithms.
:partref:`part-developing:Developing Algorithms` documents how to use |VTKm|'s framework to develop new or custom visualization algorithms.
In this part we dive into the inner workings of filters and introduce the concept of a *worklet*, which is the base unit used to write a device-portable algorithm in |VTKm|.
:partref:`part-developing:Developing Algorithms` also documents many supporting functions that are helpful in implementing visualization algorithms.
:partref:`part-advanced:Advanced Development` explores in more detail how |VTKm| manages memory and devices.
This information describes how to adapt |VTKm| to custom data structures and new devices.
:partref:`part-core:Core Development` exposes the inner workings of |VTKm|.
These concepts allow you to design new algorithmic structures not already available in |VTKm|.
.. ------------------------------
.. Conventions Used in This Guide
.. ------------------------------
..
.. When documenting the |VTKm| API, the following conventions are used.
.. \begin{itemize}
.. \item Filenames are printed in a \textfilename{sans serif font}.
.. \item C++ code is printed in a \textcode{monospace font}.
.. \item Macros and namespaces from |VTKm| are printed in \textnamespace{red}.
.. \item Identifiers from |VTKm| are printed in \textidentifier{blue}.
.. \item Signatures, described in Chapter \ref{chap:SimpleWorklets}, and the
.. tags used in them are printed in \textsignature{green}.
.. \end{itemize}
..
.. This guide provides actual code samples throughout its discussions to
.. demonstrate their use. These examples are all valid code that can be
.. compiled and used although it is often the case that code snippets are
.. provided. In such cases, the code must be placed in a larger context.
.. didyouknow::
In this guide we periodically use these **Did you know?** boxes to provide additional information related to the topic at hand.
.. commonerrors::
**Common Errors** blocks are used to highlight some of the common problems or complications you might encounter when dealing with the topic of discussion.