Skip to content

Commit 5bc8157

Browse files
author
Victor Lomuller
committed
Move builtins definitions to their own file
Signed-off-by: Victor Lomuller <[email protected]>
1 parent 5237f69 commit 5bc8157

File tree

3 files changed

+4
-12
lines changed

3 files changed

+4
-12
lines changed

sycl/include/sycl/access/access.hpp

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,6 @@
1515
#include <type_traits>
1616
#endif
1717

18-
#ifdef __SYCL_DEVICE_ONLY__
19-
// Request a fixed-size allocation in local address space at kernel scope.
20-
// Required for group_local_memory and work_group_static.
21-
extern "C" __DPCPP_SYCL_EXTERNAL __attribute__((opencl_local)) std::uint8_t *
22-
__sycl_allocateLocalMemory(std::size_t Size, std::size_t Alignment);
23-
// Request a placeholder for a dynamically-sized buffer in local address space
24-
// at kernel scope. Required for work_group_static.
25-
extern "C" __DPCPP_SYCL_EXTERNAL __attribute__((opencl_local)) std::uint8_t *
26-
__sycl_dynamicLocalMemoryPlaceholder();
27-
#endif
2818
namespace sycl {
2919
inline namespace _V1 {
3020
namespace access {

sycl/include/sycl/ext/oneapi/group_local_memory.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99

1010
#include <sycl/access/access.hpp> // for address_space, decorated
1111
#include <sycl/detail/defines_elementary.hpp> // for __SYCL_ALWAYS_INLINE
12+
#include <sycl/detail/sycl_builtins.hpp> // for __sycl_allocateLocalMemory
1213
#include <sycl/detail/type_traits.hpp> // for is_group
1314
#include <sycl/exception.hpp> // for exception
1415
#include <sycl/ext/intel/usm_pointers.hpp> // for multi_ptr

sycl/include/sycl/ext/oneapi/work_group_scratch_memory.hpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,9 @@
77
//===----------------------------------------------------------------------===//
88
#pragma once
99

10-
#include <sycl/detail/defines_elementary.hpp> // for __SYCL_ALWAYS_INLINE
11-
#include <sycl/exception.hpp> // for exception
10+
#include <sycl/detail/defines_elementary.hpp> // for __SYCL_ALWAYS_INLINE
11+
#include <sycl/detail/sycl_builtins.hpp> // for __sycl_allocateLocalMemory
12+
#include <sycl/exception.hpp> // for exception
1213
#include <sycl/ext/oneapi/properties/properties.hpp> // for properties
1314

1415
namespace sycl {

0 commit comments

Comments
 (0)