Stokhos Package Browser (Single Doxygen Collection)  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Classes | Namespaces | Macros | Functions | Variables
Stokhos_KokkosViewMPVectorUnitTest.hpp File Reference
#include "Teuchos_TestingHelpers.hpp"
#include "Teuchos_UnitTestHelpers.hpp"
#include "Stokhos_UnitTestHelpers.hpp"
#include "Stokhos_Sacado_Kokkos_MP_Vector.hpp"
#include "Stokhos_Ensemble_Sizes.hpp"
#include "Kokkos_Core.hpp"
Include dependency graph for Stokhos_KokkosViewMPVectorUnitTest.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  ApplyView< DataType, LayoutType, ExecutionSpace >
 
struct  NoLayout
 
struct  ApplyView< DataType, NoLayout, ExecutionSpace >
 
struct  Test::MPVectorAtomicFunctor< ViewType >
 

Namespaces

 Test
 

Macros

#define VIEW_MP_VECTOR_TESTS_STORAGE_LAYOUT(STORAGE, LAYOUT)
 
#define VIEW_MP_VECTOR_TESTS_STORAGE(STORAGE)
 
#define VIEW_MP_VECTOR_TESTS_ORDINAL_SCALAR_DEVICE(ORDINAL, SCALAR, DEVICE)
 
#define VIEW_MP_VECTOR_TESTS_DEVICE(DEVICE)   VIEW_MP_VECTOR_TESTS_ORDINAL_SCALAR_DEVICE( int, double, DEVICE )
 

Functions

template<typename scalar , typename ordinal >
scalar generate_vector_coefficient (const ordinal nFEM, const ordinal nStoch, const ordinal iColFEM, const ordinal iStoch)
 
template<typename ViewType >
bool checkVectorView (const ViewType &v, Teuchos::FancyOStream &out)
 
template<typename ViewType >
bool checkConstantVectorView (const ViewType &v, const typename ViewType::value_type &v_expected, Teuchos::FancyOStream &out)
 
 TEUCHOS_UNIT_TEST_TEMPLATE_2_DECL (Kokkos_View_MP, Size, Storage, Layout)
 
 TEUCHOS_UNIT_TEST_TEMPLATE_2_DECL (Kokkos_View_MP, DeepCopy, Storage, Layout)
 
 TEUCHOS_UNIT_TEST_TEMPLATE_2_DECL (Kokkos_View_MP, DeepCopy_ConstantScalar, Storage, Layout)
 
 TEUCHOS_UNIT_TEST_TEMPLATE_2_DECL (Kokkos_View_MP, DeepCopy_ConstantVector, Storage, Layout)
 
 TEUCHOS_UNIT_TEST_TEMPLATE_2_DECL (Kokkos_View_MP, DeepCopy_ConstantVector2, Storage, Layout)
 
 TEUCHOS_UNIT_TEST_TEMPLATE_1_DECL (Kokkos_View_MP, DeepCopy_Subview_Range, Storage)
 
 TEUCHOS_UNIT_TEST_TEMPLATE_2_DECL (Kokkos_View_MP, DeepCopy_HostArray, Storage, Layout)
 
 TEUCHOS_UNIT_TEST_TEMPLATE_2_DECL (Kokkos_View_MP, DeepCopy_DeviceArray, Storage, Layout)
 
 TEUCHOS_UNIT_TEST_TEMPLATE_2_DECL (Kokkos_View_MP, Unmanaged, Storage, Layout)
 
 TEUCHOS_UNIT_TEST_TEMPLATE_2_DECL (Kokkos_View_MP, PartitionHost, Storage, Layout)
 
 TEUCHOS_UNIT_TEST_TEMPLATE_2_DECL (Kokkos_View_MP, Flatten, Storage, Layout)
 
 TEUCHOS_UNIT_TEST_TEMPLATE_2_DECL (Kokkos_View_MP, DeviceAtomic, Storage, Layout)
 
 TEUCHOS_UNIT_TEST_TEMPLATE_2_DECL (Kokkos_View_MP, AssignData, Storage, Layout)
 

Variables

const int global_num_rows = 11
 
const int global_num_cols = STOKHOS_DEFAULT_ENSEMBLE_SIZE
 

Macro Definition Documentation

#define VIEW_MP_VECTOR_TESTS_STORAGE_LAYOUT (   STORAGE,
  LAYOUT 
)
Value:
Kokkos_View_MP, Size, STORAGE, LAYOUT ) \
Kokkos_View_MP, DeepCopy, STORAGE, LAYOUT ) \
Kokkos_View_MP, DeepCopy_ConstantScalar, STORAGE, LAYOUT ) \
Kokkos_View_MP, DeepCopy_ConstantVector, STORAGE, LAYOUT ) \
Kokkos_View_MP, DeepCopy_ConstantVector2, STORAGE, LAYOUT ) \
Kokkos_View_MP, Unmanaged, STORAGE, LAYOUT ) \
Kokkos_View_MP, Flatten, STORAGE, LAYOUT ) \
Kokkos_View_MP, AssignData, STORAGE, LAYOUT )
TEUCHOS_UNIT_TEST_TEMPLATE_2_INSTANT(Tpetra_CrsMatrix, MatVec, double, Node) TEUCHOS_UNIT_TEST_TEMPLATE_2_INSTANT(Tpetra_CrsMatrix

Definition at line 563 of file Stokhos_KokkosViewMPVectorUnitTest.hpp.

#define VIEW_MP_VECTOR_TESTS_STORAGE (   STORAGE)
Value:
using Kokkos::LayoutLeft; \
using Kokkos::LayoutRight; \
VIEW_MP_VECTOR_TESTS_STORAGE_LAYOUT(STORAGE, LayoutRight) \
TEUCHOS_UNIT_TEST_TEMPLATE_1_INSTANT( \
Kokkos_View_MP, DeepCopy_Subview_Range, STORAGE )
#define VIEW_MP_VECTOR_TESTS_STORAGE_LAYOUT(STORAGE, LAYOUT)

Definition at line 595 of file Stokhos_KokkosViewMPVectorUnitTest.hpp.

#define VIEW_MP_VECTOR_TESTS_ORDINAL_SCALAR_DEVICE (   ORDINAL,
  SCALAR,
  DEVICE 
)
Value:
Kokkos_View_MP, PartitionHost, SFS, NoLayout ) \
Kokkos_View_MP, PartitionHost, SFS, LayoutLeft ) \
Kokkos_View_MP, PartitionHost, SFS, LayoutRight )
Statically allocated storage class.
#define VIEW_MP_VECTOR_TESTS_STORAGE(STORAGE)
TEUCHOS_UNIT_TEST_TEMPLATE_2_INSTANT(Tpetra_CrsMatrix, MatVec, double, Node) TEUCHOS_UNIT_TEST_TEMPLATE_2_INSTANT(Tpetra_CrsMatrix

Definition at line 606 of file Stokhos_KokkosViewMPVectorUnitTest.hpp.

#define VIEW_MP_VECTOR_TESTS_DEVICE (   DEVICE)    VIEW_MP_VECTOR_TESTS_ORDINAL_SCALAR_DEVICE( int, double, DEVICE )

Definition at line 616 of file Stokhos_KokkosViewMPVectorUnitTest.hpp.

Function Documentation

template<typename scalar , typename ordinal >
scalar generate_vector_coefficient ( const ordinal  nFEM,
const ordinal  nStoch,
const ordinal  iColFEM,
const ordinal  iStoch 
)
inline

Definition at line 29 of file Stokhos_KokkosViewMPVectorUnitTest.hpp.

template<typename ViewType >
bool checkVectorView ( const ViewType &  v,
Teuchos::FancyOStream out 
)

Definition at line 42 of file Stokhos_KokkosViewMPVectorUnitTest.hpp.

template<typename ViewType >
bool checkConstantVectorView ( const ViewType &  v,
const typename ViewType::value_type &  v_expected,
Teuchos::FancyOStream out 
)

Definition at line 98 of file Stokhos_KokkosViewMPVectorUnitTest.hpp.

TEUCHOS_UNIT_TEST_TEMPLATE_2_DECL ( Kokkos_View_MP  ,
Size  ,
Storage  ,
Layout   
)

Definition at line 142 of file Stokhos_KokkosViewMPVectorUnitTest.hpp.

TEUCHOS_UNIT_TEST_TEMPLATE_2_DECL ( Kokkos_View_MP  ,
DeepCopy  ,
Storage  ,
Layout   
)

Definition at line 155 of file Stokhos_KokkosViewMPVectorUnitTest.hpp.

TEUCHOS_UNIT_TEST_TEMPLATE_2_DECL ( Kokkos_View_MP  ,
DeepCopy_ConstantScalar  ,
Storage  ,
Layout   
)

Definition at line 190 of file Stokhos_KokkosViewMPVectorUnitTest.hpp.

TEUCHOS_UNIT_TEST_TEMPLATE_2_DECL ( Kokkos_View_MP  ,
DeepCopy_ConstantVector  ,
Storage  ,
Layout   
)

Definition at line 208 of file Stokhos_KokkosViewMPVectorUnitTest.hpp.

TEUCHOS_UNIT_TEST_TEMPLATE_2_DECL ( Kokkos_View_MP  ,
DeepCopy_ConstantVector2  ,
Storage  ,
Layout   
)

Definition at line 226 of file Stokhos_KokkosViewMPVectorUnitTest.hpp.

TEUCHOS_UNIT_TEST_TEMPLATE_1_DECL ( Kokkos_View_MP  ,
DeepCopy_Subview_Range  ,
Storage   
)

Definition at line 247 of file Stokhos_KokkosViewMPVectorUnitTest.hpp.

TEUCHOS_UNIT_TEST_TEMPLATE_2_DECL ( Kokkos_View_MP  ,
DeepCopy_HostArray  ,
Storage  ,
Layout   
)

Definition at line 294 of file Stokhos_KokkosViewMPVectorUnitTest.hpp.

TEUCHOS_UNIT_TEST_TEMPLATE_2_DECL ( Kokkos_View_MP  ,
DeepCopy_DeviceArray  ,
Storage  ,
Layout   
)

Definition at line 328 of file Stokhos_KokkosViewMPVectorUnitTest.hpp.

TEUCHOS_UNIT_TEST_TEMPLATE_2_DECL ( Kokkos_View_MP  ,
Unmanaged  ,
Storage  ,
Layout   
)

Definition at line 355 of file Stokhos_KokkosViewMPVectorUnitTest.hpp.

TEUCHOS_UNIT_TEST_TEMPLATE_2_DECL ( Kokkos_View_MP  ,
PartitionHost  ,
Storage  ,
Layout   
)

Definition at line 393 of file Stokhos_KokkosViewMPVectorUnitTest.hpp.

TEUCHOS_UNIT_TEST_TEMPLATE_2_DECL ( Kokkos_View_MP  ,
Flatten  ,
Storage  ,
Layout   
)

Definition at line 466 of file Stokhos_KokkosViewMPVectorUnitTest.hpp.

TEUCHOS_UNIT_TEST_TEMPLATE_2_DECL ( Kokkos_View_MP  ,
DeviceAtomic  ,
Storage  ,
Layout   
)

Definition at line 519 of file Stokhos_KokkosViewMPVectorUnitTest.hpp.

TEUCHOS_UNIT_TEST_TEMPLATE_2_DECL ( Kokkos_View_MP  ,
AssignData  ,
Storage  ,
Layout   
)

Definition at line 537 of file Stokhos_KokkosViewMPVectorUnitTest.hpp.

Variable Documentation

const int global_num_rows = 11

Definition at line 139 of file Stokhos_KokkosViewMPVectorUnitTest.hpp.

const int global_num_cols = STOKHOS_DEFAULT_ENSEMBLE_SIZE

Definition at line 140 of file Stokhos_KokkosViewMPVectorUnitTest.hpp.