| 161 | |
| 162 | template<class AccessorT> |
| 163 | struct KernelFunctor { |
| 164 | |
| 165 | KernelFunctor(AccessorT acc) : acc(acc) {}; |
| 166 | |
| 167 | void operator() (sycl::item<1> item) const { |
| 168 | acc[0] = 300 + item.get_linear_id(); |
| 169 | } |
| 170 | |
| 171 | AccessorT acc; |
| 172 | }; |
| 173 | |
| 174 | // It's allowed to omit the name if the functor is globally visible |
| 175 | BOOST_AUTO_TEST_CASE(omit_kernel_name) { |
no outgoing calls