viennacl / viennacl-dev

Developer repository for ViennaCL. Visit http://viennacl.sourceforge.net/ for the latest releases.
Other
281 stars 89 forks source link

Custom CUDA kernels? #254

Closed cdeterman closed 6 years ago

cdeterman commented 6 years ago

I am familiar with the means to implement custom OpenCL kernels from the documentation. What about custom CUDA kernels? I know it's not quite as simple but perhaps there is either plans or thoughts on how to accomplish this?

karlrupp commented 6 years ago

Here is an example of how to use custom CUDA kernels: https://github.com/viennacl/viennacl-dev/blob/master/examples/tutorial/custom-cuda.cu

cdeterman commented 6 years ago

Thanks, as I am thinking about these kernels am I correct that the padding in OpenCL is also applicable to the CUDA memory backend?

karlrupp commented 6 years ago

yes, padding is needed for the CUDA backend as well.