Sacado Package Browser (Single Doxygen Collection)
Version of the Day
|
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 |
#define GLOBAL_FAD_SIZE 5 |
Definition at line 65 of file Fad_KokkosAtomicTests.hpp.
Definition at line 376 of file Fad_KokkosAtomicTests.hpp.
Definition at line 395 of file Fad_KokkosAtomicTests.hpp.
#define VIEW_FAD_TESTS_D | ( | D | ) | /* */ |
Definition at line 420 of file Fad_KokkosAtomicTests.hpp.
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.
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.
|
inline |
Definition at line 45 of file Fad_KokkosAtomicTests.hpp.
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.
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.