The variants of the index() function current return dimensions_t rather than unsigned. This might fit a "position" function (perhaps the subject of another issue I'll open, but certainly not an index, singluar.
The templated index_in_grid() function for thread doesn't current compute the index correctly; plus, it shouls use other, already-defined functions which themselves call detail::row_major_linearization() rather than calling that directly.
In
grid_info.cuh
:index()
function current returndimensions_t
rather thanunsigned
. This might fit a "position" function (perhaps the subject of another issue I'll open, but certainly not an index, singluar.index_in_grid()
function for thread doesn't current compute the index correctly; plus, it shouls use other, already-defined functions which themselves calldetail::row_major_linearization()
rather than calling that directly.warp::index()
to itself.