DPC++ Runtime
Runtime libraries for oneAPI DPC++
hip_definitions.hpp
Go to the documentation of this file.
1 //==------------- hip_definitions.hpp - SYCL HIP backend -------------------==//
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 // HIP backend specific options
12 // TODO: Use values that won't overlap with others
13 
14 // Mem Object info: Retrieve the raw HIP pointer from a cl_mem
15 #define __SYCL_PI_HIP_RAW_POINTER (0xFF01)
16 // Context creation: Use a primary HIP context instead of a custom one by
17 // providing a property value of PI_TRUE for the following
18 // property ID.
19 #define __SYCL_PI_CONTEXT_PROPERTIES_HIP_PRIMARY (0xFF02)
20 
21 // PI Command Queue using Default stream
22 #define __SYCL_PI_HIP_USE_DEFAULT_STREAM (0xFF03)
23 // PI Command queue will sync with default stream
24 #define __SYCL_PI_HIP_SYNC_WITH_DEFAULT (0xFF04)