Sacado Package Browser (Single Doxygen Collection)  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Fad_KokkosTests_HIP_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 128
18 
19 #include "Fad_KokkosTests.hpp"
20 
23 #undef VIEW_FAD_TESTS_FDC
24 #define VIEW_FAD_TESTS_FDC( F, D ) \
25  VIEW_FAD_TESTS_FLD( F, LeftContiguous64, D ) \
26  VIEW_FAD_TESTS_FLD( F, RightContiguous64, D )
27 
28 #undef VIEW_FAD_TESTS_SFDC
29 #define VIEW_FAD_TESTS_SFDC( F, D ) \
30  VIEW_FAD_TESTS_SFLD( F, LeftContiguous64, D ) \
31  VIEW_FAD_TESTS_SFLD( F, RightContiguous64, D )
32 
33 // Instantiate tests for HIP device
34 using Kokkos::HIP;
37 
38 int main( int argc, char* argv[] ) {
39  Teuchos::GlobalMPISession mpiSession(&argc, &argv);
40 
41  // Initialize HIP
42  Kokkos::InitializationSettings init_args;
43  init_args.set_device_id(0);
44  Kokkos::initialize( init_args );
45  Kokkos::print_configuration(std::cout);
46 
48 
49  // Finalize HIP
50  Kokkos::finalize();
51 
52  return res;
53 }
Kokkos::LayoutContiguous< Kokkos::LayoutLeft, 64 > LeftContiguous64
#define VIEW_FAD_TESTS_FDC(F, D)
static int runUnitTestsFromMain(int argc, char *argv[])
#define VIEW_FAD_TESTS_SFDC(F, D)
Kokkos::LayoutContiguous< Kokkos::LayoutRight, 64 > RightContiguous64
int main()
Definition: ad_example.cpp:171