| 1 |
//@HEADER |
| 2 |
// ************************************************************************ |
| 3 |
// |
| 4 |
// Kokkos v. 4.0 |
| 5 |
// Copyright (2022) National Technology & Engineering |
| 6 |
// Solutions of Sandia, LLC (NTESS). |
| 7 |
// |
| 8 |
// Under the terms of Contract DE-NA0003525 with NTESS, |
| 9 |
// the U.S. Government retains certain rights in this software. |
| 10 |
// |
| 11 |
// Part of Kokkos, under the Apache License v2.0 with LLVM Exceptions. |
| 12 |
// See https://kokkos.org/LICENSE for license information. |
| 13 |
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception |
| 14 |
// |
| 15 |
//@HEADER |
| 16 |
|
| 17 |
#if 0 |
| 18 |
|
| 19 |
#include "KokkosCompat_View.hpp" |
| 20 |
#include "KokkosCompat_View_def.hpp" |
| 21 |
|
| 22 |
#include "Kokkos_Core.hpp" |
| 23 |
|
| 24 |
namespace Kokkos { |
| 25 |
namespace Compat { |
| 26 |
|
| 27 |
#if defined(KOKKOS_ENABLE_SERIAL) |
| 28 |
#define COMPAT_INSTANT_SERIAL(T) \ |
| 29 |
COMPAT_INSTANT(T,Kokkos::Serial) |
| 30 |
#else |
| 31 |
# define COMPAT_INSTANT_SERIAL(T) |
| 32 |
#endif // defined(KOKKOS_ENABLE_SERIAL) |
| 33 |
|
| 34 |
#if defined(KOKKOS_ENABLE_THREADS) |
| 35 |
#define COMPAT_INSTANT_THREADS(T) \ |
| 36 |
COMPAT_INSTANT(T,Kokkos::Threads) |
| 37 |
#else |
| 38 |
#define COMPAT_INSTANT_THREADS(T) |
| 39 |
#endif |
| 40 |
|
| 41 |
#if defined(KOKKOS_ENABLE_OPENMP) |
| 42 |
#define COMPAT_INSTANT_OPENMP(T) \ |
| 43 |
COMPAT_INSTANT(T,Kokkos::OpenMP) |
| 44 |
#else |
| 45 |
#define COMPAT_INSTANT_OPENMP(T) |
| 46 |
#endif |
| 47 |
|
| 48 |
#define COMPAT_INSTANT_ALL(T) \ |
| 49 |
COMPAT_INSTANT_SERIAL(T) \ |
| 50 |
COMPAT_INSTANT_THREADS(T) \ |
| 51 |
COMPAT_INSTANT_OPENMP(T) \ |
| 52 |
COMPAT_INSTANT(T,Kokkos::HostSpace) |
| 53 |
|
| 54 |
COMPAT_INSTANT_ALL(float) |
| 55 |
COMPAT_INSTANT_ALL(double) |
| 56 |
COMPAT_INSTANT_ALL(int) |
| 57 |
COMPAT_INSTANT_ALL(long) |
| 58 |
COMPAT_INSTANT_ALL(unsigned) |
| 59 |
COMPAT_INSTANT_ALL(unsigned long) |
| 60 |
COMPAT_INSTANT_ALL(char) |
| 61 |
COMPAT_INSTANT_ALL(short) |
| 62 |
|
| 63 |
#if defined(KOKKOS_ENABLE_OPENMP) |
| 64 |
#define COMPAT_INSTANT_CUDA(T) \ |
| 65 |
COMPAT_INSTANT(T,Kokkos::Cuda) |
| 66 |
#else |
| 67 |
COMPAT_INSTANT_CUDA(T) |
| 68 |
#endif |
| 69 |
|
| 70 |
#if defined(KOKKOS_ENABLE_CUDA) |
| 71 |
#define COMPAT_INSTANT_CUDA_UVM(T) \ |
| 72 |
COMPAT_INSTANT(T,Kokkos::CudaUVMSpace) |
| 73 |
#else |
| 74 |
COMPAT_INSTANT_CUDA_UVM(T) |
| 75 |
#endif |
| 76 |
|
| 77 |
COMPAT_INSTANT_CUDA(float) |
| 78 |
COMPAT_INSTANT_CUDA(double) |
| 79 |
COMPAT_INSTANT_CUDA(int) |
| 80 |
COMPAT_INSTANT_CUDA(long) |
| 81 |
COMPAT_INSTANT_CUDA(unsigned) |
| 82 |
COMPAT_INSTANT_CUDA(unsigned long) |
| 83 |
COMPAT_INSTANT_CUDA(char) |
| 84 |
COMPAT_INSTANT_CUDA(short) |
| 85 |
|
| 86 |
COMPAT_INSTANT_CUDA_UVM(float) |
| 87 |
COMPAT_INSTANT_CUDA_UVM(double) |
| 88 |
COMPAT_INSTANT_CUDA_UVM(int) |
| 89 |
COMPAT_INSTANT_CUDA_UVM(long) |
| 90 |
COMPAT_INSTANT_CUDA_UVM(unsigned) |
| 91 |
COMPAT_INSTANT_CUDA_UVM(unsigned long) |
| 92 |
COMPAT_INSTANT_CUDA_UVM(char) |
| 93 |
COMPAT_INSTANT_CUDA_UVM(short) |
| 94 |
} // namespace Compat |
| 95 |
} // namespace Kokkos |
| 96 |
|
| 97 |
#endif // 0 |