#12369: Add a gcc package
------------------------+---------------------------------------------------
Reporter: jdemeyer | Owner: tbd
Type: task | Status: needs_review
Priority: major | Milestone: sage-5.0
Component: packages | Keywords:
Work_issues: | Upstream: N/A
Reviewer: | Author: Jeroen Demeyer
Merged: | Dependencies: #12479, #12602, #12608, #12609,
#12647, #10492, #12367, #12368, #12405, #12570, #12574, #12423, #12425, #12456,
#12363, #12223, #12515, #12519, #12548, #12562, #12629, #12638
------------------------+---------------------------------------------------
Comment(by SimonKing):
It seems that GMP was to blame for the performance loss that I observed
previously in the test suite.
Here is in all detail how I proceeded:
* untar the source ball and open a sage shell
* replace the old pari and ppl spkgs by the new ones
* provide `C(XX)FLAGS="-O3 -march=native"`
* install the standard mpir, (updated) ppl and mpfr spkgs
* install the optional mpc and cloog_ppl spkgs
* install the modified gcc spkg (using
{{{
../src/configure \
--prefix="$SAGE_LOCAL" \
--with-local-prefix="$SAGE_LOCAL" \
--libdir="$SAGE_LOCAL/lib" \
--config-cache --enable-build-with-cxx --disable-ppl-version-check
--disable-cloog-version-check \
--with-ppl="$SAGE_LOCAL" --with-cloog="$SAGE_LOCAL" \
--with-gmp="$SAGE_LOCAL" --with-mpfr="$SAGE_LOCAL" --with-
mpc="$SAGE_LOCAL" \
--with-system-zlib \
--disable-multilib \
$CONFIGURE_FLAGS "$CONFIGURE_AS" "$CONFIGURE_LD"
}}}
This took more than 8 hours. But meanwhile I think that my computer had
just a bad day.
* switch to `C(XX)FLAGS="-O3 -march=native -floop-interchange -floop-
strip-mine -floop-block -fno-strict-aliasing"`
* recompile mpir, ppl, mpfr, mpfi, mpc and cloog_ppl (to have the
optimization as well)
* recompile gcc ''with the new level of optimization'' (and just to see
whether it takes another 8 hours...)
* make. Then, the first attempt of building `PolyBoRi` failed. But
after closing and reopening the Sage shell, `make` did work on `PolyBoRi`.
* After a few seconds, I noticed that I had forgotten to change
`C(XX)FLAGS`. So, I interrupted, deleted the items in spkg/installed that
came after polybori, set the flags, and tried again... And it still
worked!
* Strange: ppl, mpir and mpfr, were built again, although I had
installed them manually in the very beginning.
* When `make` was done, I applied all the dependencies of this ticket
(numerous patches to sage-root, sage-extcode and sage-lib.
* `sage -b`
* `sage -testall`
Result: The whole test suite took 5785.2 seconds when Sage is built with
standard CFLAGS, and 5845.7 seconds when it is built with high
optimization. So, there is no significant difference with or without
optimization. But at least, it works, and it becomes clear that one should
keep using MPIR, not GMP.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/12369#comment:150>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sage-trac?hl=en.