Skip to content

Commit

Permalink
Move builtins definitions to their own file
Browse files Browse the repository at this point in the history
Signed-off-by: Victor Lomuller <[email protected]>
  • Loading branch information
Naghasan committed Nov 7, 2024
1 parent 5237f69 commit 5bc8157
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 12 deletions.
10 changes: 0 additions & 10 deletions sycl/include/sycl/access/access.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,6 @@
#include <type_traits>
#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 {
Expand Down
1 change: 1 addition & 0 deletions sycl/include/sycl/ext/oneapi/group_local_memory.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

#include <sycl/access/access.hpp> // for address_space, decorated
#include <sycl/detail/defines_elementary.hpp> // for __SYCL_ALWAYS_INLINE
#include <sycl/detail/sycl_builtins.hpp> // for __sycl_allocateLocalMemory
#include <sycl/detail/type_traits.hpp> // for is_group
#include <sycl/exception.hpp> // for exception
#include <sycl/ext/intel/usm_pointers.hpp> // for multi_ptr
Expand Down
5 changes: 3 additions & 2 deletions sycl/include/sycl/ext/oneapi/work_group_scratch_memory.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@
//===----------------------------------------------------------------------===//
#pragma once

#include <sycl/detail/defines_elementary.hpp> // for __SYCL_ALWAYS_INLINE
#include <sycl/exception.hpp> // for exception
#include <sycl/detail/defines_elementary.hpp> // for __SYCL_ALWAYS_INLINE
#include <sycl/detail/sycl_builtins.hpp> // for __sycl_allocateLocalMemory
#include <sycl/exception.hpp> // for exception
#include <sycl/ext/oneapi/properties/properties.hpp> // for properties

namespace sycl {
Expand Down

0 comments on commit 5bc8157

Please sign in to comment.