Stokhos Package Browser (Single Doxygen Collection) Version of the Day
Loading...
Searching...
No Matches
Classes | Namespaces | Macros | Functions | Variables
Stokhos_KokkosViewUQPCEUnitTest.hpp File Reference
#include "Teuchos_TestingHelpers.hpp"
#include "Teuchos_UnitTestHelpers.hpp"
#include "Stokhos_UnitTestHelpers.hpp"
#include "Stokhos_Sacado_Kokkos_UQ_PCE.hpp"
#include "Stokhos_LegendreBasis.hpp"
#include "Stokhos_CompletePolynomialBasis.hpp"
#include "Stokhos_Sparse3Tensor.hpp"
Include dependency graph for Stokhos_KokkosViewUQPCEUnitTest.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::PCEAtomicFunctor< ViewType >
 

Namespaces

namespace  Test
 

Macros

#define VIEW_UQ_PCE_TESTS_STORAGE_LAYOUT(STORAGE, LAYOUT)
 
#define VIEW_UQ_PCE_TESTS_STORAGE(STORAGE)
 
#define VIEW_UQ_PCE_TESTS_ORDINAL_SCALAR_DEVICE(ORDINAL, SCALAR, DEVICE)
 
#define VIEW_UQ_PCE_TESTS_DEVICE(DEVICE)    VIEW_UQ_PCE_TESTS_ORDINAL_SCALAR_DEVICE( int, double, DEVICE )
 

Functions

template<typename kokkos_cijk_type , typename ordinal_type >
kokkos_cijk_type build_cijk (ordinal_type stoch_dim, ordinal_type poly_ord)
 
template<typename scalar , typename ordinal >
scalar generate_pce_coefficient (const ordinal nFEM, const ordinal nStoch, const ordinal iColFEM, const ordinal iStoch)
 
template<typename ViewType >
bool checkPCEView (const ViewType &v, Teuchos::FancyOStream &out)
 
template<typename ViewType >
bool checkConstantPCEView (const ViewType &v, const typename ViewType::value_type &v_expected, Teuchos::FancyOStream &out)
 
 TEUCHOS_UNIT_TEST_TEMPLATE_2_DECL (Kokkos_View_PCE, Size, Storage, Layout)
 
 TEUCHOS_UNIT_TEST_TEMPLATE_2_DECL (Kokkos_View_PCE, DeepCopy, Storage, Layout)
 
 TEUCHOS_UNIT_TEST_TEMPLATE_2_DECL (Kokkos_View_PCE, DeepCopy_NonContiguous, Storage, Layout)
 
 TEUCHOS_UNIT_TEST_TEMPLATE_2_DECL (Kokkos_View_PCE, DeepCopy_ConstantScalar, Storage, Layout)
 
 TEUCHOS_UNIT_TEST_TEMPLATE_2_DECL (Kokkos_View_PCE, DeepCopy_ConstantPCE, Storage, Layout)
 
 TEUCHOS_UNIT_TEST_TEMPLATE_2_DECL (Kokkos_View_PCE, DeepCopy_ConstantPCE2, Storage, Layout)
 
 TEUCHOS_UNIT_TEST_TEMPLATE_1_DECL (Kokkos_View_PCE, DeepCopy_Subview_Range, Storage)
 
 TEUCHOS_UNIT_TEST_TEMPLATE_2_DECL (Kokkos_View_PCE, DeepCopy_HostArray, Storage, Layout)
 
 TEUCHOS_UNIT_TEST_TEMPLATE_2_DECL (Kokkos_View_PCE, DeepCopy_DeviceArray, Storage, Layout)
 
 TEUCHOS_UNIT_TEST_TEMPLATE_2_DECL (Kokkos_View_PCE, Unmanaged, Storage, Layout)
 
 TEUCHOS_UNIT_TEST_TEMPLATE_2_DECL (Kokkos_View_PCE, DeviceAtomic, Storage, Layout)
 
 TEUCHOS_UNIT_TEST_TEMPLATE_2_DECL (Kokkos_View_PCE, AssignData, Storage, Layout)
 

Variables

const int global_num_rows = 11
 
const int global_num_cols = 9
 

Macro Definition Documentation

◆ VIEW_UQ_PCE_TESTS_STORAGE_LAYOUT

