Stokhos Package Browser (Single Doxygen Collection)  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Stokhos_KokkosTraits.hpp
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 #ifndef STOKHOS_KOKKOS_TRAITS_HPP
11 #define STOKHOS_KOKKOS_TRAITS_HPP
12 
13 #include "Sacado_Traits.hpp"
14 
15 #include "Kokkos_Macros.hpp"
16 #include "Kokkos_Core_fwd.hpp"
17 
18 namespace Sacado {
19 
20 #ifdef KOKKOS_ENABLE_SERIAL
21  template <>
22  struct StringName< Kokkos::Serial > {
23  static std::string eval() { return "Kokkos::Serial"; }
24  };
25 #endif
26 
27 #ifdef KOKKOS_ENABLE_THREADS
28  template <>
29  struct StringName< Kokkos::Threads > {
30  static std::string eval() { return "Kokkos::Threads"; }
31  };
32 #endif
33 
34 #ifdef KOKKOS_ENABLE_OPENMP
35  template <>
36  struct StringName< Kokkos::OpenMP > {
37  static std::string eval() { return "Kokkos::OpenMP"; }
38  };
39 #endif
40 
41 #ifdef KOKKOS_ENABLE_CUDA
42  template <>
43  struct StringName< Kokkos::Cuda > {
44  static std::string eval() { return "Kokkos::Cuda"; }
45  };
46 #endif
47 
48 }
49 
50 #endif // STOKHOS_KOKKOS_TRAITS_HPP