Stokhos Package Browser (Single Doxygen Collection)  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
TestSpMv_Host.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 // Tests
11 #include "TestSpMv.hpp"
12 
13 // Devices
14 #include "Kokkos_Core.hpp"
15 
16 template <typename Storage>
17 void mainHost(int nGrid, int nIter, KokkosSparse::DeviceConfig dev_config) {
18 #ifdef __MIC__
19  const int entry_min = 8;
20  const int entry_max = 48;
21  const int entry_step = 8;
22 #else
23  const int entry_min = 4;
24  const int entry_max = 32;
25  const int entry_step = 4;
26 #endif
27 
28  performance_test_driver<Storage,entry_min,entry_max,entry_step>(
29  nGrid,nIter,dev_config);
30 }
31 
32 #ifdef KOKKOS_ENABLE_THREADS
33 template void mainHost< Stokhos::StaticFixedStorage<int,double,1,Kokkos::Threads> >(int nGrid, int nIter, KokkosSparse::DeviceConfig dev_config);
34 #endif
35 
36 #ifdef KOKKOS_ENABLE_OPENMP
37 template void mainHost< Stokhos::StaticFixedStorage<int,double,1,Kokkos::OpenMP> >(int nGrid, int nIter, KokkosSparse::DeviceConfig dev_config);
38 #endif
void mainHost(const Teuchos::RCP< const Teuchos::Comm< int > > &comm, const int use_print, const int use_trials, const int use_nodes[], const bool check, Kokkos::Example::FENL::DeviceConfig dev_config)