diff --git a/sycl/include/sycl/access/access.hpp b/sycl/include/sycl/access/access.hpp index 9e2dc9255deb9..ad95479e9d885 100644 --- a/sycl/include/sycl/access/access.hpp +++ b/sycl/include/sycl/access/access.hpp @@ -15,16 +15,6 @@ #include #endif -#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 namespace sycl { inline namespace _V1 { namespace access { diff --git a/sycl/include/sycl/ext/oneapi/group_local_memory.hpp b/sycl/include/sycl/ext/oneapi/group_local_memory.hpp index 959d7babd8456..8d862a7c67db4 100644 --- a/sycl/include/sycl/ext/oneapi/group_local_memory.hpp +++ b/sycl/include/sycl/ext/oneapi/group_local_memory.hpp @@ -9,6 +9,7 @@ #include // for address_space, decorated #include // for __SYCL_ALWAYS_INLINE +#include // for __sycl_allocateLocalMemory #include // for is_group #include // for exception #include // for multi_ptr diff --git a/sycl/include/sycl/ext/oneapi/work_group_scratch_memory.hpp b/sycl/include/sycl/ext/oneapi/work_group_scratch_memory.hpp index a7e5d3f40ab34..872ad3b9bc605 100644 --- a/sycl/include/sycl/ext/oneapi/work_group_scratch_memory.hpp +++ b/sycl/include/sycl/ext/oneapi/work_group_scratch_memory.hpp @@ -7,8 +7,9 @@ //===----------------------------------------------------------------------===// #pragma once -#include // for __SYCL_ALWAYS_INLINE -#include // for exception +#include // for __SYCL_ALWAYS_INLINE +#include // for __sycl_allocateLocalMemory +#include // for exception #include // for properties namespace sycl {