-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
inv(Matrix{Float64}) makes julia exit without any error #6504
Comments
I happen to be on the exact same commit, but on OS X, and I cannot reproduce (using either |
Commit 742593f* (6 days old master) Works just fine for inv(rand(3,3)) as well. Maybe you can run the tests and see if there are some other things that fail? |
It says in big friendly letters: SUCCESS. |
I tested it a little more. It seems like it happens with all odd dimensions. |
I cannot reproduce this, at the same commit on Windows:
|
I downloaded the new nightly, same story!
|
Long shot, but could you try |
That actually works! 2014-04-12 10:47 GMT+02:00 Andreas Noack Jensen notifications@github.com:
|
It is not the first time that OpenBLAS has had multithreading bugs on Windows. Could you file an issue at their GitHub site? |
Haswell OpenBlas threading problem then? Probably good idea to try OpenBlas 0.2.9.rc2 before opening an issue, as it may be a bug they fixed already. Do you have a MinGW build environment set up? Oh and for future reference, you got most of the test-running process right, but you want to do |
No, I actually don't have anything set up. It's sometimes quite painful to 2014-04-12 11:02 GMT+02:00 Tony Kelman notifications@github.com:
|
The windows build is slow the first time and breaks often, but so far not in unfixable ways. |
Hm, with the x64_86 binaries, Julia says: ERROR: OpenBLAS was not built 2014-04-12 11:17 GMT+02:00 Tony Kelman notifications@github.com:
|
Oh I see... Well here come the errors:
|
This is with OpenBlas 0.2.9.rc1 (current Julia default for Windows), or 0.2.9.rc2? I'm building a copy of 0.2.9.rc2 right now that I'll upload when it's finished, but I don't have a Haswell machine to test on. |
I haven't changed anything in the install folder so everything should be default:
|
Give this a try: http://sourceforge.net/projects/juliadeps-win/files/openblas-v0.2.9.rc2-x86_64-w64-mingw32.7z 0.2.9.rc2 is passing relevant Blas/Lapack tests on my Sandy Bridge machine. |
Nope, nothing changed :(
|
Okay, now worth reporting to OpenBlas' tracker then. Looks like we have one test case each from linalg1, linalg2, and linalg3, and maybe a fourth if @andreasnoackjensen do we have some of Julia's Blas/Lapack test cases translated into C or Fortran to make it easier for the OpenBlas devs to reproduce? They may not have a Windows Haswell machine to test on though. |
Yes, inv(rand(3,3)) still doesn't work! |
Hm, just a quick test to be sure you're using the new version of libopenblas.dll - when you start Julia from the command line, then |
Yes, that's what I'm doing, and the message is gone ;) 2014-04-12 13:15 GMT+02:00 Tony Kelman notifications@github.com:
|
@SimonDanisch Could you try |
I already did this, that's why I believed, that I pinned it down to 2014-04-12 13:35 GMT+02:00 Andreas Noack Jensen notifications@github.com:
|
That methods shouldn't get called by
Julia crashes at the |
Sorry, I wasn't at my computer anymore
|
I just tried the same on a Windows machine and I get the same as you. That is weird. It shouldn't call that method and it doesn't on my Mac. Could you try
and see if that works or crashes. |
invoke(inv, (Base.LinAlg.LU http://base.linalg.lu/{Float64},), 2014-04-12 22:08 GMT+02:00 Andreas Noack Jensen notifications@github.com:
|
Does |
What if we just use nehalem kernels with single threading on windows? |
All of the problems have been on Haswell, hopefully we won't need to disable threading completely for all Windows users because of this. That does remind me though, @SimonDanisch can you try at least the 0.2.9 release version with |
First run with
|
I built another with Edit: and another http://sourceforge.net/projects/juliadeps-win/files/openblas-53bfa51ee0a47a8b-x86_64-w64-mingw32.7z/download based on OpenMathLib/OpenBLAS#386 that should respond to |
Hi everyone, I've just rebuilt julia with a fresh clone, downloaded today, using Cygwin64 on windows 8 using cygwin's gcc.
Result of a run of tests: https://gist.github.com/spalato/aeeb6e184fd0eab9738f It seems to be the same issue as previously reported. |
What do you mean openblas release from Apr 22? There was no openblas release on Apr 22. Can you try a few of the alternate openblas binaries I've posted links to above? Just replace your |
Hi, I meant the development version of openblas you linked on Apr 24 (not 22). I've set Results from
I'm currently testing 53b with Hope this helps. |
Test result from 53b with It seems the issue is solved for me. Thanks a lot. |
Sounds like we should carry those patches locally then, but also write a Fortran (or C, I suppose) test case to let OpenBLAS know their Haswell kernels still have problems. Also very strange that |
Bump. OpenBLAS on Haswell Win64 is still evidently broken. @andreasnoackjensen would you be able to translate some of these failing tests into Fortran test cases? |
My |
@spalato, @SimonDanisch could you guys test again with http://sourceforge.net/projects/juliadeps-win/files/openblas-23203d52c1e74199-x86_64-w64-mingw32.7z/download ? Thanks! |
Fails as other cases when no environment variables are set. Succeeds after |
I guess we could try. Do you want me to move to OpenMathLib/OpenBLAS#380 (comment) ? |
This is cherry-picked from OpenMathLib/OpenBLAS#386 and provides at least a workaround for Haswell and AMD problems seen in JuliaLang#6504, #7031
Is this fixed? |
Partially, but not completely. This is from e5b832d on an i7-4702MQ using OpenBlas from xianyi/develop |
The upstream openblas branch (wernsaar/develop) looks fixed on Haswell, we can close this as soon as there's a tag (0.2.10.rc1?) to pull in those fixes from. |
On 28.06.2014 21:29, Tony Kelman wrote:
Best regards Werner |
remove patches that have been merged upstream fixes JuliaLang#6504, and probably #7031
remove patches that have been merged upstream fixes JuliaLang#6504, and probably #7031
remove patches that have been merged upstream fixes JuliaLang#6504, and probably #7031
Can folks here try master and see if this issue is fixed? |
Sorry for the long wait!
|
Thanks @SimonDanisch! That one will be fixed by either #7446 or #7349. |
Cool! =) |
Using the Color package made Julia exit without any message whatsoever.
I pinned the error down to Color.jl line 616
Same behaviour in the Julia readline.
After playing around with it a little, it seems it doesn't like a 3x3 matrix:
inv(rand(3,3))
makes Julia also fail without any feedback.The error seems to be somewhere in
inv{T}(F::Factorization{T}) at linalg/factorization.jl:795
versioninfo(true) :
Julia Version 0.3.0-prerelease+2591
Commit 550866d (2014-04-10 22:42 UTC)
Platform Info:
System: Windows (x86_64-w64-mingw32)
CPU: Intel(R) Core(TM) i5-4200U CPU @ 1.60GHz
WORD_SIZE: 64
Microsoft Windows [Version 6.3.9600]
uname: MINGW32_NT-6.2 1.0.12(0.46/3/2) 2011-07-20 17:52 i686 unknown
Memory: 7.914325714111328 GB (3898.83984375 MB free)
Uptime: 41389.478131 sec
Load Avg: 0.0 0.0 0.0
Intel(R) Core(TM) i5-4200U CPU @ 1.60GHz:
speed user nice sys idle irq ticks
#1 2295 MHz 1488812 0 757703 38903406 26234 ticks
#2 2295 MHz 1430765 0 815171 38903406 157046 ticks
#3 2295 MHz 1644765 0 702296 38802281 5062 ticks
#4 2295 MHz 1345656 0 588609 39215078 2656 ticks
BLAS: libopenblas (USE64BITINT DYNAMIC_ARCH NO_AFFINITY)
LAPACK: libopenblas
LIBM: libopenlibm
Environment:
APR_ICONV_PATH = C:\Program Files (x86)\Subversion\iconv
HOMEDRIVE = C:
HOMEPATH = \Users\Sim
JULIA_EDITOR = start
PATHEXT = .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
VBOX_INSTALL_PATH = C:\Program Files\Oracle\VirtualBox\
Package Directory: C:\Users\Sim.julia\v0.3
6 required packages:
12 additional packages:
The text was updated successfully, but these errors were encountered: