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)
 

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 ) \
TEUCHOS_UNIT_TEST_TEMPLATE_2_INSTANT( \
Kokkos_View_MP, DeepCopy, STORAGE, LAYOUT ) \
TEUCHOS_UNIT_TEST_TEMPLATE_2_INSTANT( \
Kokkos_View_MP, DeepCopy_ConstantScalar, STORAGE, LAYOUT ) \
TEUCHOS_UNIT_TEST_TEMPLATE_2_INSTANT( \
Kokkos_View_MP, DeepCopy_ConstantVector, STORAGE, LAYOUT ) \
TEUCHOS_UNIT_TEST_TEMPLATE_2_INSTANT( \
Kokkos_View_MP, DeepCopy_ConstantVector2, STORAGE, LAYOUT ) \
TEUCHOS_UNIT_TEST_TEMPLATE_2_INSTANT( \
Kokkos_View_MP, Unmanaged, STORAGE, LAYOUT ) \
TEUCHOS_UNIT_TEST_TEMPLATE_2_INSTANT( \
Kokkos_View_MP, Flatten, STORAGE, LAYOUT )
#define TEUCHOS_UNIT_TEST_TEMPLATE_2_INSTANT(TEST_GROUP, TEST_NAME, TYPE1, TYPE2)

Definition at line 570 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 600 of file Stokhos_KokkosViewMPVectorUnitTest.hpp.

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

Definition at line 609 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 621 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 61 of file Stokhos_KokkosViewMPVectorUnitTest.hpp.

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

Definition at line 74 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 130 of file Stokhos_KokkosViewMPVectorUnitTest.hpp.

TEUCHOS_UNIT_TEST_TEMPLATE_2_DECL ( Kokkos_View_MP  ,
Size  ,
Storage  ,
Layout   
)

Definition at line 174 of file Stokhos_KokkosViewMPVectorUnitTest.hpp.

TEUCHOS_UNIT_TEST_TEMPLATE_2_DECL ( Kokkos_View_MP  ,
DeepCopy  ,
Storage  ,
Layout   
)

Definition at line 187 of file Stokhos_KokkosViewMPVectorUnitTest.hpp.

TEUCHOS_UNIT_TEST_TEMPLATE_2_DECL ( Kokkos_View_MP  ,
DeepCopy_ConstantScalar  ,
Storage  ,
Layout   
)

Definition at line 222 of file Stokhos_KokkosViewMPVectorUnitTest.hpp.

TEUCHOS_UNIT_TEST_TEMPLATE_2_DECL ( Kokkos_View_MP  ,
DeepCopy_ConstantVector  ,
Storage  ,
Layout   
)

Definition at line 240 of file Stokhos_KokkosViewMPVectorUnitTest.hpp.

TEUCHOS_UNIT_TEST_TEMPLATE_2_DECL ( Kokkos_View_MP  ,
DeepCopy_ConstantVector2  ,
Storage  ,
Layout   
)

Definition at line 258 of file Stokhos_KokkosViewMPVectorUnitTest.hpp.

TEUCHOS_UNIT_TEST_TEMPLATE_1_DECL ( Kokkos_View_MP  ,
DeepCopy_Subview_Range  ,
Storage   
)

Definition at line 279 of file Stokhos_KokkosViewMPVectorUnitTest.hpp.

TEUCHOS_UNIT_TEST_TEMPLATE_2_DECL ( Kokkos_View_MP  ,
DeepCopy_HostArray  ,
Storage  ,
Layout   
)

Definition at line 326 of file Stokhos_KokkosViewMPVectorUnitTest.hpp.

TEUCHOS_UNIT_TEST_TEMPLATE_2_DECL ( Kokkos_View_MP  ,
DeepCopy_DeviceArray  ,
Storage  ,
Layout   
)

Definition at line 360 of file Stokhos_KokkosViewMPVectorUnitTest.hpp.

TEUCHOS_UNIT_TEST_TEMPLATE_2_DECL ( Kokkos_View_MP  ,
Unmanaged  ,
Storage  ,
Layout   
)

Definition at line 387 of file Stokhos_KokkosViewMPVectorUnitTest.hpp.

TEUCHOS_UNIT_TEST_TEMPLATE_2_DECL ( Kokkos_View_MP  ,
PartitionHost  ,
Storage  ,
Layout   
)

Definition at line 425 of file Stokhos_KokkosViewMPVectorUnitTest.hpp.

TEUCHOS_UNIT_TEST_TEMPLATE_2_DECL ( Kokkos_View_MP  ,
Flatten  ,
Storage  ,
Layout   
)

Definition at line 498 of file Stokhos_KokkosViewMPVectorUnitTest.hpp.

TEUCHOS_UNIT_TEST_TEMPLATE_2_DECL ( Kokkos_View_MP  ,
DeviceAtomic  ,
Storage  ,
Layout   
)

Definition at line 551 of file Stokhos_KokkosViewMPVectorUnitTest.hpp.

Variable Documentation

const int global_num_rows = 11

Definition at line 171 of file Stokhos_KokkosViewMPVectorUnitTest.hpp.

const int global_num_cols = STOKHOS_DEFAULT_ENSEMBLE_SIZE

Definition at line 172 of file Stokhos_KokkosViewMPVectorUnitTest.hpp.