Skip to content

Make input really const

Daniel Campora Perez requested to merge dcampora_make_input_const into master

It looks like INPUTs could be modified at will in host code (not inside device code). data would return a span<T> where T was never const. This MR fixes that, and makes all inputs const both in the host and in the device.

Thankfully almost no code was contradicting this rule, which with this MR becomes explicit also for host code.

Merge request reports