Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion sycl/include/CL/sycl/nd_item.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,8 @@ namespace oneapi {
namespace experimental {
template <int Dims> nd_item<Dims> this_nd_item() {
#ifdef __SYCL_DEVICE_ONLY__
return sycl::detail::Builder::getElement(detail::declptr<nd_item<Dims>>());
return sycl::detail::Builder::getElement(
sycl::detail::declptr<nd_item<Dims>>());
#else
throw sycl::exception(
sycl::make_error_code(sycl::errc::feature_not_supported),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ template <template <int, bool = true> class Item, int Dims> void test() {
"Wrong return type of free function query for Item");
}

int main() {
SYCL_EXTERNAL void test_all() {
test<sycl::id>(this_id_caller<1>{});
test<sycl::id>(this_id_caller<2>{});
test<sycl::id>(this_id_caller<3>{});
Expand Down