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_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 #include "Kokkos_Macros.hpp"
15 
16 // Disable view specializations (changes atomic argument from ViewFadPtr to
17 // Fad*)
18 #define SACADO_DISABLE_FAD_VIEW_SPEC
19 
20 // DFad requires the View specialization, so don't test DFad
21 #define SACADO_TEST_DFAD 0
23 
24 // Instantiate tests for HIP device.
25 using Kokkos::HIP;
26 VIEW_FAD_TESTS_D( HIP )
27 
28 int main( int argc, char* argv[] ) {
29  Teuchos::GlobalMPISession mpiSession(&argc, &argv);
30 
31  // Initialize HIP
32  Kokkos::InitializationSettings init_args;
33  init_args.set_device_id(0);
34  Kokkos::initialize( init_args );
35  Kokkos::print_configuration(std::cout);
36 
38 
39  // Finalize HIP
40  Kokkos::finalize();
41 
42  return res;
43 }
static int runUnitTestsFromMain(int argc, char *argv[])
int main()
Definition: ad_example.cpp:171
#define VIEW_FAD_TESTS_D(D)