Skip to content

Commit

Permalink
Merge pull request triSYCL#148 from airlied/fix-issue-147
Browse files Browse the repository at this point in the history
pipe_observers: add const to the pipe write accessor
  • Loading branch information
keryell authored Jun 1, 2018
2 parents 802b319 + 18572c3 commit e8d8b2f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/pipe/pipe_observers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ auto get_##METHOD = [] (auto &a_queue, cl::sycl::pipe<char> &a_pipe) { \
/* Get write access to the pipe */ \
auto p = a_pipe.get_access<cl::sycl::access::mode::write>(cgh); \
/* Get write access to write back the value returned by the observer */ \
auto v = value.get_access<cl::sycl::access::mode::write>(cgh); \
const auto v = value.get_access<cl::sycl::access::mode::write>(cgh); \
\
cgh.single_task([=] { \
*v = p.METHOD(); \
Expand Down

0 comments on commit e8d8b2f

Please sign in to comment.