eyalroz / cuda-kat

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

Introduce a lane_id_t/lane_t type #44

Open eyalroz opened 4 years ago

eyalroz commented 4 years ago

We have many functions returning lane ids or numbers-of-lanes. Mostly those use unsigned. But for better readability/clarity, I'm thinking of introducing something like:

using lane_id_t = unsigned;

within the kat namespace.

Users - if I have any that look at this issue, which is unlikely - are welcome to comment on this prospect.

eyalroz commented 4 years ago

One dilemma I have is that a lane_id_t doesn't quite sound like something you would put numbers of lanes in.