Kokkos Core Kernels Package Version of the Day
Loading...
Searching...
No Matches
Kokkos_PointerOwnership.hpp
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// Experimental unified task-data parallel manycore LDRD
18
19#ifndef KOKKOS_IMPL_PUBLIC_INCLUDE
20#include <Kokkos_Macros.hpp>
21static_assert(false,
22 "Including non-public Kokkos header files is not allowed.");
23#endif
24#ifndef KOKKOS_IMPL_POINTEROWNERSHIP_HPP
25#define KOKKOS_IMPL_POINTEROWNERSHIP_HPP
26
27#include <Kokkos_Macros.hpp>
28
29#include <Kokkos_Core_fwd.hpp>
30
31//----------------------------------------------------------------------------
32//----------------------------------------------------------------------------
33
34namespace Kokkos {
35
37template <class T>
38using OwningRawPtr = T*;
39
41template <class T>
42using ObservingRawPtr = T*;
43
44} // end namespace Kokkos
45
46//----------------------------------------------------------------------------
47//----------------------------------------------------------------------------
48
49#endif /* #ifndef KOKKOS_IMPL_POINTEROWNERSHIP_HPP */