Skip to content

Commit

Permalink
Drop host definition of private_alloca
Browse files Browse the repository at this point in the history
  • Loading branch information
victor-eds committed Mar 8, 2024
1 parent a2998c5 commit ce4d3cd
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions clang/test/CodeGenSYCL/Inputs/private_alloca.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,24 +8,11 @@ namespace ext {
namespace oneapi {
namespace experimental {

#ifdef __SYCL_DEVICE_ONLY__

template <typename ElementType, auto &Size, access::decorated DecorateAddress>
__SYCL_BUILTIN_ALIAS(__builtin_intel_sycl_alloca)
multi_ptr<ElementType, access::address_space::private_space,
DecorateAddress> private_alloca(kernel_handler &h);

#else

template <typename ElementType, auto &Size, access::decorated DecorateAddress>
multi_ptr<ElementType, access::address_space::private_space, DecorateAddress>
private_alloca(kernel_handler &h) {
throw "sycl::ext::oneapi::experimental::private_alloca is not supported in "
"the host";
}

#endif

} // namespace experimental
} // namesapce oneapi
} // namespace ext
Expand Down

0 comments on commit ce4d3cd

Please sign in to comment.