35 #include "Kokkos_Core.hpp" 
   38 #if defined(KOKKOS_ENABLE_CUDA_UVM) 
   39 #define SACADO_TEST_DFAD 1 
   41 #define SACADO_TEST_DFAD 0 
   49   const int StaticDim = 64;
 
   50   const int Stride = 32;
 
   51   const int LocalDim = 2;
 
   54   typedef Kokkos::Cuda Device;
 
   55   typedef Kokkos::View<FadType*,Layout,Device> ViewType;
 
   57   typedef typename ViewType::traits TraitsType;
 
   58   typedef Kokkos::Impl::ViewMapping< TraitsType , typename TraitsType::specialize > MappingType;
 
   59   const int view_static_dim = MappingType::FadStaticDimension;
 
   62   typedef typename Kokkos::ThreadLocalScalarType<ViewType>::type local_fad_type;
 
   68   const size_t num_rows = 11;
 
   69   const size_t fad_size = StaticDim;
 
   71   ViewType v(
"v", num_rows, fad_size+1);
 
   72   const size_t span = v.span();
 
   78   const int StaticDim = 50;
 
   79   const int Stride = 32;
 
   80   const int LocalDim = 0;
 
   83   typedef Kokkos::Cuda Device;
 
   84   typedef Kokkos::View<FadType*,Layout,Device> ViewType;
 
   86   typedef typename ViewType::traits TraitsType;
 
   87   typedef Kokkos::Impl::ViewMapping< TraitsType , typename TraitsType::specialize > MappingType;
 
   88   const int view_static_dim = MappingType::FadStaticDimension;
 
   91   typedef typename Kokkos::ThreadLocalScalarType<ViewType>::type local_fad_type;
 
   97   const size_t num_rows = 11;
 
   98   const size_t fad_size = StaticDim;
 
  100   ViewType v(
"v", num_rows, fad_size+1);
 
  101   const size_t span = v.span();
 
  105 int main( 
int argc, 
char* argv[] ) {
 
  109   Kokkos::InitArguments init_args;
 
  110   init_args.device_id = 0;
 
  111   Kokkos::initialize( init_args );
 
  112   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)