Skip to content

[SYCL] Fix fail in the post commit testing #2210

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jul 29, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion sycl/plugins/level_zero/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ if (NOT DEFINED L0_LIBRARY OR NOT DEFINED L0_INCLUDE_DIR)
endif()
ExternalProject_Add(l0-loader
GIT_REPOSITORY https://github.com/oneapi-src/level-zero.git
GIT_TAG origin/master
GIT_TAG v0.91.21
UPDATE_DISCONNECTED ${SYCL_EP_L0_LOADER_SKIP_AUTO_UPDATE}
SOURCE_DIR ${L0_LOADER_SOURCE_DIR}
BINARY_DIR "${CMAKE_CURRENT_BINARY_DIR}/l0_loader_build"
Expand Down
8 changes: 4 additions & 4 deletions sycl/test/basic_tests/handler/handler_set_args.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,31 +22,31 @@ using AccessorT = cl::sycl::accessor<int, 1, cl::sycl::access::mode::read_write,
struct SingleTaskFunctor {
SingleTaskFunctor(AccessorT acc) : MAcc(acc) {}

void operator()() { MAcc[0] = 10; }
void operator()() const { MAcc[0] = 10; }

AccessorT MAcc;
};

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

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

AccessorT MAcc;
};

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

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

AccessorT MAcc;
};

struct ParallelForNdRangeFunctor {
ParallelForNdRangeFunctor(AccessorT acc) : MAcc(acc) {}

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

AccessorT MAcc;
};
Expand Down