//@HEADER // ************************************************************************ // // Kokkos v. 4.0 // Copyright (2022) National Technology & Engineering // Solutions of Sandia, LLC (NTESS). // // Under the terms of Contract DE-NA0003525 with NTESS, // the U.S. Government retains certain rights in this software. // // Part of Kokkos, under the Apache License v2.0 with LLVM Exceptions. // See https://kokkos.org/LICENSE for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //@HEADER #ifndef KOKKOS_IMPL_PUBLIC_INCLUDE #include static_assert(false, "Including non-public Kokkos header files is not allowed."); #endif #ifndef KOKKOS_KOKKOS_RANK_HPP #define KOKKOS_KOKKOS_RANK_HPP #include #include // Iterate namespace Kokkos { // Iteration Pattern template struct Rank { static_assert(N != 0u, "Kokkos Error: rank 0 undefined"); static_assert(N != 1u, "Kokkos Error: rank 1 is not a multi-dimensional range"); static_assert(N < 9u, "Kokkos Error: Unsupported rank..."); using iteration_pattern = Rank; static constexpr int rank = N; static constexpr Iterate outer_direction = OuterDir; static constexpr Iterate inner_direction = InnerDir; }; } // end namespace Kokkos #endif // KOKKOS_KOKKOS_RANK_HPP