#10508: Update ATLAS to stable version 3.10
-----------------------------------------------------------------------------------------+
Reporter: vbraun
| Owner: tbd
Type: enhancement
| Status: needs_work
Priority: major
| Milestone: sage-5.9
Component: packages
| Resolution:
Keywords: ATLAS
| Work issues:
Report Upstream: Reported upstream. No feedback yet.
| Reviewers: Benjamin Jones, Karl-Dieter Crisman, Dmitrii
Pasechnik, Georg Weber, François Bissey, John Palmieri
Authors: Volker Braun, Jeroen Demeyer
| Merged in:
Dependencies: #13160, #13395, #13392, #13416, #12994, #9906, #12883,
#13123, #13415 | Stopgaps:
-----------------------------------------------------------------------------------------+
Comment (by jpflori):
I set
{{{
SAGE_ATLAS_ARCH=Corei2,AVX,SSE3,SSE2,SSE1
}}}
which was sensible for my harware, nothing different from Linux.
Anything not empty will trigger the build, so just choose what fits your
hardware;
I guess "base" and "fast" should do if you have no idea.
And then I issued make (MAKE="make -j4").
It failed in the end because of libttool
{{{
blabla libtool cannot link non-libtool object blabla on this host blabla
}}}
So in a Sage shell just cd to the ($SAGE_ROOT/spkg/build/atlas-3.10.1.p0
/)ATLAS-lib dir, open Makefile.am and just do what is done for the
different lib*.la target but more or less replace @LIBTOOL@ by gcc (or
gfortran if there is as well --tag=F77) for the compilation line (and
don't forget lib deps -l...).
For instance to build a minimally fancy libatlas.dll:
{{{
mkdir libatlas-objs
cd libatlas-objs
ar x ../libatlas.a
cd ..
gcc -shared -o libatlas.dll libatlas-objs/*.o
cp libatlas.dll $SAGE_LOCAL/lib/
}}}
and for a fortran one for instance
{{{
mkdir liblapack-objs
cd liblapack-objs
ar x ../liblapack.a
cd ..
gfortran -shared -o liblapack.dll liblapack-objs/*.o -latlas -lcblas
-lf77blas -lm
cp liblapack.dll $SAGE_LOCAL/lib
}}}
We could add fancy versioning and creating an import lib and so on, but
let's try that first.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/10508#comment:378>
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 unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.