deal.II version GIT relicensing-6809-ge913b9bb34 2026-09-25 17:20:01+00:00
\(\newcommand{\dealvcentcolon}{\mathrel{\mathop{:}}}\) \(\newcommand{\dealcoloneq}{\dealvcentcolon\mathrel{\mkern-1.2mu}=}\) \(\newcommand{\jump}[1]{\left[\!\left[ #1 \right]\!\right]}\) \(\newcommand{\average}[1]{\left\{\!\left\{ #1 \right\}\!\right\}}\)
Loading...
Searching...
No Matches
memory_space.h
Go to the documentation of this file.
1// -----------------------------------------------------------------------------
2//
3// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception OR LGPL-2.1-or-later
4// Copyright (C) 2018 - 2024 by the deal.II authors
5//
6// This file is part of the deal.II library.
7//
8// Detailed license information governing the source code and contributions
9// can be found in LICENSE.md and CONTRIBUTING.md at the top level directory.
10//
11// -----------------------------------------------------------------------------
12
13
14#ifndef dealii_memory_space_h
15#define dealii_memory_space_h
16
17#include <deal.II/base/config.h>
18
19#include <Kokkos_Core.hpp>
20
22
25namespace MemorySpace
26{
30 struct Host
31 {
32 using kokkos_space = ::Kokkos::HostSpace;
33 };
34
41 struct Default
42 {
43 using kokkos_space = ::Kokkos::DefaultExecutionSpace::memory_space;
44 };
45} // namespace MemorySpace
46
48
49#endif
#define DEAL_II_NAMESPACE_OPEN
Definition config.h:38
#define DEAL_II_NAMESPACE_CLOSE
Definition config.h:39
::Kokkos::DefaultExecutionSpace::memory_space kokkos_space
::Kokkos::HostSpace kokkos_space