News for hackers. Stuff that matters.
Re:Matrix Computations on the GPU in Clojure by savodj on Friday August 07, 2015 @10:58AM (#10022811)
Finally! This looks awesome. But then, now i have to find an AMD graphics card. Any chance that this works on NVIDIA?
Re:Matrix Computations on the GPU in Clojure by dragandj on Friday August 07, 2015 @11:02AM (#10022828)
In principle, it works on Nvidia, but Nvidia still does not support 1.2... But, new pluggable engine for OpenCL 1.2 is in plan, and it will have optimizations for Nvidia, so, it is not something that is out of reach.
Re:Matrix Computations on the GPU in Clojure by e12e on Friday August 07, 2015 @08:10PM (#10025767)
How about Intel/AMD on-die GPUs? (And any thoughts on if that's likely to help -- now, or with future generations -- as opposed to just sticking to the CPU side?)
Re:Matrix Computations on the GPU in Clojure by silja1 on Friday August 07, 2015 @11:08AM (#10022852)
So the library does not depend on OpenCL version or does?
Re:Matrix Computations on the GPU in Clojure by dragandj on Friday August 07, 2015 @01:06PM (#10023571)
The library does NOT depend on the version, since it supports pluggable engines. Currently the only available engine is focused on AMD GCN GPUs and uses OpenCL 2.0 features in its kernels. Other engines are possible and planned, notably one that would work with older versions of OpenCL and support tuning for Nvidia.
Re:Matrix Computations on the GPU in Clojure by dkersten on Friday August 07, 2015 @12:50PM (#10023481)
Going by the last paragraph in the article, the library currently supports "OpenCL 2.0" only, but "OpenCL 1.2" support is planned.
Re:Matrix Computations on the GPU in Clojure by hellofunk on Friday August 07, 2015 @02:14PM (#10024007)
This is really exciting, thanks for sharing. OpenCL is probably the future of everything. AMD is going to be an important part of it for sure. Fantastic to see this explained in the Clojure context; it feels right at home!
Re:Matrix Computations on the GPU in Clojure by dragandj on Friday August 07, 2015 @02:27PM (#10024088)
If you are interested in programming your own GPU algorithms in clojure and opencl, also look at http://clojurecl.uncomplicate.org
Re:Matrix Computations on the GPU in Clojure by Mikera on Wednesday August 12, 2015 @09:45AM (#10047630)
This is great stuff, but it should really be designed as a core.matrix implementation rather than providing it's own API.

The last thing the Clojure community needs is fragmentation with more incompatible libraries.

Re:Matrix Computations on the GPU in Clojure by rfeague on Friday August 07, 2015 @04:12PM (#10024707)
What are a few good practical examples of the kinds of problems I'd solve with this?
Re:Matrix Computations on the GPU in Clojure by tomjen3 on Friday August 07, 2015 @04:43PM (#10024898)
I wrote my master thesis on General purpose GPU programming. The only two reasons you want to code for the GPU is that it can be much faster for some workloads (basically identical computation which can be trivially parralized) and (in some cases) because it can use much less power.

In the particular case of matrix multiplications, lots of problems can be described as matrices (say googles website ranking) and doing calculations on huge matrices is a thing the GPU is great at. That said it is unlikely to be something most people want.

Re:Matrix Computations on the GPU in Clojure by dragandj on Friday August 07, 2015 @04:17PM (#10024743)
Whenever you need to implement an algorithm that is described using matrices it is much easier and faster to implement it by calling linear algebra functions instead of coding loops yourself. Neanderthal comes into picture when you have lots of numbers and still need it to be fast (nano, micro, milli)seconds instead of minutes and hours (or perhaps days). So, actually any kind of numerical software written in Clojure (and Java) can hugely benefit from this.
Re:Matrix Computations on the GPU in Clojure by dzhiurgis on Friday August 07, 2015 @11:05PM (#10026168)
So what is the most practical language currently for GPU processing?
Re:Matrix Computations on the GPU in Clojure by 14113 on Saturday August 08, 2015 @10:49AM (#10027359)
It entirely depends on how you want to program your GPU. If you want fine grained control, you should really use raw OpenCL/CUDA. If however you need something higher level, it may be better to choose one of a number of DSLs that are available. E.g. Haskell's accellerate (for array programming), a DSL from the Delite/Forge project.

For general purpose high level programming however, there isn't really anything acceptable. Skeletal/pattern based programming is covered fairly well with frameworks such as SkelCL or SkePU, however (from what I've seen) there doesn't seem to be a nice functional, or even procedural general purpose language for GPU programming.

Re:Matrix Computations on the GPU in Clojure by sabalaba on Saturday August 08, 2015 @03:21AM (#10026607)
Python with Theano is surprisingly expressive and performant.
Re:Matrix Computations on the GPU in Clojure by hendzen on Saturday August 08, 2015 @12:47AM (#10026367)
C++.
Re:Matrix Computations on the GPU in Clojure by dragandj on Saturday August 08, 2015 @03:13AM (#10026596)
Or, hopefully, Clojure ;)