Live data from Hacker News

Matrix Computations on the GPU in Clojure

neanderthal.uncomplicate.org

1–10 of 18 posts

Re: Matrix Computations on the GPU in Clojure

#3
post #2

Finally! This looks awesome. But then, now i have to find an AMD graphics card. Any chance that this works on NVIDIA?

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

#4
post #3
post #2

Finally! This looks awesome. But then, now i have to find an AMD graphics card. Any chance that this works on NVIDIA?

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.

So the library does not depend on OpenCL version or does?

Re: Matrix Computations on the GPU in Clojure

#5
post #4
post #3

Earlier quoted context omitted.

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.

So the library does not depend on OpenCL version or does?

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

#6
post #4
post #3

Earlier quoted context omitted.

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.

So the library does not depend on OpenCL version or does?

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

#8

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!

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

#10
post #9

What are a few good practical examples of the kinds of problems I'd solve with this?

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.
Post reply on HN