BioCMAMC-ST
alias.hpp
1#ifndef __SIMULATION_ALIAS_HPP__
2#define __SIMULATION_ALIAS_HPP__
3#include <Kokkos_Core.hpp>
4
5#include <cstddef>
6namespace Simulation
7{
8
9 /*Following definition are related to kokkos specifc view, those types are
10 * only used during cycleprocess kernel, associated functions (get/set)
11 * handle data transfer if necessary */
12
13 template <typename ExecSpace>
14 using DiagonalView = Kokkos::View<double*,
15 Kokkos::LayoutLeft,
16 ExecSpace,
17 Kokkos::MemoryTraits<Kokkos::RandomAccess>>;
18
19 template <typename Space>
21 Kokkos::View<const double**,
22 Kokkos::LayoutRight,
23 Space,
24 Kokkos::MemoryTraits<Kokkos::RandomAccess>>;
25
27 Kokkos::View<std::size_t*, Kokkos::SharedHostPinnedSpace>;
28 using LeavingFlowType = Kokkos::View<double*, Kokkos::SharedHostPinnedSpace>;
29
30} // namespace Simulation
31
32#endif
Namespace that contains classes and structures related to simulation handling.
Definition host_specific.hpp:13
Kokkos::View< double *, Kokkos::LayoutLeft, ExecSpace, Kokkos::MemoryTraits< Kokkos::RandomAccess > > DiagonalView
Definition alias.hpp:14
Kokkos::View< const double **, Kokkos::LayoutRight, Space, Kokkos::MemoryTraits< Kokkos::RandomAccess > > CumulativeProbabilityView
Definition alias.hpp:20
Kokkos::View< std::size_t *, Kokkos::SharedHostPinnedSpace > LeavingFlowIndexType
Definition alias.hpp:26
Kokkos::View< double *, Kokkos::SharedHostPinnedSpace > LeavingFlowType
Definition alias.hpp:28