Skip to content

Commit

Permalink
Fix accessor_legacy compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexeySachkov committed Nov 6, 2023
1 parent 3fa3f8c commit ed9d1d2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/accessor_legacy/accessor_api_utility.h
Original file line number Diff line number Diff line change
Expand Up @@ -677,7 +677,7 @@ template <typename T1, int N>
bool check_elems_equal(const sycl::vec<T1, N>& actual,
const sycl::vec<T1, N>& expected) {
for (int i = 0; i < N; i++) {
if (!check_elems_equal(getElement(actual, i), getElement(expected, i))) {
if (!check_elems_equal(actual[i], expected[i])) {
return false;
}
}
Expand All @@ -691,7 +691,7 @@ bool check_elems_equal(const sycl::vec<T1, N>& actual,
template <typename T1, int N>
bool check_elems_equal(const sycl::vec<T1, N>& actual, const T1& expected) {
for (int i = 0; i < N; i++) {
if (!check_elems_equal(getElement(actual, i), expected)) {
if (!check_elems_equal(actual[i], expected)) {
return false;
}
}
Expand Down

0 comments on commit ed9d1d2

Please sign in to comment.