#define VIEW_UQ_PCE_TESTS_STORAGE_LAYOUT ( STORAGE,
LAYOUT )
Value:
Kokkos_View_PCE, Size, STORAGE, LAYOUT ) \
TEUCHOS_UNIT_TEST_TEMPLATE_2_INSTANT( \
Kokkos_View_PCE, DeepCopy, STORAGE, LAYOUT ) \
TEUCHOS_UNIT_TEST_TEMPLATE_2_INSTANT( \
Kokkos_View_PCE, DeepCopy_NonContiguous, STORAGE, LAYOUT ) \
TEUCHOS_UNIT_TEST_TEMPLATE_2_INSTANT( \
Kokkos_View_PCE, DeepCopy_ConstantScalar, STORAGE, LAYOUT ) \
TEUCHOS_UNIT_TEST_TEMPLATE_2_INSTANT( \
Kokkos_View_PCE, DeepCopy_ConstantPCE, STORAGE, LAYOUT ) \
TEUCHOS_UNIT_TEST_TEMPLATE_2_INSTANT( \
Kokkos_View_PCE, DeepCopy_ConstantPCE2, STORAGE, LAYOUT ) \
TEUCHOS_UNIT_TEST_TEMPLATE_2_INSTANT( \
Kokkos_View_PCE, Unmanaged, STORAGE, LAYOUT ) \
TEUCHOS_UNIT_TEST_TEMPLATE_2_INSTANT( \
Kokkos_View_PCE, 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 636 of file Stokhos_KokkosViewUQPCEUnitTest.hpp.

◆ VIEW_UQ_PCE_TESTS_STORAGE

#define VIEW_UQ_PCE_TESTS_STORAGE ( STORAGE)
Value:
using Kokkos::LayoutLeft; \
using Kokkos::LayoutRight; \
VIEW_UQ_PCE_TESTS_STORAGE_LAYOUT(STORAGE, NoLayout) \
VIEW_UQ_PCE_TESTS_STORAGE_LAYOUT(STORAGE, LayoutLeft) \
VIEW_UQ_PCE_TESTS_STORAGE_LAYOUT(STORAGE, LayoutRight) \
TEUCHOS_UNIT_TEST_TEMPLATE_1_INSTANT( \
Kokkos_View_PCE, DeepCopy_Subview_Range, STORAGE )

Definition at line 668 of file Stokhos_KokkosViewUQPCEUnitTest.hpp.

◆ VIEW_UQ_PCE_TESTS_ORDINAL_SCALAR_DEVICE

#define VIEW_UQ_PCE_TESTS_ORDINAL_SCALAR_DEVICE ( ORDINAL,
SCALAR,
DEVICE )
Value:

Definition at line 677 of file Stokhos_KokkosViewUQPCEUnitTest.hpp.

◆ VIEW_UQ_PCE_TESTS_DEVICE

#define VIEW_UQ_PCE_TESTS_DEVICE ( DEVICE)     VIEW_UQ_PCE_TESTS_ORDINAL_SCALAR_DEVICE( int, double, DEVICE )

Definition at line 681 of file Stokhos_KokkosViewUQPCEUnitTest.hpp.

Function Documentation

◆ build_cijk()

template<typename kokkos_cijk_type , typename ordinal_type >
kokkos_cijk_type build_cijk ( ordinal_type stoch_dim,
ordinal_type poly_ord )

Definition at line 59 of file Stokhos_KokkosViewUQPCEUnitTest.hpp.

◆ generate_pce_coefficient()

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

Definition at line 91 of file Stokhos_KokkosViewUQPCEUnitTest.hpp.

◆ checkPCEView()

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

Definition at line 104 of file Stokhos_KokkosViewUQPCEUnitTest.hpp.

◆ checkConstantPCEView()

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

Definition at line 159 of file Stokhos_KokkosViewUQPCEUnitTest.hpp.

◆ TEUCHOS_UNIT_TEST_TEMPLATE_2_DECL() [1/11]

TEUCHOS_UNIT_TEST_TEMPLATE_2_DECL ( Kokkos_View_PCE ,
Size ,
Storage ,
Layout  )

Definition at line 204 of file Stokhos_KokkosViewUQPCEUnitTest.hpp.

◆ TEUCHOS_UNIT_TEST_TEMPLATE_2_DECL() [2/11]

