Home

KokkosCorehpp

KokkosCorehpp is a C++ header file that appears in the Kokkos library, specifically within the core module. It functions as a central include aimed at bringing in the foundational elements needed to write Kokkos-enabled code. The exact contents may vary by release, but the header is generally designed to provide convenient access to the most commonly used Kokkos abstractions.

The header typically covers core abstractions such as execution spaces, memory spaces, and views, along with

Usage and purpose: developers commonly include KokkosCorehpp when they need access to the core Kokkos facilities

Relation to the broader project: KokkosCorehpp is part of the core module that underpins portability and performance

See also: Kokkos, Kokkos_Core.hpp, Kokkos_View, Kokkos_ExecutionSpace.

associated
utilities,
type
definitions,
and
configuration
options.
It
may
also
declare
or
expose
macros
and
version
information
that
help
manage
build
configurations
and
feature
flags
across
different
backends.
Because
Kokkos
supports
multiple
backends—such
as
CUDA,
HIP,
OpenMP,
and
Serial—the
KokkosCorehpp
file
helps
ensure
a
consistent
interface
for
host
and
device
code
by
consolidating
essential
declarations
in
one
include.
without
pulling
in
a
larger
portion
of
the
API.
It
is
especially
useful
for
low-level
library
components
or
performance-sensitive
applications
that
prefer
a
single,
compact
include
to
initialize
and
configure
core
Kokkos
behavior.
across
architectures.
While
it
serves
as
a
convenient
aggregator,
users
may
still
include
more
specific
headers
when
their
code
requires
specialized
functionality
beyond
the
core
set.