DPC++ Runtime
Runtime libraries for oneAPI DPC++
cuda_definitions.hpp
Go to the documentation of this file.
1 //==------------ cuda_definitions.hpp - SYCL CUDA 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 // CUDA backend specific options
12 // TODO: Use values that won't overlap with others
13 
14 // Mem Object info: Retrieve the raw CUDA pointer from a cl_mem
15 #define __SYCL_PI_CUDA_RAW_POINTER (0xFF01)
16 // Context creation: Use a primary CUDA 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_CUDA_PRIMARY (0xFF02)
20 
21 // PI Command Queue using Default stream
22 #define __SYCL_PI_CUDA_USE_DEFAULT_STREAM (0xFF03)
23 // PI Command queue will sync with default stream
24 #define __SYCL_PI_CUDA_SYNC_WITH_DEFAULT (0xFF04)