I'm completely new to this arbb and have been looking at the tutorials and the online docs.
I had a basic question, in tutorial0 there are these lines
bind(vec_out, out, vec_length);
call(sum_kernel)(vec_a, vec_b, vec_out);
call(sum_kernel)(vec_a, vec_b, out_only);
const arbb::const_range output = out_only.read_only_range();
for (unsigned int i = 0; i result[i] = output[i];
So my question is, in the second case we have to use a const_range and call read_only_range()
but in the first case we don't? Wahy is that? The documentation says
"// You must call a read range function before reading the values"
Is this always required ? Is it just good luck that the first case works ?