libMesh
Loading...
Searching...
No Matches
Classes | Namespaces | Typedefs | Functions
kokkos_storage_policy.h File Reference

Go to the source code of this file.

Classes

struct  libMesh::Kokkos::static_dim_storage_policy< Scalar, Layout >
 Storage policy describing Kokkos views that hold runtime-many vectors or tensors whose per-entry dimensions are fixed at LIBMESH_DIM. More...
 

Namespaces

namespace  libMesh
 The libMesh namespace provides an interface to certain functionality in the library.
 
namespace  libMesh::Kokkos
 

Typedefs

using libMesh::Kokkos::layout_left_storage_policy = static_dim_storage_policy< libMesh::Real, ::Kokkos::LayoutLeft >
 Convenience policies for libMesh's default Real scalar type with the two standard Kokkos layouts, plus the default policy used by the policy-free convenience overloads below.
 
using libMesh::Kokkos::layout_right_storage_policy = static_dim_storage_policy< libMesh::Real, ::Kokkos::LayoutRight >
 
using libMesh::Kokkos::default_storage_policy = layout_right_storage_policy
 

Functions

template<typename StoragePolicy >
constexpr const char * libMesh::Kokkos::storage_policy_name ()
 
template<typename StoragePolicy >
StoragePolicy::vector_view libMesh::Kokkos::make_vector_storage (const char *label, const std::size_t n)
 
default_storage_policy::vector_view libMesh::Kokkos::make_vector_storage (const char *label, const std::size_t n)
 
template<typename StoragePolicy >
StoragePolicy::tensor_view libMesh::Kokkos::make_tensor_storage (const char *label, const std::size_t n)
 
default_storage_policy::tensor_view libMesh::Kokkos::make_tensor_storage (const char *label, const std::size_t n)
 
template<typename StoragePolicy , typename VectorType >
StoragePolicy::vector_view libMesh::Kokkos::upload_vector_storage (const std::vector< VectorType > &values, const char *label)
 Allocates a device view sized for values, copies each vector's components into a host mirror, and deep-copies the result to the device.
 
template<typename VectorType >
default_storage_policy::vector_view libMesh::Kokkos::upload_vector_storage (const std::vector< VectorType > &values, const char *label)
 
template<typename StoragePolicy , typename TensorType >
StoragePolicy::tensor_view libMesh::Kokkos::upload_tensor_storage (const std::vector< TensorType > &values, const char *label)
 Allocates a device view sized for values, copies each tensor's components into a host mirror, and deep-copies the result to the device.
 
template<typename TensorType >
default_storage_policy::tensor_view libMesh::Kokkos::upload_tensor_storage (const std::vector< TensorType > &values, const char *label)