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_NoViewSpec_HIP.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 // Disable view specializations
15 #define SACADO_DISABLE_FAD_VIEW_SPEC
16 
17 #include "Kokkos_Macros.hpp"
18 
19 #define SACADO_TEST_DFAD 1
20 
21 #include "Fad_KokkosTests.hpp"
22 
23 // Instantiate tests for HIP device
24 using Kokkos::HIP;
25 VIEW_FAD_TESTS_D( HIP )
26 
27 int main( int argc, char* argv[] ) {
28  Teuchos::GlobalMPISession mpiSession(&argc, &argv);
29 
30  // Initialize HIP
31  Kokkos::InitializationSettings init_args;
32  init_args.set_device_id(0);
33  Kokkos::initialize( init_args );
34  Kokkos::print_configuration(std::cout);
35 
37 
38  // Finalize HIP
39  Kokkos::finalize();
40 
41  return res;
42 }
static int runUnitTestsFromMain(int argc, char *argv[])
int main()
Definition: ad_example.cpp:171
#define VIEW_FAD_TESTS_D(D)