Skip to content

Commit

Permalink
Add required range -> id casts in handler test
Browse files Browse the repository at this point in the history
  • Loading branch information
fknorr committed Dec 17, 2024
1 parent 5a5eebd commit 321b3d4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/handler/handler_copy_common.h
Original file line number Diff line number Diff line change
Expand Up @@ -571,8 +571,8 @@ class copy_test_context {
static bool is_within_window(sycl::id<dim> windowOffset,
sycl::range<dim> windowRange,
sycl::id<dim> idx) {
return ((idx >= windowOffset == id_helper<dim>::make(true, true, true)) &&
(idx < windowOffset + windowRange ==
return (((idx >= windowOffset) == id_helper<dim>::make(true, true, true)) &&
((idx < windowOffset + sycl::id(windowRange)) ==
id_helper<dim>::make(true, true, true)));
}

Expand Down Expand Up @@ -711,10 +711,10 @@ class copy_test_context {
assert(srcBufRange.size() == dstBufRange.size());
assert(srcCopyRange.size() > 0 && dstCopyRange.size() > 0);
assert(srcCopyRange.size() == dstCopyRange.size());
assert((srcCopyOffset + srcCopyRange <=
assert((srcCopyOffset + sycl::id(srcCopyRange) <=
id_helper<dim_src>::cast(srcBufRange)) ==
id_helper<dim_src>::make(true, true, true));
assert((dstCopyOffset + dstCopyRange <=
assert((dstCopyOffset + sycl::id(dstCopyRange) <=
id_helper<dim_dst>::cast(dstBufRange)) ==
id_helper<dim_dst>::make(true, true, true));
}
Expand Down

0 comments on commit 321b3d4

Please sign in to comment.