34 #define SACADO_VIEW_CUDA_HIERARCHICAL 1
35 #define SACADO_VIEW_CUDA_HIERARCHICAL_DFAD_STRIDED 1
36 #define SACADO_KOKKOS_USE_MEMORY_POOL 1
39 #include "Kokkos_Core.hpp"
43 #undef VIEW_FAD_TESTS_FDC
44 #define VIEW_FAD_TESTS_FDC( F, D ) \
45 VIEW_FAD_TESTS_FLD( F, LeftContiguous32, D ) \
46 VIEW_FAD_TESTS_FLD( F, RightContiguous32, D )
48 #undef VIEW_FAD_TESTS_SFDC
49 #define VIEW_FAD_TESTS_SFDC( F, D ) \
50 VIEW_FAD_TESTS_SFLD( F, LeftContiguous32, D ) \
51 VIEW_FAD_TESTS_SFLD( F, RightContiguous32, D )
54 #if defined(KOKKOS_ENABLE_CUDA_UVM)
55 #define SACADO_TEST_DFAD 1
57 #define SACADO_TEST_DFAD 0
62 int
main(
int argc,
char* argv[] ) {
66 Kokkos::InitArguments init_args;
67 init_args.device_id = 0;
68 Kokkos::initialize( init_args );
69 Kokkos::print_configuration(std::cout);
71 #if defined(SACADO_KOKKOS_USE_MEMORY_POOL)
83 #if defined(SACADO_KOKKOS_USE_MEMORY_POOL)
void createGlobalMemoryPool(const ExecSpace &space, const size_t min_total_alloc_size, const uint32_t min_block_alloc_size, const uint32_t max_block_alloc_size, const uint32_t min_superblock_size)
const int global_num_rows
const int global_fad_size
static int runUnitTestsFromMain(int argc, char *argv[])
const int global_num_cols
Kokkos::LayoutContiguous< Kokkos::LayoutLeft, 32 > LeftContiguous32
void destroyGlobalMemoryPool(const ExecSpace &space)
#define VIEW_FAD_TESTS_D(D)
Kokkos::LayoutContiguous< Kokkos::LayoutRight, 32 > RightContiguous32