zeratax / yacx

Yet Another CudaExecutor - wrapper to easily compile and execute cuda kernels
https://zeratax.github.io/yacx
MIT License
8 stars 4 forks source link

KernelTime refactor #148

Closed zeratax closed 4 years ago

zeratax commented 4 years ago

!fixes #131 !fixes #48

also adds a neat overload for KernelTime for <<: https://github.com/ZerataX/yacx/blob/447912c9de2d89d91103cbf3dd6d0402d7498e45/include/yacx/KernelTime.hpp#L21-L28

I do however have now three near identical functions and calculate the different argsizes very inefficient though idk if that matters https://github.com/ZerataX/yacx/blob/447912c9de2d89d91103cbf3dd6d0402d7498e45/include/yacx/KernelTime.hpp#L17-L19 https://github.com/ZerataX/yacx/blob/447912c9de2d89d91103cbf3dd6d0402d7498e45/src/KernelArgs.cpp#L40-L43