Skip to content

Commit edafb97

Browse files
authored
Fix a build failure shown in HIP backend in multi_ptr_null_relational_operators.cpp test (#13268)
- change `sycl::id<1>` to `sycl::nd_item<1>` in a parallel_for with `sycl::nd_range`, which caused a build error in HIP backend.
1 parent 1d1df29 commit edafb97

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sycl/test-e2e/Basic/multi_ptr_null_relational_operators.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ void nullptrRelationalOperatorTest() {
3636
if constexpr (address_space ==
3737
sycl::access::address_space::local_space) {
3838
sycl::local_accessor<int, 1> locAcc(1, cgh);
39-
cgh.parallel_for(sycl::nd_range<1>{1, 1}, [=](sycl::id<1>) {
39+
cgh.parallel_for(sycl::nd_range<1>{1, 1}, [=](sycl::nd_item<1>) {
4040
locAcc[0] = 1;
4141
multi_ptr_t mp(locAcc);
4242
check(mp, dev_acc);

0 commit comments

Comments
 (0)