What high-level languages ​​can I use to speed up GPU computing?

I think I'm interested in using today's GPU capacities (CUDA, etc.) to speed up the work of my scientific applications with a crunch. But I do not want to invest time in C / C ++ coding. I prefer Scala, but I will not mind using Erlang, Haskell, F #, C #, Java, Python or another language of this level. Is it possible?

+4
source share
4 answers

ScalaCL is core to Scala. It works through a set of specialized collections that delay work on the GPU through OpenCL.

Then there is also the ScalaCL Plugin , part of ScalaCL. Which is a compiler plugin that will automatically rewrite part of your code to use OpenCL bindings for acceleration, without extra work!

+18
source

And don't forget Matlab , Mathematica, and Fortran , all of which have CUDA support. Mathematica supports OpenCL too.

+4
source

Java and Python have bindings for OpenCL.

You will need to write GPU code in CUDA or OpenCL. If you did not find a library that did basic parallelization of loops.

+3
source

Source: https://habr.com/ru/post/1332625/


All Articles