Stokhos Package Browser (Single Doxygen Collection) Version of the Day
Loading...
Searching...
No Matches
Stokhos_UnitTestBase.cpp
Go to the documentation of this file.
1#include "Teuchos_GlobalMPISession.hpp"
2#include "Kokkos_Core.hpp"
3#include "Teuchos_UnitTestRepository.hpp"
4
9int main( int argc, char* argv[] )
10{
11 Teuchos::GlobalMPISession mpiSession(&argc, &argv);
12
13 // Initialize Kokkos
14 Kokkos::initialize(argc,argv);
15
16 // For unit tests to reduce the result when MPI is used
17 Teuchos::UnitTestRepository::setGloballyReduceTestResult(true);
18
19 // Run all registered unit tests
20 int res = Teuchos::UnitTestRepository::runUnitTestsFromMain(argc, argv);
21
22 // Finalize Kokkos
23 Kokkos::finalize();
24
25 return res;
26}
int main(int argc, char *argv[])