Reputation: 1852
I wonder, whether I can write code, which ought to be evaluated by GPU, in pure Haskell.
For example, a function for multiplication of two large matrices in GPU have (theoretically) no side effects, therefore it might be possible to call it from pure Haskell function.
But I am also worried, whether something don't get broken, if I just wrap CUDA C++ procedures to Haskell via FFI as pure functions. As I understand from the documentation, I must be sure, that there are no side effects and I am not sure at all.
So my questions are:
Thanks.
Upvotes: 4
Views: 1833