DPC++ Runtime
Runtime libraries for oneAPI DPC++
usm_enums.hpp
Go to the documentation of this file.
1 //==-------------- usm_enums.hpp - SYCL USM Enums --------------*- 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 #pragma once
9 
10 namespace sycl {
12 namespace usm {
13 
14 enum class alloc { host = 0, device = 1, shared = 2, unknown = 3 };
15 
16 } // namespace usm
17 } // __SYCL_INLINE_VER_NAMESPACE(_V1)
18 } // namespace sycl
__SYCL_INLINE_VER_NAMESPACE
#define __SYCL_INLINE_VER_NAMESPACE(X)
Definition: defines_elementary.hpp:13
sycl::_V1::usm::alloc::unknown
@ unknown
sycl
---— Error handling, matching OpenCL plugin semantics.
Definition: access.hpp:13
sycl::_V1::usm::alloc
alloc
Definition: usm_enums.hpp:14
sycl::_V1::device
The SYCL device class encapsulates a single SYCL device on which kernels may be executed.
Definition: device.hpp:47
sycl::_V1::usm::alloc::shared
@ shared