14 #include "Kokkos_Macros.hpp"
16 #define SACADO_TEST_DFAD 1
26 const int StaticDim = 64;
27 const int Stride = 32;
28 const int LocalDim = 2;
31 typedef Kokkos::Cuda Device;
32 typedef Kokkos::View<FadType*,Layout,Device> ViewType;
34 typedef typename ViewType::traits TraitsType;
35 typedef Kokkos::Impl::ViewMapping< TraitsType , typename TraitsType::specialize > MappingType;
36 const int view_static_dim = MappingType::FadStaticDimension;
39 typedef typename Kokkos::ThreadLocalScalarType<ViewType>::type local_fad_type;
45 const size_t num_rows = 11;
46 const size_t fad_size = StaticDim;
48 ViewType v(
"v", num_rows, fad_size+1);
49 const size_t span = v.span();
55 const int StaticDim = 50;
56 const int Stride = 32;
57 const int LocalDim = 0;
60 typedef Kokkos::Cuda Device;
61 typedef Kokkos::View<FadType*,Layout,Device> ViewType;
63 typedef typename ViewType::traits TraitsType;
64 typedef Kokkos::Impl::ViewMapping< TraitsType , typename TraitsType::specialize > MappingType;
65 const int view_static_dim = MappingType::FadStaticDimension;
68 typedef typename Kokkos::ThreadLocalScalarType<ViewType>::type local_fad_type;
74 const size_t num_rows = 11;
75 const size_t fad_size = StaticDim;
77 ViewType v(
"v", num_rows, fad_size+1);
78 const size_t span = v.span();
82 int main(
int argc,
char* argv[] ) {
86 Kokkos::InitializationSettings init_args;
87 init_args.set_device_id(0);
88 Kokkos::initialize( init_args );
89 Kokkos::print_configuration(std::cout);
Sacado::Fad::DFad< double > FadType
Base template specification for static size.
TEUCHOS_UNIT_TEST(Conversion, IsConvertible)
static int runUnitTestsFromMain(int argc, char *argv[])
#define TEUCHOS_TEST_EQUALITY(v1, v2, out, success)
#define VIEW_FAD_TESTS_D(D)