-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Gram matrix initialization #15
Comments
Some people wrote a multithread version of it: |
My bench results can be seen there: |
Is there much to gain by exploiting the symmetry, when compared to just doing a normal matrix multiplication? It seems like it would only reduce the work by a factor of two. |
The matrix is diagonal symmetric. Usually, I only compute one half plus the diagonal. |
Also, probably stupid question, can we read a file in Futhark, and write to one? |
No, Futhark is pure. For testing and benchmarking programs, the compiler automatically inserts IO for reading input and writing results (see here), but for actual production use, Futhark code must be invoked from a conventional programming language (discussed here). |
Wow, amazing. Thanks for the pointers. |
Dear futharckers,
I wrote this recently:
https://github.com/ocaml-bench/sandmark/blob/master/benchmarks/multicore-grammatrix/grammatrix.ml
The Gram matrix is quite useful in several machine learning settings.
I think it might be a nice, real-world, addition to the futhark benchmarks.
Futharkly yours,
F.
The text was updated successfully, but these errors were encountered: