MCPcopy Create free account
hub / github.com/AdaptiveCpp/AdaptiveCpp / KernelFunctor

Class KernelFunctor

tests/device_compilation_tests.cpp:163–172  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

161
162template<class AccessorT>
163struct 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
175BOOST_AUTO_TEST_CASE(omit_kernel_name) {

Callers 1

BOOST_AUTO_TEST_CASEFunction · 0.85

Calls

no outgoing calls

Tested by 1

BOOST_AUTO_TEST_CASEFunction · 0.68