Sacado Package Browser (Single Doxygen Collection)  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Fad_KokkosAtomicTests_Cuda_Hierarchical_SFad.cpp
Go to the documentation of this file.
1 // @HEADER
2 // *****************************************************************************
3 // Sacado Package
4 //
5 // Copyright 2006 NTESS and the Sacado contributors.
6 // SPDX-License-Identifier: LGPL-2.1-or-later
7 // *****************************************************************************
8 // @HEADER
9 
13 
14 // Re-test cuda with hierarchical cuda parallelism turned on (experimental)
15 #define SACADO_VIEW_CUDA_HIERARCHICAL 1
16 
17 #define GLOBAL_FAD_SIZE 64
18 
20 
23 #undef VIEW_FAD_TESTS_FD
24 #define VIEW_FAD_TESTS_FD( F, D ) \
25  VIEW_FAD_TESTS_FLD( F, LeftContiguous32, D ) \
26  VIEW_FAD_TESTS_FLD( F, RightContiguous32, D )
27 
28 // Instantiate tests for Cuda device
29 #if SACADO_ENABLE_NEW_DESIGN
30 using Kokkos::Cuda;
32 #endif
33 
34 int main( int argc, char* argv[] ) {
35  Teuchos::GlobalMPISession mpiSession(&argc, &argv);
36 
37  // Initialize Cuda
38  Kokkos::InitializationSettings init_args;
39  init_args.set_device_id(0);
40  Kokkos::initialize( init_args );
41  Kokkos::print_configuration(std::cout);
42 
44 
45  // Finalize Cuda
46  Kokkos::finalize();
47 
48  return res;
49 }
Kokkos::LayoutContiguous< Kokkos::LayoutRight, 32 > RightContiguous32
static int runUnitTestsFromMain(int argc, char *argv[])
int main()
Definition: ad_example.cpp:171
Kokkos::LayoutContiguous< Kokkos::LayoutLeft, 32 > LeftContiguous32