-
-
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
Matrix multiplications: stack overflow & crash! #3256
Comments
@xianyi is helping figure out this one. I will track it down and upload new binaries. |
Are you using Try ENV["OPENBLAS_NUM_THREADS"]=1 in your existing setup - that was essentially the fix. |
Yes, that's the version I am using. I just tried ENV["OPENBLAS_NUM_THREADS"]=1 - but that doesn't help :-/ |
Hi @ViralBShah ? Did you use 64-bit integer? I noticed that OpenBLAS is built with INTERFACE64=1. Xianyi |
Yes, we have been doing this for a while now, and even have runtime checks to make sure that all these things match correctly. I will take one more look, just to be sure. |
@xianyi Can you download julia 0.2-pre binaries and try them out? The launcher script forces OPENBLAS_NUM_THREADS=1, but if you delete it, perhaps you can reproduce the crash? It may be a bug on the julia side too - but I am just not sure how to figure this one out. |
@JeffBezanson Did anything change recently in ccall, especially type promotion stuff? |
I don't believe so. And I've never seen this problem on linux. |
Any progress on this one? :-) |
I will check if Apple BLAS is multi-threaded and try use that while this is sorted out. |
@anoe Can you provide the details of your CPU? |
My machine is a 21.5" iMac (mid 2011); Processor 2.5 GHz Intel Core i5 |
Interesting... It works fine on my MacBook Air (mid 2011); Processor 1.8 GHz Intel Core i7 |
I use a core i5 mobile without issues. |
@xianyi I am using gfortran 4.8.1 from brew. Do you think that could be causing these problems that we are observing with openblas on mac? The openblas tests run fine for me. |
Hi @ViralBShah , @anoe , I will try julia master branch on my MacBook Air. I am afraid I cannot reproduce this issue. @anoe , could you run this test on your MacBook?
Xianyi |
@xianyi, you want me to run that test on my MacBook - which does not have this matrix mul. problem? Let me know :-) |
Could you try on both? |
This is fixed now. |
In the latest OS X binary, 0.2-pre, simple matrix multiplications cause stack overflows and crashes - when the matrices get just a little large:
julia> rand(100,100)*rand(100,100)
ERROR: stack overflow
in gemm! at linalg/blas.jl:347
in gemm_wrapper at linalg/matmul.jl:299
in gemm_wrapper at linalg/matmul.jl:280
in * at linalg/matmul.jl:94
julia> rand(100,100)*rand(100,100)
Illegal instruction: 4
NOTE: this was reproduced multiple times on a freshly restarted iMac with 16GB RAM, running OS X 10.7.5
The text was updated successfully, but these errors were encountered: