Skip to content

Commit fe7885c

Browse files
authored
[SYCL] Fix fail in the post commit testing (#2210)
* Fix handler_set_args lit test * Checkout fixed version of the Level Zero loader instead of checking out master. Otherwise major changes in the headers can cause build failures. Signed-off-by: Artur Gainullin <[email protected]>
1 parent c6c2ecd commit fe7885c

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

sycl/plugins/level_zero/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ if (NOT DEFINED L0_LIBRARY OR NOT DEFINED L0_INCLUDE_DIR)
2323
endif()
2424
ExternalProject_Add(l0-loader
2525
GIT_REPOSITORY https://github.com/oneapi-src/level-zero.git
26-
GIT_TAG origin/master
26+
GIT_TAG v0.91.21
2727
UPDATE_DISCONNECTED ${SYCL_EP_L0_LOADER_SKIP_AUTO_UPDATE}
2828
SOURCE_DIR ${L0_LOADER_SOURCE_DIR}
2929
BINARY_DIR "${CMAKE_CURRENT_BINARY_DIR}/l0_loader_build"

sycl/test/basic_tests/handler/handler_set_args.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,31 +22,31 @@ using AccessorT = cl::sycl::accessor<int, 1, cl::sycl::access::mode::read_write,
2222
struct SingleTaskFunctor {
2323
SingleTaskFunctor(AccessorT acc) : MAcc(acc) {}
2424

25-
void operator()() { MAcc[0] = 10; }
25+
void operator()() const { MAcc[0] = 10; }
2626

2727
AccessorT MAcc;
2828
};
2929

3030
template <bool useOffset> struct ParallelForRangeIdFunctor {
3131
ParallelForRangeIdFunctor(AccessorT acc) : MAcc(acc) {}
3232

33-
void operator()(cl::sycl::id<1> id) { MAcc[0] = 10; }
33+
void operator()(cl::sycl::id<1> id) const { MAcc[0] = 10; }
3434

3535
AccessorT MAcc;
3636
};
3737

3838
template <bool useOffset> struct ParallelForRangeItemFunctor {
3939
ParallelForRangeItemFunctor(AccessorT acc) : MAcc(acc) {}
4040

41-
void operator()(cl::sycl::item<1> item) { MAcc[0] = 10; }
41+
void operator()(cl::sycl::item<1> item) const { MAcc[0] = 10; }
4242

4343
AccessorT MAcc;
4444
};
4545

4646
struct ParallelForNdRangeFunctor {
4747
ParallelForNdRangeFunctor(AccessorT acc) : MAcc(acc) {}
4848

49-
void operator()(cl::sycl::nd_item<1> ndItem) { MAcc[0] = 10; }
49+
void operator()(cl::sycl::nd_item<1> ndItem) const { MAcc[0] = 10; }
5050

5151
AccessorT MAcc;
5252
};

0 commit comments

Comments
 (0)