eyalroz / cuda-kat

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

Use functions instead of macros in on_device/printing.cuh #20

Closed eyalroz closed 4 years ago

eyalroz commented 5 years ago

on_device/printing.cuh currently uses macros, mostly in order to easily "plug" the format string into a longer string.

This can actually be achieved, using a little voodoo, without in a plain function, and without any heap allocation. Let's try and do that.

eyalroz commented 4 years ago

printing.cuh is now phased out.