Stokhos Package Browser (Single Doxygen Collection)  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Stokhos_KokkosViewMPVectorUnitTest_Cuda.cpp
Go to the documentation of this file.
1 // @HEADER
2 // *****************************************************************************
3 // Stokhos Package
4 //
5 // Copyright 2009 NTESS and the Stokhos contributors.
6 // SPDX-License-Identifier: BSD-3-Clause
7 // *****************************************************************************
8 // @HEADER
9 
13 
15 
16 // Instantiate test for Cuda device
17 using Kokkos::Cuda;
19 
20 int main( int argc, char* argv[] ) {
21  Teuchos::GlobalMPISession mpiSession(&argc, &argv);
22 
23  // Initialize Cuda
24  Kokkos::InitializationSettings init_args;
25  init_args.set_device_id(0);
26  Kokkos::initialize( init_args );
27  Kokkos::print_configuration(std::cout);
28 
29  // Run tests
31 
32  // Finish up
33  Kokkos::finalize();
34 
35  return ret;
36 }
#define VIEW_MP_VECTOR_TESTS_DEVICE(DEVICE)
static int runUnitTestsFromMain(int argc, char *argv[])
int main(int argc, char **argv)