-
-
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
fix fdlibm to use unions instead of unsafe pointer casts #46
Comments
OK, good, I can reproduce this on a 32-bit csail machine. |
Caused by building fdlibm with -O2 instead of -O1. It's officially time to fix the invalid pointer casts in fdlibm. |
Or use crlibm. |
Yeah, maybe this is a good opportunity to try crlibm and/or the assembly language versions. |
Does anybody else use crlibm? Is it maintained? |
I have no idea if it's used, I'm afraid. I'm kind of shocked by the state of libm implementations in general — there just doesn't seem to be any single really good one. Although that pretty much reflects the general state of numerical computing as a whole, to be honest. We might need to pull together pieces of various implementations to stitch together something that's really as good as possible. Seems like a lot of annoying ancillary work. |
Would be a good advertisement for julia if everyone came to our website for openlibm. :-) -viral On Jun 15, 2011, at 10:46 AM, StefanKarpinski wrote:
|
Yeah, that's really not a bad idea, actually. |
Can we divvy up the files and fix this? There are 80 files to fix, about 26 each, and some of the files might not need changes, so it's not that bad. |
There are actually only 49 files that use the Jeff:
Stefan:
Viral:
Yes, I used Julia to do the dividing :-) |
Should we all send you patches so it goes in as a single commit? |
Can't the whole thing be done with sed or awk? On 16-Jun-2011, at 3:44 AM, [email protected] wrote:
|
Not in cases like |
You can give me some of your functions if you want; I'm done with mine (I have no life outside julia). |
I won't be able to touch code for the next 2-3 days - unfortunately. So, feel free to go down my list. Also, when I have time, I would like to focus on parallel HPL. Sorry about this one. -viral On Jun 16, 2011, at 7:35 AM, JeffBezanson wrote:
|
Re single vs. multiple patches. I don't think it matters. You can send me patches using gist. On the other hand, these can be fixed incrementally, so there's no real harm in multiple commits. I wouldn't mind seeing how you did yours as a guide for cases I may not be able to figure out. I haven't gotten a chance to tackle yet... |
OK, pushed (commit b248040). I will take Viral's functions. |
Sorry I didn't get a chance to do my functions before you did them. Thanks, Jeff. |
Oh, I thought you did them all — now I see that you just did more and that there are many usages of |
fixed the rest in commit 414ac2f |
Hmm, maybe native is a new gcc switch? Also, the trouble with native tuning is that you have to have a way to compile in code for all families for distribution. Cloud seems to get even more appealing for these kinds of reasons. gcc -D_IEEE_LIBM -Dx86 -fPIC -O2 -march=native -c -o k_cos.o k_cos.c -viral On Jun 17, 2011, at 1:43 AM, JeffBezanson wrote:
|
Its odd I get that error, even when native is discussed in my gcc manpage. -viral On Jun 17, 2011, at 1:45 AM, Viral Shah wrote:
|
sqrt() seems to run about 20-30% faster than before, if memory serves correctly. -viral On Jun 17, 2011, at 1:45 AM, Viral Shah wrote:
|
We still need to see if the assembly language sqrt is accurate enough. The On Thu, Jun 16, 2011 at 4:24 PM, ViralBShah <
|
Ok. I meant the fdlibm sqrt with -O2 is faster than before. -viral On Jun 17, 2011, at 1:56 AM, JeffBezanson wrote:
|
robot-name: Update to v0.6 (fixes JuliaLang#46)
When trying to make julia, test/unittests.j fails.
with the following error: Assertion failed: isinf(-(Inf))==true ./test/unittests.j:87
error in context:
make[1]: Leaving directory `/home/g3/julia/ui'
ln -f julia-release-readline julia
./julia ./test/unittests.j
Assertion failed: isinf(-(Inf))==true ./test/unittests.j:87
make: *** [release] Error 1
system info:
g3@ubuntu:~/julia$ uname -a
Linux ubuntu 2.6.38-8-generic 42-Ubuntu SMP Mon Apr 11 03:31:24 UTC 2011 x86_64 x86_64 x86_64 GNU/Linux
The text was updated successfully, but these errors were encountered: