From 9a1421c73572b0f5bf73e18be7aa9ff7fa036508 Mon Sep 17 00:00:00 2001 From: Victor Lomuller Date: Thu, 7 Nov 2024 22:54:46 +0000 Subject: [PATCH] forgot file --- sycl/include/sycl/detail/sycl_builtins.hpp | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 sycl/include/sycl/detail/sycl_builtins.hpp diff --git a/sycl/include/sycl/detail/sycl_builtins.hpp b/sycl/include/sycl/detail/sycl_builtins.hpp new file mode 100644 index 0000000000000..02ffed630b2b5 --- /dev/null +++ b/sycl/include/sycl/detail/sycl_builtins.hpp @@ -0,0 +1,22 @@ +//==---------------- sycl_builtins.hpp --- SYCL access ---------------------==// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +// +//===----------------------------------------------------------------------===// + +#pragma once + +#include // for __DPCPP_SYCL_EXTERNAL + +#ifdef __SYCL_DEVICE_ONLY__ +// Request a fixed-size allocation in local address space at kernel scope. +// Required for group_local_memory and work_group_static. +extern "C" __DPCPP_SYCL_EXTERNAL __attribute__((opencl_local)) std::uint8_t * +__sycl_allocateLocalMemory(std::size_t Size, std::size_t Alignment); +// Request a placeholder for a dynamically-sized buffer in local address space +// at kernel scope. Required for work_group_static. +extern "C" __DPCPP_SYCL_EXTERNAL __attribute__((opencl_local)) std::uint8_t * +__sycl_dynamicLocalMemoryPlaceholder(); +#endif