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

Go to the source code of this file.

Classes

struct  is_dfad< T >
 
struct  is_dfad< Sacado::Fad::Exp::DFad< T > >
 
struct  AddTag
 
struct  SubTag
 
struct  MulTag
 
struct  DivTag
 
struct  MaxTag
 
struct  MinTag
 
struct  AtomicKernel< ViewType, ScalarViewType, OperFetch >
 

Macros

#define GLOBAL_FAD_SIZE   5
 
#define VIEW_FAD_TESTS_FLD(F, L, D)
 
#define VIEW_FAD_TESTS_FD(F, D)
 
#define VIEW_FAD_TESTS_D(D)   /* */
 

Typedefs

typedef
Kokkos::LayoutContiguous
< Kokkos::LayoutLeft > 
LeftContiguous
 
typedef
Kokkos::LayoutContiguous
< Kokkos::LayoutRight > 
RightContiguous
 

Functions

template<typename FadType1 , typename FadType2 >
bool checkFads (const FadType1 &x, const FadType2 &x2, Teuchos::FancyOStream &out, double tol=1.0e-15)
 
template<typename fadtype , typename ordinal >
fadtype generate_fad (const ordinal num_rows, const ordinal num_cols, const ordinal fad_size, const ordinal row, const ordinal col)
 
template<typename FadType , typename Layout , typename Device , bool OperFetch, typename TagType >
bool testAtomic (const TagType &tag, Teuchos::FancyOStream &out)
 
 TEUCHOS_UNIT_TEST_TEMPLATE_3_DECL (Kokkos_View_Fad, AtomicAddFetch, FadType, Layout, Device)
 
 TEUCHOS_UNIT_TEST_TEMPLATE_3_DECL (Kokkos_View_Fad, AtomicSubFetch, FadType, Layout, Device)
 
 TEUCHOS_UNIT_TEST_TEMPLATE_3_DECL (Kokkos_View_Fad, AtomicMulFetch, FadType, Layout, Device)
 
 TEUCHOS_UNIT_TEST_TEMPLATE_3_DECL (Kokkos_View_Fad, AtomicDivFetch, FadType, Layout, Device)
 
 TEUCHOS_UNIT_TEST_TEMPLATE_3_DECL (Kokkos_View_Fad, AtomicMaxFetch, FadType, Layout, Device)
 
 TEUCHOS_UNIT_TEST_TEMPLATE_3_DECL (Kokkos_View_Fad, AtomicMinFetch, FadType, Layout, Device)
 
 TEUCHOS_UNIT_TEST_TEMPLATE_3_DECL (Kokkos_View_Fad, AtomicFetchAdd, FadType, Layout, Device)
 
 TEUCHOS_UNIT_TEST_TEMPLATE_3_DECL (Kokkos_View_Fad, AtomicFetchSub, FadType, Layout, Device)
 
 TEUCHOS_UNIT_TEST_TEMPLATE_3_DECL (Kokkos_View_Fad, AtomicFetchMul, FadType, Layout, Device)
 
 TEUCHOS_UNIT_TEST_TEMPLATE_3_DECL (Kokkos_View_Fad, AtomicFetchDiv, FadType, Layout, Device)
 
 TEUCHOS_UNIT_TEST_TEMPLATE_3_DECL (Kokkos_View_Fad, AtomicFetchMax, FadType, Layout, Device)
 
 TEUCHOS_UNIT_TEST_TEMPLATE_3_DECL (Kokkos_View_Fad, AtomicFetchMin, FadType, Layout, Device)
 

Variables

const int global_num_rows = 11
 
const int global_num_cols = 7
 
const int global_fad_size = GLOBAL_FAD_SIZE
 

Macro Definition Documentation

#define GLOBAL_FAD_SIZE   5

Definition at line 65 of file Fad_KokkosAtomicTests.hpp.

#define VIEW_FAD_TESTS_FLD (   F,
  L,
  D 
)
Value:
TEUCHOS_UNIT_TEST_TEMPLATE_3_INSTANT( Kokkos_View_Fad, AtomicAddFetch, F, L, D ) \
TEUCHOS_UNIT_TEST_TEMPLATE_3_INSTANT( Kokkos_View_Fad, AtomicSubFetch, F, L, D ) \
TEUCHOS_UNIT_TEST_TEMPLATE_3_INSTANT( Kokkos_View_Fad, AtomicMulFetch, F, L, D ) \
TEUCHOS_UNIT_TEST_TEMPLATE_3_INSTANT( Kokkos_View_Fad, AtomicDivFetch, F, L, D ) \
TEUCHOS_UNIT_TEST_TEMPLATE_3_INSTANT( Kokkos_View_Fad, AtomicMaxFetch, F, L, D ) \
TEUCHOS_UNIT_TEST_TEMPLATE_3_INSTANT( Kokkos_View_Fad, AtomicMinFetch, F, L, D ) \
TEUCHOS_UNIT_TEST_TEMPLATE_3_INSTANT( Kokkos_View_Fad, AtomicFetchAdd, F, L, D ) \
TEUCHOS_UNIT_TEST_TEMPLATE_3_INSTANT( Kokkos_View_Fad, AtomicFetchSub, F, L, D ) \
TEUCHOS_UNIT_TEST_TEMPLATE_3_INSTANT( Kokkos_View_Fad, AtomicFetchMul, F, L, D ) \
TEUCHOS_UNIT_TEST_TEMPLATE_3_INSTANT( Kokkos_View_Fad, AtomicFetchDiv, F, L, D ) \
TEUCHOS_UNIT_TEST_TEMPLATE_3_INSTANT( Kokkos_View_Fad, AtomicFetchMax, F, L, D ) \
TEUCHOS_UNIT_TEST_TEMPLATE_3_INSTANT( Kokkos_View_Fad, AtomicFetchMin, F, L, D )
#define TEUCHOS_UNIT_TEST_TEMPLATE_3_INSTANT(TEST_GROUP, TEST_NAME, TYPE1, TYPE2, TYPE3)

