Stokhos Package Browser (Single Doxygen Collection)  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Stokhos_KokkosArrayKernelsUnitTest_Serial.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 
10 // Utilities
14 
15 // Device
16 #include "Kokkos_Core.hpp"
17 
18 // Tests
20 
21 using namespace KokkosKernelsUnitTest;
22 
24 
25 // Test declarations
28 
29 // Tests using Serial device
30 using Kokkos::Serial;
31 UNIT_TEST_GROUP_SCALAR_DEVICE( double, Serial )
32 UNIT_TEST_GROUP_SCALAR_HOST_DEVICE( double, Serial )
33 
34 int main( int argc, char* argv[] ) {
35  Teuchos::GlobalMPISession mpiSession(&argc, &argv);
36 
37  // Initialize serial
38  Kokkos::initialize();
39 
40  // Setup (has to happen after initialization)
41  setup.setup();
42 
43  // Run tests
45 
46  // Finish up
47  Kokkos::finalize();
48 
49  return ret;
50 }
static int runUnitTestsFromMain(int argc, char *argv[])
#define UNIT_TEST_GROUP_SCALAR_HOST_DEVICE(SCALAR, DEVICE)
int main(int argc, char **argv)
#define UNIT_TEST_GROUP_SCALAR_DEVICE(SCALAR, DEVICE)