-
-
Notifications
You must be signed in to change notification settings - Fork 510
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
Update ATLAS to stable version 3.10.1 #10508
Comments
comment:1
Note that you cannot just use The cvxopt spkg needs to be updated to link correctly with this atlas release, see #10509. |
comment:3
Does it mean that LAPACK spkg can be removed, too? |
comment:4
Yes, the lapack spkg can be removed. I'm still trying to debug some issues with linbox... |
comment:5
BLAS can also be removed if we go with this. f2c which was used before we got ATLAS to provide cblas by f2c-ing the BLAS |
comment:6
on 32-bit x86 Linux (Debian squeeze) I get the following, when trying to install the spkg (applied the patches to a pristine Sage 4.6.1.alpha3):
|
comment:7
Replying to @dimpase:
complete install.log is here: |
comment:8
Hi Dima, I think the problem is
This fails because |
comment:9
Replying to @vbraun:
yes, it's single-core. An old Pentium M. (Atlas 3.8 spkg does not build on it, at all) |
comment:10
I changed the For simplicity, I made spkgs for cvxopts and sage_scripts. So you need to add http://www.stp.dias.ie/~vbraun/Sage/spkg/atlas-3.9.32.spkg to
I'm still having doctest errors with linbox... |
comment:11
Replying to @vbraun:
It builds OK, but then testlong gives quite a bit of failures:
I do not know how many of them are Atlas related, though. |
comment:12
A lot of it is probably related. Was this a build from scratch? I must say we have observed a number of failures related to ATLAS-3.9.23 in Not sure about the SIGFPE, it could come from a result rounded to 0 or the like. |
comment:13
Replying to @kiwifb:
yes, it's a build from scratch, on the same machine (old Pentium M) as already discussed above.
I wonder if these are Atlas bugs, or Linbox bugs... One should try an OSX build. |
comment:14
why OS X in particular? I could do that but not before the 5th of January, when |
comment:15
Replying to @kiwifb:
Or does OSX remain disabled for Atlas, i.e. it's not built? |
comment:16
Replying to @dimpase:
I had forgotten about that. I checked the spkg and ATLAS is not built on |
comment:17
I get the same doctest errors. Most of them are linbox related. The SIGFPE is from converting a NAN into a GMP integer, but I haven't gotten to the root of the NAN yet. In trying to debug this I've noticed that there are a bunch of valgrind warnings in the linbox code path we are using. I've asked some more specific questions on the linbox-use mailinglist: https://groups.google.com/d/topic/linbox-use/N3QNNOQuTAc/discussion But so far no final conclusion. |
comment:18
Replying to @dimpase:
I notice you say it is a Pentium M, yet ATLAS is compiling things |
comment:19
Replying to @kiwifb:
The processor is Pentium M The Atlas built is not totally useless, it works for many doctests. |
comment:20
Replying to @vbraun:
Converting a NAN into a GMP integer is exactly what was happening in cschwan/sage-on-gentoo#3 and it didn't happen when using gslcblas. I will do a full build of sage-on-gentoo with 3.9.40 (or 41) and see if I can see anything. |
comment:21
Yuck, still got problems leading to linbox, I got the ones leading to iml too. Note that using another cblas like gslcblas/openblas/reference(netlib) all these problems disappear which seem to indicate that there is something going on in ATLAS itself or that all the others gets it wrong (I realise that on a stock sage you may have trouble compiling iml with anything else than ATLAS, it requires some patching to the configure script to be able to do so). |
comment:23
I have 3.9.41 now, the only difference was it compiled faster because there was tuning for my cpu. But we could investigate 3.8.4. |
comment:24
OK 3.8.4 doesn't suffer from any of the drawbacks that are apparent in 3.9.23+. The big drawback is that it doesn't build lapack nicely on its own, provided we point to the sources like the latest 3.9.xx do. That means spkg-install would need a little bit more work. Opinions? |
comment:25
Can we keep this ticket focused on the development version of atlas and discuss the stable ATLAS on #10226? I updated the spkg on the latter ticket to the new stable ATLAS release. |
comment:26
Sure. My current opinion and that's something I am pushing to sage-on-gentoo users is to avoid ATLAS 3.9.xx for the time being. It is possible that ATLAS-3.9.xx is doing something permissible that iml and linbox are not ready to catch. My line of thought is that I remember that some algorithm in iml takes the inverse of a result returned by cblas. If the result is 0 instead of a small value we may have our NaN, more likely some result from ATLAS is a NaN. |
comment:524
I tried that and it does not give any details (except that ir says that it did not find ATLAS). |
comment:525
config.log for iml with its original Does all of this mean that iml is completely untested in the Sage library? |
comment:526
Putting the header from /src/include/cblas.h in /local/lib fixes the problem. I guess leif was lucky because he had a system-wide cblas.h? And the IML install script looks quite messy... |
comment:527
In the Atlas spkg-install script, there is a function configure_atlas_library |
comment:528
Depends what you mean by untested. There are various problems with iml. I use 1.0.3 in sage-on-gentoo but the fix we have for BLAS detection is not applicable to the sage spkg. The install script is messy because there is quite some cruft in the source and patching will require running autotools on it. IML is definitely used in the sage library and it is at least indirectly called in some doctest. |
comment:529
I'd also say we don't call ATLAS's Makefile install target. The easiest solution is to call ATLAS Makefile install target. |
comment:530
I've created #14699 to discuss this issue with iml and ATLAS. We should move the discussion there. |
comment:531
Of course I have it, as does sage.math (which I had checked, also for system-wide libs). I guess John was actually testing on boxen.math, which does not have it.
The whole [s]package is a mess, see #748. |
comment:532
Replying to @nexttime:
Ticket on which I meant to work for more than a year :( |
comment:533
jpflori, the static libraries are already installed for me (this is done through an shutil.copy in configure_atlas_library). I'm unsure if the header files should be copied in a similar way, or if giving an extra option to configure will be enough. |
comment:534
Reverting this ticket: #14753. |
Changed merged from sage-5.10.beta5 to none |
Merged: sage-5.10.beta5 |
comment:536
Keeping "merged in" information for future reference, we should not change this ticket further. |
comment:537
Upgrading ATLAS (again) is now #14754. |
The new atlas release now builds netlib lapack itself, so the lapack tarball is now included in the ATLAS spkg.
SAGE_ATLAS_LIB=path
now searches inpath/libatlas.so
instead ofpath/lib/libatlas.so
so it works for people with atlas in/lib64
, too.os.system
(ATLAS: flush output before os.system() #13210)Upstream has made some attempt at changing the layout of the shared libraries, which is now different from the static libraries. The atlas spkg contains a stub autoconf/libtools project that unpacks the static libraries and repacks them into equivalent shared libraries.
By default, ATLAS will now try twice to get timings and fail immediately if throttling is enabled. If auto-tuning fails build with
SAGE_ATLAS_ARCH=fast
, and if that fails withSAGE_ATLAS_ARCH=base
. On x86, the fast and base targets are the new ATLAS generic targets x86SSE3 and x86SSE2/x86x87.There is an upstream problem where compilation sometimes crashes during
xextract
because of a buffer overflow due to small fixed-sized buffers for filenames.Updated spkg:
Apply
local/bin
.Remove the lapack and blas packages.
Depends on #13160
Depends on #13395
Depends on #13392
Depends on #13416
Depends on #12994
Depends on #9906
Depends on #12883
Depends on #13123
Depends on #13415
Depends on #14344
Depends on #14465
Depends on #12832
Depends on #14617
Upstream: Reported upstream. No feedback yet.
CC: @dimpase @kiwifb @nexttime @kcrisman
Component: packages: standard
Keywords: ATLAS spkg
Author: Volker Braun, Jeroen Demeyer, Jean-Pierre Flori
Reviewer: Benjamin Jones, Karl-Dieter Crisman, Dmitrii Pasechnik, Georg Weber, François Bissey, John Palmieri, Volker Braun
Merged: sage-5.10.beta5
Issue created by migration from https://trac.sagemath.org/ticket/10508
The text was updated successfully, but these errors were encountered: