Stokhos Package Browser (Single Doxygen Collection)  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Stokhos_TpetraCrsMatrixUQPCEUnitTest_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 
26  // Initialize Cuda
27  Kokkos::InitializationSettings init_args;
28  init_args.set_device_id(0);
29  Kokkos::initialize( init_args );
30  Kokkos::print_configuration(std::cout);
31 
32  // Run tests
35 
36  // Finish up
37  Kokkos::finalize();
38 
39  return ret;
40 }
Tpetra::KokkosCompat::KokkosDeviceWrapperNode< Kokkos::Cuda > CudaWrapperNode
static int runUnitTestsFromMain(int argc, char *argv[])
static void setGloballyReduceTestResult(const bool globallyReduceUnitTestResult)
int main(int argc, char **argv)
#define CRSMATRIX_UQ_PCE_TESTS_N(N)