Files
TheRock/rocm-systems/projects/rocprofiler-systems/examples/lulesh/external/kokkos/doc/index.doc
T
derek.holloway 7502bf64a4
CodeQL / Analyze (actions) (push) Canceled after 0s
CodeQL / Analyze (python) (push) Canceled after 0s
pre-commit / pre-commit (push) Canceled after 0s
Multi-Arch CI / setup (push) Canceled after 0s
Publish build_manylinux_x86_64 images / publish_build_manylinux_x86_64 (push) Canceled after 0s
Setup (Multi-Arch) / setup (push) Canceled after 0s
Multi-Arch CI / Linux::${{ fromJSON(needs.setup.outputs.linux_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubi10 image / publish_no_rocm_image_ubi10 (push) Canceled after 0s
Multi-Arch CI / Windows::${{ fromJSON(needs.setup.outputs.windows_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Multi-Arch CI / Manifest Diff (push) Canceled after 0s
TheRock Manifest Diff Report / Generate Manifest Diff Report (push) Canceled after 0s
Multi-Arch CI / CI Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_ocl_rt images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_rocgdb images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Unit Tests / Unit Tests :: ubuntu-24.04 (push) Canceled after 0s
Unit Tests / Unit Tests :: windows-2022 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_media (push) Canceled after 0s
Unit Tests / Unit Tests Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_openmpi (push) Canceled after 0s
Flatten subprojects into a single base monorepo
2026-09-02 16:34:47 -07:00

73 lines
3.2 KiB
Plaintext

/*!
\mainpage Trilinos/Kokkos: Shared-memory programming interface and computational kernels
\section Kokkos_Intro Introduction
The %Kokkos package has two main components. The first, sometimes
called "%Kokkos Array" or just "%Kokkos," implements a
performance-portable shared-memory parallel programming model and data
containers. The second, called "%Kokkos Classic," consists of
computational kernels that support the %Tpetra package.
\section Kokkos_Kokkos The %Kokkos programming model
%Kokkos implements a performance-portable shared-memory parallel
programming model and data containers. It lets you write an algorithm
once, and just change a template parameter to get the optimal data
layout for your hardware. %Kokkos has back-ends for the following
parallel programming models:
- Kokkos::Threads: C++11 Threads (std::thread)
- Kokkos::OpenMP: OpenMP
- Kokkos::Cuda: NVIDIA's CUDA programming model for graphics
processing units (GPUs)
- Kokkos::Serial: No thread parallelism
%Kokkos also has optimizations for shared-memory parallel systems with
nonuniform memory access (NUMA). Its containers can hold data of any
primitive ("plain old") data type (and some aggregate types). %Kokkos
Array may be used as a stand-alone programming model.
%Kokkos' parallel operations include the following:
- parallel_for: a thread-parallel "for loop"
- parallel_reduce: a thread-parallel reduction
- parallel_scan: a thread-parallel prefix scan operation
as well as expert-level platform-independent interfaces to thread
"teams," per-team "shared memory," synchronization, and atomic update
operations.
%Kokkos' data containers include the following:
- Kokkos::View: A multidimensional array suitable for thread-parallel
operations. Its layout (e.g., row-major or column-major) is
optimized by default for the particular thread-parallel device.
- Kokkos::Vector: A drop-in replacement for std::vector that eases
porting from standard sequential C++ data structures to %Kokkos'
parallel data structures.
- Kokkos::UnorderedMap: A parallel lookup table comparable in
functionality to std::unordered_map.
%Kokkos also uses the above basic containers to implement higher-level
data structures, like sparse graphs and matrices.
A good place to start learning about %Kokkos would be <a href="http://trilinos.sandia.gov/events/trilinos_user_group_2013/presentations/2013-11-TUG-Kokkos-Tutorial.pdf">these tutorial slides</a> from the 2013 Trilinos Users' Group meeting.
\section Kokkos_Classic %Kokkos Classic
"%Kokkos Classic" consists of computational kernels that support the
%Tpetra package. These kernels include sparse matrix-vector multiply,
sparse triangular solve, Gauss-Seidel, and dense vector operations.
They are templated on the type of objects (\c Scalar) on which they
operate. This component was not meant to be visible to users; it is
an implementation detail of the %Tpetra distributed linear algebra
package.
%Kokkos Classic also implements a shared-memory parallel programming
model. This inspired and preceded the %Kokkos programming model
described in the previous section. Users should consider the %Kokkos
Classic programming model deprecated, and prefer the new %Kokkos
programming model.
*/