Stokhos Package Browser (Single Doxygen Collection)  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Stokhos_UnitTestBase.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 
11 #include "Kokkos_Core.hpp"
13 
18 int main( int argc, char* argv[] )
19 {
20  Teuchos::GlobalMPISession mpiSession(&argc, &argv);
21 
22  // Initialize Kokkos
23  Kokkos::initialize(argc,argv);
24 
25  // For unit tests to reduce the result when MPI is used
27 
28  // Run all registered unit tests
30 
31  // Finalize Kokkos
32  Kokkos::finalize();
33 
34  return res;
35 }
static int runUnitTestsFromMain(int argc, char *argv[])
static void setGloballyReduceTestResult(const bool globallyReduceUnitTestResult)
int main(int argc, char **argv)