GPU programming on Clojure?

后端 未结 4 1525
夕颜
夕颜 2021-02-14 19:26

I\'m wondering what if any GPU integration libraries exist for Clojure?

I\'ve seen examples of this that involve hand-rolling OpenCL code, but I\'m specifically I\'m loo

4条回答
  •  谎友^
    谎友^ (楼主)
    2021-02-14 19:56

    clojureCL was released a few months after this question was posted. It looks like it offers a more idiomatic interpretation of the standard interface, but it is not a tool that would transform Clojure math / vector operations into OpenCL operations (I think that that is what the OP is looking for?)

    [ClojureCL] brings a lot of power, but do not expect it to be an easy ride if you’ve never programmed anything on the GPU or embedded devices. With ClojureCL, it is not [as] difficult as in C (OpenCL Hello World in C is a hundred lines of source code, in ClojureCL it’s only a few), ...

    The good news is that you can use any OpenCL book to learn ClojureCL, and we even provide ClojureCL code for the examples used in the OpenCL in Action book.

提交回复
热议问题