#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):
Replying to [comment:130 vbraun]:
> I'm pretty sure that compiling everything with -O3 + graphite will
break, but I applaud your heroic effort ;-)
Then you might be surprised that the following worked:
* Build gcc via the spkg
* Build ppl (with c interface), gmp and cloog-ppl, using
{{{
CFLAGS="-O3 -march=native"
CXXFLAGS="-O3 -march=native"
}}}
* Build gcc again, via the modified spkg (--with-ppl --with-cloog), again
with `-O3 -march=native`.
* Build all of Sage again (all spkgs and sage -ba), using
{{{
CFLAGS="-O3 -march=native -floop-interchange -floop-strip-mine -floop-
block -fno-strict-aliasing"
CXXFLAGS="-O3 -march=native -floop-interchange -floop-strip-mine -floop-
block -fno-strict-aliasing"
}}}
* Run more than half of `sage -testall` without error.
Nevertheless, it was a heroic failure.
Here are some test times without optimisation, for sage-5.0.beta7 built
with my system gcc-4.6.2:
{{{
sage -t -force_lib "devel/sage/sage/symbolic/function.pyx"
[3.2 s]
sage -t -force_lib "devel/sage/sage/symbolic/benchmark.py"
[8.6 s]
sage -t -force_lib "devel/sage/sage/symbolic/function_factory.py"
[2.5 s]
sage -t -force_lib "devel/sage/sage/symbolic/ring.pyx"
[4.0 s]
sage -t -force_lib "devel/sage/sage/symbolic/relation.py"
[9.4 s]
sage -t -force_lib "devel/sage/sage/symbolic/maxima_wrapper.py"
[2.9 s]
}}}
Here are the same tests, using full optimization, using the gcc-4.6.3 from
the spkg with graphite:
{{{
sage -t -force_lib "devel/sage/sage/symbolic/function.pyx"
[8.0 s]
sage -t -force_lib "devel/sage/sage/symbolic/benchmark.py"
[17.4 s]
sage -t -force_lib "devel/sage/sage/symbolic/function_factory.py"
[5.7 s]
sage -t -force_lib "devel/sage/sage/symbolic/ring.pyx"
[7.8 s]
sage -t -force_lib "devel/sage/sage/symbolic/relation.py"
[23.7 s]
sage -t -force_lib "devel/sage/sage/symbolic/maxima_wrapper.py"
[43.5 s]
}}}
What kind of optimization is it, if it makes things MASSIVELY slower???
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/12369#comment:135>
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.