eyalroz / cuda-kat

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

Wrap all builtins with functions in math.cuh #61

Open eyalroz opened 4 years ago

eyalroz commented 4 years ago

In on_device/builtins.cuh we don't have multi-PTX-instruction implementations - although some of the functions, for some of the types, need them (e.g. maximum, minimum). It is probably a good idea, therefore, to have at least all mathematical functions available through on_device/math.cuh and delegate to builtins when possible (again, like we've done with maximum and minimum).