Skip to content

Commit

Permalink
Make an innermost kernel lambda mutable
Browse files Browse the repository at this point in the history
G++-8 was choking on this.
  • Loading branch information
keryell committed Jun 1, 2018
1 parent 15107aa commit 4ed3fb3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions tests/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
# See doc/macros.rst for a description of triSYCL-specific macros.

# Set default compiler instead of default CXX=g++ value
# Assume Clang 3.9 and libc++ or Clang 4.0 with libstdc++ at least
CXX = clang++-5.0
# Assume some recent compiler
CXX = clang++-6.0
# To use libc++ instead of libstdc++, from libc++-dev & libc++abi-dev packages
#CXXFLAGS += -stdlib=libc++

# But everything works fine with GCC 5.4 at least
# But everything works fine with GCC 7 at least
#CXX = g++

# The device compiler to use.
Expand Down
2 changes: 1 addition & 1 deletion tests/pipe/pipe_observers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ auto get_##METHOD = [] (auto &a_queue, cl::sycl::pipe<char> &a_pipe) { \
/* Get write access to write back the value returned by the observer */ \
const auto v = value.get_access<cl::sycl::access::mode::write>(cgh); \
\
cgh.single_task([=] { \
cgh.single_task([=] () mutable { \
*v = p.METHOD(); \
}); \
}); \
Expand Down

0 comments on commit 4ed3fb3

Please sign in to comment.