Best approach for GPGPU/CUDA/OpenCL in Java?

后端 未结 8 1315
深忆病人
深忆病人 2020-11-30 18:13

General-purpose computing on graphics processing units (GPGPU) is a very attractive concept to harness the power of the GPU for any kind of computing.

I\'d love to

8条回答
  •  天涯浪人
    2020-11-30 18:31

    I know it's late but take a look at this: https://github.com/pcpratts/rootbeer1

    I have not worked with it but seems much easier to use than other solutions.

    From the project page:

    Rootbeer is more advanced than CUDA or OpenCL Java Language Bindings. With bindings the developer must serialize complex graphs of objects into arrays of primitive types. With Rootbeer this is done automatically. Also with language bindings, the developer must write the GPU kernel in CUDA or OpenCL. With Rootbeer a static analysis of the Java Bytecode is done (using Soot) and CUDA code is automatically generated.

提交回复
热议问题