-
Notifications
You must be signed in to change notification settings - Fork 104
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
Failure to build hmatrix-tests-0.4.1.0 with GHC 7.10.2 and stack #144
Comments
Ok! After some more fiddling and nosing around, I found that hmatrix-tests does in fact build (the master version) on the latest GHC so that problem seems to be solved. Also, the mult tests that failed for me before are now successful. I managed to install the master version using stack (I overlooked something in the FAQ allowing me to install multiple packages locally). However! The tests still don't completely pass on my machine :( Here is the output:
|
Interesting! Can you please run the following small program: {-# LANGUAGE FlexibleContexts #-} import Numeric.LinearAlgebra a = (11><11) exactProp m = chol (trustSym m) == chol (trustSym (m+0)) main = do |
Sorry for copying directly the code. The program is also here: http://dis.um.es/profesores/alberto/material/hmatrix/bugchol.hs |
This is the output:
|
(As an aside, out of personal interest, have you ever considered to/do you think it would be very difficult to put a GPU accelerated back-end behind hmatrix? E.g. cuBLAS + MAGMA/CULAtools? I think something like that behind a pure interface could be really powerful, for example for building Theano-like tools.) |
Again this is a problem with the tolerance of the test, the computation is correct. But in this case it is interesting to see that in some machines a+0 may not be exactly equal to a. This test was introduced to catch some old problem, but now it must be fixed or removed. You can comment out lines 666 and 667 in packages/tests/src/Numeric/LinearAlgebra/Tests.hs and recompile and run the tests to see if there are any other failures. Thanks for testing! A GPU back-end would be very useful but I have not yet tried it (some time ago only float elements were supported, if I am not mistaken) but now things are different with the explosion of deep learning. It should be easy to link with a GPU based blas/lapack library if the API is the same (although I don't know if memory transfers could be an issue). I will look into this. I have just seen that there are some linear algebra libraries using cublas and magma: |
That package looks interesting, I hadn't seen it before. I commented out the faulty tests and everything works now. Cheers |
I updated my haskell-platform to try to build your current master (my
base
version was insufficient earlier), I have not yet managed to build the version in this repository but I now also get an error if Istack install hmatrix-tests
after successfully installing hmatrix and hmatrix-gsl:The reason I haven't managed to install the master version yet is related to stack (I installed the hackage version first, then if I install the master version of hmatrix stack installs it locally in the project directory, which means I can't seem to make it available when I try to install gsl and tests, because the old version is still installed globally).
The text was updated successfully, but these errors were encountered: