-
-
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
test/numbers.jl fails on 32-bit platform #9847
Comments
These are the reason we set a few make flags on our 32-bit builds. Specifically, we set |
Why did |
Is something potentially leaking state in the numbers test wrt rounding mode maybe? I know if you run the numbers test under gdb there is a SIGFPE from GMP at some point in there. |
|
Perhaps another clue:
|
Looks like this is a side effect of
|
Got some wacky rounding and
|
Could this be a
|
Good catch. But your |
I'm puzzled too regarding I am currently using 32-bit Fedora 19. I'll be upgrading to F21 soon since F19 has gone EOL. |
This is disturbing. Is there a test that could be run from the REPL that would determine whether |
You could profile a loop of math function calls and see what the backtrace On Wed, Jan 21, 2015, 20:00 rickhg12hs notifications@github.com wrote:
|
Looks like
|
Can you do a |
Here's the
For some reason |
Maybe the effect of inlining? |
Since Julia loads I am right now trying to track down why an |
I also just remember that Julia's profiler strips certain "unimportant" functions from the backtrace. Maybe |
(Apologies for the piecemeal information.) |
So it sounds like we might need to force LLVM to use openlibm if possible? On Thu, Jan 22, 2015 at 4:52 PM, Erik Schnetter notifications@github.com
|
See #9890. There I propose to make that decision ourselves in Julia, and then either generate an intrinsic (if LLVM can translate that into an instruction), or into an openlibm libcall. |
If I was to hazard a guess on what is happening: there are two floating point status registers, the old x87 one, and the the SSE one (mxcsr). The system libm If someone wants to check it out, I have some code here for playing around with the SSE status register manually in julia: |
@simonbyrne I tried running that in Julia and it gave me:
Is this because I'm using too old of a version of LLVM? (3.3) |
Using @simonbyrne 's
|
@staticfloat No, it's due to the problem with declaring LLVM intrinsics. Running the function a second time seems to make it work correctly. @rickhg12hs Thanks, that's good to know. |
@simonbyrne On my 32-bit machine, I get the same results as @rickhg12hs, and I can affirm that |
Interestingly ...
The text was updated successfully, but these errors were encountered: