-
-
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
Diagonal test failure on release-0.3 with icc 14.0.1/linux64 build #10188
Comments
This was recently reported by someone else either here or on julia-users, I'm pretty sure it's a complex calling convention difference |
I couldn't find an existing open issue about this failure. I assume you mean this julia-users thread. |
Would your diagnosis have any relevance to the complex tests passing? |
Thank you, that's the one. Are you sure ifort was used to build arpack? |
Yes, The failure was in computing |
Oh right, the arpack test was segfaulting in that julia-users post at the same time as the linalg4 failure. Whoops. Can you step through the logdet implementations for |
Turns out that both julia> A = Complex64[ -0.821514+0.480765im
1.43384+0.671372im
0.992773+1.16314im
-0.0836201+0.664579im
-0.780475-0.2211im
-0.757667-1.01613im
1.18468-0.0310553im
0.621789+0.079201im
-1.23714+0.0164326im
0.766273-0.893556im
0.685642+0.149939im
-2.01473+1.24516im];
julia> D = Diagonal(A); M = full(D); logdet(M) #Note that logdet(::Matrix) is NOT Complex64
1.048797845840454 - 0.5797933657937726im
julia> log(prod(D)) #What the answer should be
1.048798f0 - 0.57979345f0im The determinant is computed correctly in both formats, i.e, It turns out that the problem is that julia> mod2pi(5.703389f0+π)
1.5707964f0
julia> (5.703389f0+π) % 2π
2.5617968400372106
julia> float32(π/2)
1.5707964f0
julia> mod2pi(5.703389+pi) #Similar problem for Float64
1.5707963267948974
julia> 17 % 2π #Some arbitrary number
4.4336293856408275
julia> mod2pi(17.0)
3.141592653589793 |
Ref: #10188 1. Adds pi*im in a type stable fashion when there are an odd number of pivots 2. Uses mod2pi instead of mod(_, 2pi)
Ref: #10188 1. Adds pi*im in a type stable fashion when there are an odd number of pivots 2. Uses mod2pi instead of mod(_, 2pi)
I am still seeing this issue in the release-0.3 pulled today, I thought #10200, fixed this. I am using icc version 15.0.2 is the only difference |
No, only half the problem is fixed. The other half is a duplicate of another issue which hasn't been fixed yet. |
Thanks, working for me now as well |
Compiling with the instructions in #10181 results in two test failures. One is JuliaMath/openspecfun#30. The other is:
The text was updated successfully, but these errors were encountered: