Compadre
1.6.0
|
#include "Compadre_Config.h"
#include <Kokkos_Core.hpp>
#include <Kokkos_Random.hpp>
#include <type_traits>
#include <vector>
#include <sstream>
#include <cstddef>
#include <functional>
#include <string>
Go to the source code of this file.
Macros | |
#define | TO_GLOBAL(variable) ((global_index_type)variable) |
#define | compadre_assert_release(condition) |
compadre_assert_release is used for assertions that should always be checked, but generally are not expensive to verify or are not called frequently. More... | |
#define | compadre_kernel_assert_release(condition) |
compadre_kernel_assert_release is similar to compadre_assert_release, but is a call on the device, namely inside of a function marked KOKKOS_INLINE_FUNCTION More... | |
#define | compadre_assert_debug(condition) |
compadre_assert_debug is used for assertions that are checked in loops, as these significantly impact performance. More... | |
#define | compadre_kernel_assert_debug(condition) |
#define | compadre_assert_extreme_debug(condition) |
compadre_kernel_assert_debug is similar to compadre_assert_debug, but is a call on the device, namely inside of a function marked KOKKOS_INLINE_FUNCTION More... | |
#define | compadre_kernel_assert_extreme_debug(condition) |
Typedefs | |
typedef double | scalar_type |
typedef int | local_index_type |
typedef std::size_t | global_index_type |
typedef Kokkos::DefaultHostExecutionSpace | host_execution_space |
typedef Kokkos::DefaultExecutionSpace | device_execution_space |
typedef host_execution_space::memory_space | host_memory_space |
typedef device_execution_space::memory_space | device_memory_space |
typedef Kokkos::TeamPolicy< device_execution_space > | team_policy |
typedef team_policy::member_type | member_type |
typedef Kokkos::TeamPolicy< host_execution_space > | host_team_policy |
typedef host_team_policy::member_type | host_member_type |
typedef Kokkos::LayoutRight | layout_right |
typedef Kokkos::LayoutLeft | layout_left |
typedef Kokkos::View< double **, layout_right, Kokkos::MemoryTraits< Kokkos::Unmanaged > > | scratch_matrix_right_type |
typedef Kokkos::View< double **, layout_left, Kokkos::MemoryTraits< Kokkos::Unmanaged > > | scratch_matrix_left_type |
typedef Kokkos::View< double *, Kokkos::MemoryTraits< Kokkos::Unmanaged > > | scratch_vector_type |
typedef Kokkos::View< int *, Kokkos::MemoryTraits< Kokkos::Unmanaged > > | scratch_local_index_type |
typedef Kokkos::View< double **, layout_right, host_execution_space, Kokkos::MemoryTraits< Kokkos::Unmanaged > > | host_scratch_matrix_right_type |
typedef Kokkos::View< double **, layout_left, host_execution_space, Kokkos::MemoryTraits< Kokkos::Unmanaged > > | host_scratch_matrix_left_type |
typedef Kokkos::View< double *, host_execution_space, Kokkos::MemoryTraits< Kokkos::Unmanaged > > | host_scratch_vector_type |
typedef Kokkos::View< int *, host_execution_space, Kokkos::MemoryTraits< Kokkos::Unmanaged > > | host_scratch_local_index_type |
typedef Kokkos::View< double **, layout_right, device_memory_space > | device_managed_matrix_right_type |
typedef Kokkos::View< double **, layout_left, device_memory_space > | device_managed_matrix_left_type |
typedef Kokkos::View< double *, device_memory_space > | device_managed_vector_type |
typedef Kokkos::View< int *, device_memory_space > | device_managed_local_index_type |
typedef Kokkos::View< double **, layout_right, host_execution_space > | host_managed_matrix_right_type |
typedef Kokkos::View< double **, layout_left, host_execution_space > | host_managed_matrix_left_type |
typedef Kokkos::View< double *, host_execution_space > | host_managed_vector_type |
typedef Kokkos::View< int *, host_execution_space > | host_managed_local_index_type |
typedef Kokkos::Random_XorShift64_Pool | pool_type |
typedef pool_type::generator_type | generator_type |
using | KokkosInitArguments = Kokkos::InitializationSettings |
template<bool B, class T = void> | |
using | enable_if_t = typename std::enable_if< B, T >::type |
Functions | |
template<typename T > | |
std::enable_if< 1==T::rank, T >::type | createView (std::string str, int dim_0, int dim_1) |
template<typename T > | |
std::enable_if< 2==T::rank, T >::type | createView (std::string str, int dim_0, int dim_1) |
Variables | |
constexpr char | KOKKOS_THREADS_ARG [] = "--kokkos-num-threads" |
#define compadre_assert_debug | ( | condition | ) |
compadre_assert_debug is used for assertions that are checked in loops, as these significantly impact performance.
When NDEBUG is set, these conditions are not checked.
Definition at line 161 of file Compadre_Typedefs.hpp.
#define compadre_assert_extreme_debug | ( | condition | ) |
compadre_kernel_assert_debug is similar to compadre_assert_debug, but is a call on the device, namely inside of a function marked KOKKOS_INLINE_FUNCTION
Definition at line 181 of file Compadre_Typedefs.hpp.
#define compadre_assert_release | ( | condition | ) |
compadre_assert_release is used for assertions that should always be checked, but generally are not expensive to verify or are not called frequently.
Definition at line 129 of file Compadre_Typedefs.hpp.
#define compadre_kernel_assert_debug | ( | condition | ) |
Definition at line 162 of file Compadre_Typedefs.hpp.
#define compadre_kernel_assert_extreme_debug | ( | condition | ) |
Definition at line 182 of file Compadre_Typedefs.hpp.
#define compadre_kernel_assert_release | ( | condition | ) |
compadre_kernel_assert_release is similar to compadre_assert_release, but is a call on the device, namely inside of a function marked KOKKOS_INLINE_FUNCTION
Definition at line 140 of file Compadre_Typedefs.hpp.
#define TO_GLOBAL | ( | variable | ) | ((global_index_type)variable) |
Definition at line 38 of file Compadre_Typedefs.hpp.
typedef Kokkos::DefaultExecutionSpace device_execution_space |
Definition at line 44 of file Compadre_Typedefs.hpp.
typedef Kokkos::View<int*, device_memory_space> device_managed_local_index_type |
Definition at line 93 of file Compadre_Typedefs.hpp.
typedef Kokkos::View<double**, layout_left, device_memory_space> device_managed_matrix_left_type |
Definition at line 89 of file Compadre_Typedefs.hpp.
typedef Kokkos::View<double**, layout_right, device_memory_space> device_managed_matrix_right_type |
Definition at line 87 of file Compadre_Typedefs.hpp.
typedef Kokkos::View<double*, device_memory_space> device_managed_vector_type |
Definition at line 91 of file Compadre_Typedefs.hpp.
typedef device_execution_space::memory_space device_memory_space |
Definition at line 51 of file Compadre_Typedefs.hpp.
using enable_if_t = typename std::enable_if<B,T>::type |
Definition at line 113 of file Compadre_Typedefs.hpp.
typedef pool_type::generator_type generator_type |
Definition at line 107 of file Compadre_Typedefs.hpp.
typedef std::size_t global_index_type |
Definition at line 35 of file Compadre_Typedefs.hpp.
typedef Kokkos::DefaultHostExecutionSpace host_execution_space |
Definition at line 43 of file Compadre_Typedefs.hpp.
typedef Kokkos::View<int*, host_execution_space> host_managed_local_index_type |
Definition at line 103 of file Compadre_Typedefs.hpp.
typedef Kokkos::View<double**, layout_left, host_execution_space> host_managed_matrix_left_type |
Definition at line 99 of file Compadre_Typedefs.hpp.
typedef Kokkos::View<double**, layout_right, host_execution_space> host_managed_matrix_right_type |
Definition at line 97 of file Compadre_Typedefs.hpp.
typedef Kokkos::View<double*, host_execution_space> host_managed_vector_type |
Definition at line 101 of file Compadre_Typedefs.hpp.
Definition at line 59 of file Compadre_Typedefs.hpp.
typedef host_execution_space::memory_space host_memory_space |
Definition at line 47 of file Compadre_Typedefs.hpp.
typedef Kokkos::View<int*, host_execution_space, Kokkos::MemoryTraits<Kokkos::Unmanaged> > host_scratch_local_index_type |
Definition at line 83 of file Compadre_Typedefs.hpp.
typedef Kokkos::View<double**, layout_left, host_execution_space, Kokkos::MemoryTraits<Kokkos::Unmanaged> > host_scratch_matrix_left_type |
Definition at line 79 of file Compadre_Typedefs.hpp.
typedef Kokkos::View<double**, layout_right, host_execution_space, Kokkos::MemoryTraits<Kokkos::Unmanaged> > host_scratch_matrix_right_type |
Definition at line 77 of file Compadre_Typedefs.hpp.
typedef Kokkos::View<double*, host_execution_space, Kokkos::MemoryTraits<Kokkos::Unmanaged> > host_scratch_vector_type |
Definition at line 81 of file Compadre_Typedefs.hpp.
typedef Kokkos::TeamPolicy<host_execution_space> host_team_policy |
Definition at line 58 of file Compadre_Typedefs.hpp.
using KokkosInitArguments = Kokkos::InitializationSettings |
Definition at line 109 of file Compadre_Typedefs.hpp.
typedef Kokkos::LayoutLeft layout_left |
Definition at line 63 of file Compadre_Typedefs.hpp.
typedef Kokkos::LayoutRight layout_right |
Definition at line 62 of file Compadre_Typedefs.hpp.
typedef int local_index_type |
Definition at line 34 of file Compadre_Typedefs.hpp.
typedef team_policy::member_type member_type |
Definition at line 56 of file Compadre_Typedefs.hpp.
typedef Kokkos::Random_XorShift64_Pool pool_type |
Definition at line 106 of file Compadre_Typedefs.hpp.
typedef double scalar_type |
Data types in Compadre Toolkit:
Definition at line 33 of file Compadre_Typedefs.hpp.
typedef Kokkos::View<int*, Kokkos::MemoryTraits<Kokkos::Unmanaged> > scratch_local_index_type |
Definition at line 73 of file Compadre_Typedefs.hpp.
typedef Kokkos::View<double**, layout_left, Kokkos::MemoryTraits<Kokkos::Unmanaged> > scratch_matrix_left_type |
Definition at line 69 of file Compadre_Typedefs.hpp.
typedef Kokkos::View<double**, layout_right, Kokkos::MemoryTraits<Kokkos::Unmanaged> > scratch_matrix_right_type |
Definition at line 67 of file Compadre_Typedefs.hpp.
typedef Kokkos::View<double*, Kokkos::MemoryTraits<Kokkos::Unmanaged> > scratch_vector_type |
Definition at line 71 of file Compadre_Typedefs.hpp.
typedef Kokkos::TeamPolicy<device_execution_space> team_policy |
Definition at line 55 of file Compadre_Typedefs.hpp.
std::enable_if<1==T::rank,T>::type createView | ( | std::string | str, |
int | dim_0, | ||
int | dim_1 | ||
) |
Definition at line 116 of file Compadre_Typedefs.hpp.
std::enable_if<2==T::rank,T>::type createView | ( | std::string | str, |
int | dim_0, | ||
int | dim_1 | ||
) |
Definition at line 120 of file Compadre_Typedefs.hpp.
|
constexpr |
Definition at line 110 of file Compadre_Typedefs.hpp.