Is it possible to set which function arguments have 'global' or 'const' modifiers? Or how at least to inspect the code of generated function on a per function basis (to insert it manually)?
Closest thing I saw was BOOST_COMPUTE_STRINGIZE_SOURCE
where you write all kernel code by hand, save it into string, compile manually, call using set_arg(argId, wrapedItems)
and queue.enqueue_nd_range_kernel
that looks so much more complicated than:
BOOST_COMPUTE_CLOSURE(ftype, kick, (ftype beam), (__const voltage), {
return beam * sin(beam + voltage);
});
one would hope for.