DPC++ Runtime
Runtime libraries for oneAPI DPC++
misc_intrin.hpp
Go to the documentation of this file.
1 //==------------ misc_intrin.hpp - SYCL Kernel Properties -----------------==//
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 // Declares miscellaneous SYCL intrinsics.
9 //===----------------------------------------------------------------------===//
10 
11 #pragma once
12 
14 
15 #ifdef __SYCL_DEVICE_ONLY__
16 #define __SYCL_INTRIN __DPCPP_SYCL_EXTERNAL
17 #else
18 #define __SYCL_INTRIN inline
19 #endif // __SYCL_DEVICE_ONLY__
20 
21 __SYCL_INTRIN void __sycl_set_kernel_properties(int prop_mask)
22 #ifdef __SYCL_DEVICE_ONLY__
23  ;
24 #else
25 {
26 } // Only "double GRF" property is supported for now, safe to ignore on host.
27 #endif // __SYCL_DEVICE_ONLY__
28