TEUCHOS_UNIT_TEST_TEMPLATE_2_DECL ( Kokkos_View_PCE ,
DeepCopy ,
Storage ,
Layout  )

Definition at line 225 of file Stokhos_KokkosViewUQPCEUnitTest.hpp.

◆ TEUCHOS_UNIT_TEST_TEMPLATE_2_DECL() [3/11]

TEUCHOS_UNIT_TEST_TEMPLATE_2_DECL ( Kokkos_View_PCE ,
DeepCopy_NonContiguous ,
Storage ,
Layout  )

Definition at line 266 of file Stokhos_KokkosViewUQPCEUnitTest.hpp.

◆ TEUCHOS_UNIT_TEST_TEMPLATE_2_DECL() [4/11]

TEUCHOS_UNIT_TEST_TEMPLATE_2_DECL ( Kokkos_View_PCE ,
DeepCopy_ConstantScalar ,
Storage ,
Layout  )

Definition at line 301 of file Stokhos_KokkosViewUQPCEUnitTest.hpp.

◆ TEUCHOS_UNIT_TEST_TEMPLATE_2_DECL() [5/11]

TEUCHOS_UNIT_TEST_TEMPLATE_2_DECL ( Kokkos_View_PCE ,
DeepCopy_ConstantPCE ,
Storage ,
Layout  )

Definition at line 326 of file Stokhos_KokkosViewUQPCEUnitTest.hpp.

◆ TEUCHOS_UNIT_TEST_TEMPLATE_2_DECL() [6/11]

TEUCHOS_UNIT_TEST_TEMPLATE_2_DECL ( Kokkos_View_PCE ,
DeepCopy_ConstantPCE2 ,
Storage ,
Layout  )

Definition at line 351 of file Stokhos_KokkosViewUQPCEUnitTest.hpp.

◆ TEUCHOS_UNIT_TEST_TEMPLATE_1_DECL()

TEUCHOS_UNIT_TEST_TEMPLATE_1_DECL ( Kokkos_View_PCE ,
DeepCopy_Subview_Range ,
Storage  )

Definition at line 378 of file Stokhos_KokkosViewUQPCEUnitTest.hpp.

◆ TEUCHOS_UNIT_TEST_TEMPLATE_2_DECL() [7/11]

TEUCHOS_UNIT_TEST_TEMPLATE_2_DECL ( Kokkos_View_PCE ,
DeepCopy_HostArray ,
Storage ,
Layout  )

Definition at line 430 of file Stokhos_KokkosViewUQPCEUnitTest.hpp.

◆ TEUCHOS_UNIT_TEST_TEMPLATE_2_DECL() [8/11]

TEUCHOS_UNIT_TEST_TEMPLATE_2_DECL ( Kokkos_View_PCE ,
DeepCopy_DeviceArray ,
Storage ,
Layout  )

Definition at line 470 of file Stokhos_KokkosViewUQPCEUnitTest.hpp.

◆ TEUCHOS_UNIT_TEST_TEMPLATE_2_DECL() [9/11]

TEUCHOS_UNIT_TEST_TEMPLATE_2_DECL ( Kokkos_View_PCE ,
Unmanaged ,
Storage ,
Layout  )

Definition at line 503 of file Stokhos_KokkosViewUQPCEUnitTest.hpp.

◆ TEUCHOS_UNIT_TEST_TEMPLATE_2_DECL() [10/11]

TEUCHOS_UNIT_TEST_TEMPLATE_2_DECL ( Kokkos_View_PCE ,
DeviceAtomic ,
Storage ,
Layout  )

Definition at line 577 of file Stokhos_KokkosViewUQPCEUnitTest.hpp.

◆ TEUCHOS_UNIT_TEST_TEMPLATE_2_DECL() [11/11]

TEUCHOS_UNIT_TEST_TEMPLATE_2_DECL ( Kokkos_View_PCE ,
AssignData ,
Storage ,
Layout  )

Definition at line 601 of file Stokhos_KokkosViewUQPCEUnitTest.hpp.

Variable Documentation

◆ global_num_rows

const int global_num_rows = 11

Definition at line 201 of file Stokhos_KokkosViewUQPCEUnitTest.hpp.

◆ global_num_cols

const int global_num_cols = 9

Definition at line 202 of file Stokhos_KokkosViewUQPCEUnitTest.hpp.