This is pretty good. I was wondering about CUDA and it looks like Nim has support for writing CUDA kernels. Is there a repository of kernel implementations I can take a look at?
- https://github.com/mratsim/Arraymancer/blob/master/src/tenso...
With the higher order function:
- https://github.com/mratsim/Arraymancer/blob/master/src/tenso...
And their code generation:
- https://github.com/mratsim/Arraymancer/blob/master/src/tenso...
It's possible to avoid inlining C++ like they do here:
- https://github.com/jcosborn/cudanim/blob/338be782/cuda.nim#L...
but I will explore that later.