Definition at line 376 of file Fad_KokkosAtomicTests.hpp.

#define VIEW_FAD_TESTS_FD (   F,
  D 
)
#define VIEW_FAD_TESTS_D (   D)    /* */

Definition at line 420 of file Fad_KokkosAtomicTests.hpp.

Typedef Documentation

typedef Kokkos::LayoutContiguous<Kokkos::LayoutLeft> LeftContiguous

Definition at line 392 of file Fad_KokkosAtomicTests.hpp.

typedef Kokkos::LayoutContiguous<Kokkos::LayoutRight> RightContiguous

Definition at line 393 of file Fad_KokkosAtomicTests.hpp.

Function Documentation

template<typename FadType1 , typename FadType2 >
bool checkFads ( const FadType1 &  x,
const FadType2 &  x2,
Teuchos::FancyOStream out,
double  tol = 1.0e-15 
)

Definition at line 25 of file Fad_KokkosAtomicTests.hpp.

template<typename fadtype , typename ordinal >
fadtype generate_fad ( const ordinal  num_rows,
const ordinal  num_cols,
const ordinal  fad_size,
const ordinal  row,
const ordinal  col 
)
inline

Definition at line 45 of file Fad_KokkosAtomicTests.hpp.

template<typename FadType , typename Layout , typename Device , bool OperFetch, typename TagType >
bool testAtomic ( const TagType &  tag,
Teuchos::FancyOStream out 
)

Definition at line 242 of file Fad_KokkosAtomicTests.hpp.

TEUCHOS_UNIT_TEST_TEMPLATE_3_DECL ( Kokkos_View_Fad  ,
AtomicAddFetch  ,
FadType  ,
Layout  ,
Device   
)

Definition at line 302 of file Fad_KokkosAtomicTests.hpp.

TEUCHOS_UNIT_TEST_TEMPLATE_3_DECL ( Kokkos_View_Fad  ,
AtomicSubFetch  ,
FadType  ,
Layout  ,
Device   
)

Definition at line 308 of file Fad_KokkosAtomicTests.hpp.

TEUCHOS_UNIT_TEST_TEMPLATE_3_DECL ( Kokkos_View_Fad  ,
AtomicMulFetch  ,
FadType  ,
Layout  ,
Device   
)

Definition at line 314 of file Fad_KokkosAtomicTests.hpp.

TEUCHOS_UNIT_TEST_TEMPLATE_3_DECL ( Kokkos_View_Fad  ,
AtomicDivFetch  ,
FadType  ,
Layout  ,
Device   
)

Definition at line 320 of file Fad_KokkosAtomicTests.hpp.

TEUCHOS_UNIT_TEST_TEMPLATE_3_DECL ( Kokkos_View_Fad  ,
AtomicMaxFetch  ,
FadType  ,
Layout  ,
Device   
)

Definition at line 326 of file Fad_KokkosAtomicTests.hpp.

TEUCHOS_UNIT_TEST_TEMPLATE_3_DECL ( Kokkos_View_Fad  ,
AtomicMinFetch  ,
FadType  ,
Layout  ,
Device   
)

Definition at line 332 of file Fad_KokkosAtomicTests.hpp.

TEUCHOS_UNIT_TEST_TEMPLATE_3_DECL ( Kokkos_View_Fad  ,
AtomicFetchAdd  ,
FadType  ,
Layout  ,
Device   
)

Definition at line 340 of file Fad_KokkosAtomicTests.hpp.

TEUCHOS_UNIT_TEST_TEMPLATE_3_DECL ( Kokkos_View_Fad  ,
AtomicFetchSub  ,
FadType  ,
Layout  ,
Device   
)

Definition at line 346 of file Fad_KokkosAtomicTests.hpp.

TEUCHOS_UNIT_TEST_TEMPLATE_3_DECL ( Kokkos_View_Fad  ,
AtomicFetchMul  ,
FadType  ,
Layout  ,
Device   
)

Definition at line 352 of file Fad_KokkosAtomicTests.hpp.

TEUCHOS_UNIT_TEST_TEMPLATE_3_DECL ( Kokkos_View_Fad  ,
AtomicFetchDiv  ,
FadType  ,
Layout  ,
Device   
)

Definition at line 358 of file Fad_KokkosAtomicTests.hpp.

TEUCHOS_UNIT_TEST_TEMPLATE_3_DECL ( Kokkos_View_Fad  ,
AtomicFetchMax  ,
FadType  ,
Layout  ,
Device   
)

Definition at line 364 of file Fad_KokkosAtomicTests.hpp.

TEUCHOS_UNIT_TEST_TEMPLATE_3_DECL ( Kokkos_View_Fad  ,
AtomicFetchMin  ,
FadType  ,
Layout  ,
Device   
)

Definition at line 370 of file Fad_KokkosAtomicTests.hpp.

Variable Documentation

const int global_num_rows = 11

Definition at line 67 of file Fad_KokkosAtomicTests.hpp.

const int global_num_cols = 7

Definition at line 68 of file Fad_KokkosAtomicTests.hpp.

const int global_fad_size = GLOBAL_FAD_SIZE

Definition at line 69 of file Fad_KokkosAtomicTests.hpp.