Kokkos Core Kernels Package  Version of the Day
Classes | Functions
Kokkos_DynRankView.hpp File Reference

Declaration and definition of Kokkos::DynRankView. More...

#include <Kokkos_Core.hpp>
#include <impl/Kokkos_Error.hpp>
#include <type_traits>

Go to the source code of this file.

Classes

struct  Kokkos::Impl::ViewToDynRankViewTag
 Assign compatible default mappings. More...
 

Functions

template<unsigned , typename iType0 , class MapType >
KOKKOS_INLINE_FUNCTION bool Kokkos::Impl::dyn_rank_view_verify_operator_bounds (const iType0 &, const MapType &)
 Debug bounds-checking routines. More...
 
template<class DT , class... DP>
void Kokkos::deep_copy (const DynRankView< DT, DP... > &dst, typename ViewTraits< DT, DP... >::const_value_type &value, typename std::enable_if< std::is_same< typename ViewTraits< DT, DP... >::specialize, void >::value >::type *=nullptr)
 Deep copy a value from Host memory into a view. More...
 
template<class ST , class... SP>
void Kokkos::deep_copy (typename ViewTraits< ST, SP... >::non_const_value_type &dst, const DynRankView< ST, SP... > &src, typename std::enable_if< std::is_same< typename ViewTraits< ST, SP... >::specialize, void >::value >::type *=0)
 Deep copy into a value in Host memory from a view. More...
 
template<class DstType , class SrcType >
void Kokkos::deep_copy (const DstType &dst, const SrcType &src, typename std::enable_if<(std::is_same< typename DstType::traits::specialize, void >::value &&std::is_same< typename SrcType::traits::specialize, void >::value &&(Kokkos::is_dyn_rank_view< DstType >::value||Kokkos::is_dyn_rank_view< SrcType >::value))>::type *=nullptr)
 A deep copy between views of the default specialization, compatible type, same rank, same contiguous layout. More...
 
template<class T , class... P>
void Kokkos::resize (DynRankView< T, P... > &v, const size_t n0=KOKKOS_INVALID_INDEX, const size_t n1=KOKKOS_INVALID_INDEX, const size_t n2=KOKKOS_INVALID_INDEX, const size_t n3=KOKKOS_INVALID_INDEX, const size_t n4=KOKKOS_INVALID_INDEX, const size_t n5=KOKKOS_INVALID_INDEX, const size_t n6=KOKKOS_INVALID_INDEX, const size_t n7=KOKKOS_INVALID_INDEX)
 Resize a view with copying old data to new data at the corresponding indices. More...
 
template<class T , class... P>
void Kokkos::realloc (DynRankView< T, P... > &v, const size_t n0=KOKKOS_INVALID_INDEX, const size_t n1=KOKKOS_INVALID_INDEX, const size_t n2=KOKKOS_INVALID_INDEX, const size_t n3=KOKKOS_INVALID_INDEX, const size_t n4=KOKKOS_INVALID_INDEX, const size_t n5=KOKKOS_INVALID_INDEX, const size_t n6=KOKKOS_INVALID_INDEX, const size_t n7=KOKKOS_INVALID_INDEX)
 Resize a view with copying old data to new data at the corresponding indices. More...
 

Detailed Description

Declaration and definition of Kokkos::DynRankView.

This header file declares and defines Kokkos::DynRankView and its related nonmember functions.

Definition in file Kokkos_DynRankView.hpp.

Function Documentation

◆ dyn_rank_view_verify_operator_bounds()

template<unsigned , typename iType0 , class MapType >
KOKKOS_INLINE_FUNCTION bool Kokkos::Impl::dyn_rank_view_verify_operator_bounds ( const iType0 &  ,
const MapType &   
)

Debug bounds-checking routines.

Definition at line 235 of file Kokkos_DynRankView.hpp.

◆ deep_copy() [1/3]

template<class DT , class... DP>
void Kokkos::deep_copy ( const DynRankView< DT, DP... > &  dst,
typename ViewTraits< DT, DP... >::const_value_type &  value,
typename std::enable_if< std::is_same< typename ViewTraits< DT, DP... >::specialize, void >::value >::type *  = nullptr 
)
inline

Deep copy a value from Host memory into a view.

Definition at line 1685 of file Kokkos_DynRankView.hpp.

◆ deep_copy() [2/3]

template<class ST , class... SP>
void Kokkos::deep_copy ( typename ViewTraits< ST, SP... >::non_const_value_type &  dst,
const DynRankView< ST, SP... > &  src,
typename std::enable_if< std::is_same< typename ViewTraits< ST, SP... >::specialize, void >::value >::type *  = 0 
)
inline

Deep copy into a value in Host memory from a view.

Definition at line 1703 of file Kokkos_DynRankView.hpp.

◆ deep_copy() [3/3]

template<class DstType , class SrcType >
void Kokkos::deep_copy ( const DstType &  dst,
const SrcType &  src,
typename std::enable_if<(std::is_same< typename DstType::traits::specialize, void >::value &&std::is_same< typename SrcType::traits::specialize, void >::value &&(Kokkos::is_dyn_rank_view< DstType >::value||Kokkos::is_dyn_rank_view< SrcType >::value))>::type *  = nullptr 
)
inline

A deep copy between views of the default specialization, compatible type, same rank, same contiguous layout.

Definition at line 1725 of file Kokkos_DynRankView.hpp.

◆ resize()

template<class T , class... P>
void Kokkos::resize ( DynRankView< T, P... > &  v,
const size_t  n0 = KOKKOS_INVALID_INDEX,
const size_t  n1 = KOKKOS_INVALID_INDEX,
const size_t  n2 = KOKKOS_INVALID_INDEX,
const size_t  n3 = KOKKOS_INVALID_INDEX,
const size_t  n4 = KOKKOS_INVALID_INDEX,
const size_t  n5 = KOKKOS_INVALID_INDEX,
const size_t  n6 = KOKKOS_INVALID_INDEX,
const size_t  n7 = KOKKOS_INVALID_INDEX 
)
inline

Resize a view with copying old data to new data at the corresponding indices.

Definition at line 2028 of file Kokkos_DynRankView.hpp.

◆ realloc()

template<class T , class... P>
void Kokkos::realloc ( DynRankView< T, P... > &  v,
const size_t  n0 = KOKKOS_INVALID_INDEX,
const size_t  n1 = KOKKOS_INVALID_INDEX,
const size_t  n2 = KOKKOS_INVALID_INDEX,
const size_t  n3 = KOKKOS_INVALID_INDEX,
const size_t  n4 = KOKKOS_INVALID_INDEX,
const size_t  n5 = KOKKOS_INVALID_INDEX,
const size_t  n6 = KOKKOS_INVALID_INDEX,
const size_t  n7 = KOKKOS_INVALID_INDEX 
)
inline

Resize a view with copying old data to new data at the corresponding indices.

Definition at line 2052 of file Kokkos_DynRankView.hpp.