Stokhos Package Browser (Single Doxygen Collection)  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Stokhos_KokkosViewUQPCEUnitTest_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 // Instantiate test for Cuda device
17 // Some of the implementation requres UVM to function correctly,
18 // so disable if UVM is disabled
19 #if defined(KOKKOS_ENABLE_CUDA_UVM)
20 using Kokkos::Cuda;
22 #endif
23 
24 int main( int argc, char* argv[] ) {
25  Teuchos::GlobalMPISession mpiSession(&argc, &argv);
26 
27  // Initialize Cuda
28  Kokkos::InitializationSettings init_args;
29  init_args.set_device_id(0);
30  Kokkos::initialize( init_args );
31  Kokkos::print_configuration(std::cout);
32 
33  // Run tests
35 
36  // Finish up
37  Kokkos::finalize();
38 
39  return ret;
40 }
#define VIEW_UQ_PCE_TESTS_DEVICE(DEVICE)
static int runUnitTestsFromMain(int argc, char *argv[])
int main(int argc, char **argv)