Skip to content
This repository was archived by the owner on Mar 28, 2023. It is now read-only.

Commit 972156c

Browse files
[SYCL] Fix pointer type in hier_par verification (#1546)
Signed-off-by: Larsen, Steffen <[email protected]>
1 parent 767d532 commit 972156c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

SYCL/HierPar/Inputs/hier_par_wgscope_impl.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ static bool testWgScope(queue &Q) {
157157
}
158158

159159
template <typename GoldFnTy>
160-
bool verify(int testcase, int RangeLength, int *Ptr, GoldFnTy get_gold) {
160+
bool verify(int testcase, int RangeLength, const int *Ptr, GoldFnTy get_gold) {
161161
int ErrCnt = 0;
162162

163163
for (int I = 0; I < RangeLength; I++) {

SYCL/HierPar/hier_par_basic.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
using namespace sycl;
2222

2323
template <typename GoldFnTy>
24-
bool verify(int testcase, int range_length, int *ptr, GoldFnTy get_gold) {
24+
bool verify(int testcase, int range_length, const int *ptr, GoldFnTy get_gold) {
2525
int err_cnt = 0;
2626

2727
for (int i = 0; i < range_length; i++) {

0 commit comments

Comments
 (0)