//@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 #include #include #include #include namespace Test { template void view_space_assign() { Kokkos::View a = Kokkos::View("a", 1); Kokkos::View b = Kokkos::View("b", 1); Kokkos::View c = Kokkos::View("c", 1); Kokkos::View d = Kokkos::View("d", 1); Kokkos::View e = Kokkos::View("e", 1); // Rank-one layout can assign: Kokkos::View f = Kokkos::View("f", 1); } } // namespace Test