DPC++ Runtime
Runtime libraries for oneAPI DPC++
level_zero_ownership.hpp
Go to the documentation of this file.
1
//===--- level_zero_ownership.hpp - Level Zero Ownership -- ------*-C++ -*-===//
2
//
3
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4
// See https://llvm.org/LICENSE.txt for license information.
5
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6
//
7
//===----------------------------------------------------------------------===//
8
9
#pragma once
10
11
#include <
sycl/detail/defines_elementary.hpp
>
12
13
namespace
sycl
{
14
__SYCL_INLINE_VER_NAMESPACE
(_V1) {
15
namespace
ext::oneapi::level_zero {
16
17
// Since Level-Zero is not doing any reference counting itself, we have to
18
// be explicit about the ownership of the native handles used in the
19
// interop functions below.
20
//
21
enum class
ownership
{
transfer
,
keep
};
22
23
}
// namespace ext::oneapi::level_zero
24
}
// __SYCL_INLINE_VER_NAMESPACE(_V1)
25
}
// namespace sycl
__SYCL_INLINE_VER_NAMESPACE
#define __SYCL_INLINE_VER_NAMESPACE(X)
Definition:
defines_elementary.hpp:11
sycl
---— Error handling, matching OpenCL plugin semantics.
Definition:
access.hpp:14
sycl::_V1::ext::oneapi::level_zero::ownership::keep
@ keep
defines_elementary.hpp
sycl::_V1::ext::oneapi::level_zero::ownership
ownership
Definition:
level_zero_ownership.hpp:21
sycl::_V1::ext::oneapi::level_zero::ownership::transfer
@ transfer
include
sycl
ext
oneapi
backend
level_zero_ownership.hpp
Generated by
1.8.17