Bill Hart wrote:Fresh tuning values for Bobcat (AMD E-450) are on the way; I've meanwhile run tuneup 20 times while the machine was otherwise idle... (GCC 4.8.0 on Ubuntu 10.04.4 x86_64, FWIW).
I have now tuned on the following architectures:
core2, penryn, k102, netburst, k8, k10, bulldozer, westmere,
sandybridge, piledriver, nehalem, core2, ia64.
I don't have tuning values for:
x86 (any kind), bobcat, atom, arm, mips32, mips64, sparc32, sparc64,
ppc32, ppc64.
If anyone can contribute any of the above, please do.
Bill.
I'll presumably provide tuning values for Pentium 4 Prescott (x86) tomorrow; MPIR's current cpuid.c still ("mis"-)detects that CPU (family 15 model 3; same for model 4) as a stock Pentium 4 though. There's currently no special assembly code for Prescott (using SSE3/PNI, say), but GCC is fed with '-march=pentium4 -mtune=pentium4' instead of '-march=prescott -mtune=prescott'.
If it's of any use, I could also try to revive a Pentium III (Coppermine) and tune on that.
-leif
--
() The ASCII Ribbon Campaign
/\ Help Cure HTML E-Mail
--
You received this message because you are subscribed to the Google Groups "mpir-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mpir-devel+unsubscribe@googlegroups.com.
To post to this group, send email to mpir-...@googlegroups.com.
Visit this group at http://groups.google.com/group/mpir-devel.
For more options, visit https://groups.google.com/d/optout.
On 29.03.2014 00:09, Bill Hart wrote:I *think* this is pretty unrelated to the autotools version; you simply moved AC_PROG_CXX up (in configure.ac), but not the prior test which is supposed to record whether CXXFLAGS had been set (by the user!):
Hmm, autoconf 2.69 doesn't fix this problem either. Screwed if I know
how CXXFLAGS gets populated.
test_CXXFLAGS=${CXXFLAGS+set}
AC_PROG_CXX of course modifies / sets CXXFLAGS, such that test_CXXFLAGS now always equals "set", so MPIR assumes *the user* had set them, and hence never tries to modify them.
So it should be sufficient to either move AC_PROG_CXX back down, the test for user-set CXXFLAGS up (right /before/ AC_PROG_CXX), or -- presumably less robust -- to use one of the autoconf-saved values, ac_test_CXXFLAGS (instead of test_CXXFLAGS), or ac_save_CXXFLAGS (instead of CXXFLAGS).
-leif
On 28 March 2014 22:46, Bill Hart <goodwi...@googlemail.com
Ah, bingo, well done.I had completely ignored this because according to the autotools manual that script just checks for a C++ compiler and lets you specify an order to search for them. But I had forgotten about the fact that it sets CXXFLAGS with a preliminary value.Oddly enough, when I reran autoconf -fiv and configure, this did not fix the problem.So I deleted configure and tried again. This time success.Don't ask me. Yet another bug in my opinion.Bill.
On 29 March 2014 01:06, leif <not.r...@online.de> wrote:
On 29.03.2014 00:09, Bill Hart wrote:I *think* this is pretty unrelated to the autotools version; you simply moved AC_PROG_CXX up (in configure.ac), but not the prior test which is supposed to record whether CXXFLAGS had been set (by the user!):
Hmm, autoconf 2.69 doesn't fix this problem either. Screwed if I know
how CXXFLAGS gets populated.
test_CXXFLAGS=${CXXFLAGS+set}
AC_PROG_CXX of course modifies / sets CXXFLAGS, such that test_CXXFLAGS now always equals "set", so MPIR assumes *the user* had set them, and hence never tries to modify them.
So it should be sufficient to either move AC_PROG_CXX back down, the test for user-set CXXFLAGS up (right /before/ AC_PROG_CXX), or -- presumably less robust -- to use one of the autoconf-saved values, ac_test_CXXFLAGS (instead of test_CXXFLAGS), or ac_save_CXXFLAGS (instead of CXXFLAGS).
-leif
On 28 March 2014 22:46, Bill Hart <goodwi...@googlemail.com
Dear all,
I think the fix in https://github.com/wbhart/mpir/commit/053476c4567874223180485ff0a4fa808d0ab4d1 is actually wrong.
What you did is basically go back to the previous state of configure.in/ac with regards to AC_PROG_CXX.
But note that it should not be run conditionally this way, whence my (not quite correct) fix.
In particular, running it conditionnally as it is now will completely break the autotools magic if mpir is built without C++ support at least on Cygwin.
See http://cygwin.com/ml/cygwin/2013-06/msg00580.html and http://cygwin.com/ml/cygwin/2013-06/msg00620.html
So we should come up with a better solution.
Best,
JP
How on earth did you test it so fast? It takes 45 minutes just to run configure on my machine!
OK, I've committed it now.Bill.
Testing now on Cygwin64 (in a 64 bit Windows 7 VM).
On Monday, March 31, 2014 10:45:48 PM UTC+2, Jean-Pierre Flori wrote:
On Monday, March 31, 2014 10:27:01 PM UTC+2, Jean-Pierre Flori wrote:Testing now on Cygwin64 (in a 64 bit Windows 7 VM).Built fine there as well with and without C++ support.
Now running the testsuite.
Oh, maybe the shared library uses all the PIC paths in the assembly code, and some of these are broken?
Bill.
Brian
--
You received this message because you are subscribed to the Google Groups "mpir-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mpir-devel+...@googlegroups.com.
To post to this group, send email to mpir-...@googlegroups.com.
Visit this group at http://groups.google.com/group/mpir-devel.
For more options, visit https://groups.google.com/d/optout.
Brian
Actually, it was you that reported this. You also reported it on the Cygwin64 list (they didn't seem to know anything about the segfaults).Apparently there were problems within ld, which have presumably been resolved.On the other hand, you were able to build a shared library ok, but some (not all) of the tests segfaulted.It looks like this just never got dealt with (perhaps we dealt with the ld problem and never did anything about the other).Bill.
t-neg seems to segfault when calling MPN_ZERO on line 41.
Same for t-hgcd.
According to config.h we are certainly using the native mpn_store. I can't see this being anything other than a compiler bug.
I don't see the relation. You only speak about the ABI, which is not relevant, is it?
How? It doesn't seem to work.
Jean-Pierre Flori wrote:
On Wednesday, April 2, 2014 1:47:30 AM UTC+2, Bill Hart wrote:
All the C tests pass now. Just checking the C++ ones.
On 2 April 2014 00:49, Bill Hart <goodwi...@googlemail.com<javascript:>> wrote:
Got it!
/* __GMP_DECLSPEC supports Windows DLL versions of libmpir, and
is empty in
all other circumstances.
Just wonder how the correct declarations of the affected (called) functions vanished.