eyalroz / cuda-kat

CUDA kernel author's tools
BSD 3-Clause "New" or "Revised" License
105 stars 8 forks source link

Use spans as parameters where relevant #17

Open eyalroz opened 5 years ago

eyalroz commented 5 years ago

With a reasonable compiler and a reasonable implementation of a gsl::span-like class (see issue #6), there should be no penalty for having device functions take a kat::span<T> instead of a T* and a size_t length. So let's convert some functions to using that...

Of course we might need to make the span templated on the appropriate size type.