Stokhos Package Browser (Single Doxygen Collection)
Version of the Day
Loading...
Searching...
No Matches
test
UnitTest
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
9
int
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
}
argv
char * argv[]
Definition
Stokhos_HouseTriDiagUnitTest.cpp:286
main
int main(int argc, char *argv[])
Definition
Stokhos_UnitTestBase.cpp:9
Generated by
1.10.0