6 ms·
Instead of @kernel and @cuda, you might want to use defkernel and with-cuda... See the example files for cl-cuda: https://github.com/takagi/cl-cuda/blob/master
by ICWiener 12y ago
Instead of @kernel and @cuda, you might want to use defkernel and with-cuda... See the example files for cl-cuda:
https://github.com/takagi/cl-cuda/blob/master/examples/vector-add.lisp https://github.com/takagi/cl-cuda/blob/master/examples/vecto...
I though that Julia had macros, so I don't understand why what you propose is not possible (note to self: find time to learn Julia).
- maleadt 12y agoIt is definitely possible to do that in Julia. The reason a didn't yet is purely a manner of priorities, I first focused on wrapping the basic primitives (calling a kernel, marshalling arguments, etc) in a user-friendly way.