Skip to content

Commit

Permalink
forgot file
Browse files Browse the repository at this point in the history
  • Loading branch information
Naghasan committed Nov 7, 2024
1 parent dc71a36 commit 9a1421c
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions sycl/include/sycl/detail/sycl_builtins.hpp
Original file line number Diff line number Diff line change
@@ -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 <sycl/detail/defines_elementary.hpp> // 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

0 comments on commit 9a1421c

Please sign in to comment.