Stokhos Package Browser (Single Doxygen Collection)  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Stokhos_TpetraCrsMatrixMPVectorUnitTest_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 #include "Kokkos_Core.hpp"
17 #include <Tpetra_KokkosCompat_ClassicNodeAPI_Wrapper.hpp>
18 
19 // Instantiate tests for cuda node
20 typedef Tpetra::KokkosCompat::KokkosDeviceWrapperNode<Kokkos::Cuda> CudaWrapperNode;
22 
23 int main( int argc, char* argv[] ) {
24  Teuchos::GlobalMPISession mpiSession(&argc, &argv);
25 
27 
28  // Initialize Cuda
29  Kokkos::InitializationSettings init_args;
30  init_args.set_device_id(0);
31  Kokkos::initialize( init_args );
32  Kokkos::print_configuration(std::cout);
33 
34  // Run tests
37 
38  // Finish up
39  Kokkos::finalize();
40 
41  return ret;
42 }
Tpetra::KokkosCompat::KokkosDeviceWrapperNode< Kokkos::Cuda > CudaWrapperNode
#define CRSMATRIX_MP_VECTOR_TESTS_N(N)
static int runUnitTestsFromMain(int argc, char *argv[])
static void setGloballyReduceTestResult(const bool globallyReduceUnitTestResult)
int main(int argc, char **argv)
unsigned global_sacado_mp_vector_size