eyalroz / cuda-kat

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

Drop __fd__ , __fhd__ etc. in favor of something more palletable #21

Closed eyalroz closed 4 years ago

eyalroz commented 5 years ago

My shorthands for __forceinline__, __device__ and __host__ are quite convenient, but perhaps it's better I don't force them on people - even at the price of making my code more verbose.

I'd appreciate input from whoever visits this page.

eyalroz commented 4 years ago

I'll switch to the approach used in many other libraries:

So, we'll have KAT_HD, KAT_FHD, KAT_DEV, KAT_HOST, KAT_FD and so on. It's not super-readable, but at least people will know it's a library-specific decoration.