-
Notifications
You must be signed in to change notification settings - Fork 744
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
22 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |