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.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 #define SACADO_TEST_DFAD 1
17 
19 
20 // Instantiate tests for Cuda device. We can only test DFad is UVM is enabled.
21 using Kokkos::Cuda;
22 VIEW_FAD_TESTS_D( Cuda )
23 
24 int main( int argc, char* argv[] ) {
25  Teuchos::GlobalMPISession mpiSession(&argc, &argv);
26 
27  // Initialize Cuda
28  Kokkos::InitializationSettings init_args;
29  init_args.set_device_id(0);
30  Kokkos::initialize( init_args );
31  Kokkos::print_configuration(std::cout);
32 
34 
35  // Finalize Cuda
36  Kokkos::finalize();
37 
38  return res;
39 }
static int runUnitTestsFromMain(int argc, char *argv[])
int main()
Definition: ad_example.cpp:171
#define VIEW_FAD_TESTS_D(D)