Currently, when ATLAS builds in Sage, it uses this option to the configure scrip, it used the option -t 0, which disables threading.

The comment in spkg-install-script says:

# -t 0: disable threading for now.

and we can see that actually happens.


../src/configure --prefix="$SAGE_LOCAL" --with-netlib-lapack="$SAGE_LOCAL"/lib/liblapack.a \ -Si cputhrchk 0 -Fa alg -fPIC -t 0 -C if $FCOMPILER -b $bitwidth $SIMD_FLAGS


How does this sound.

1) We add an environment variable SAGE_ATLAS_THREADS
2) If unset, then the behavior is unchanged, so we build an unthreaded ATLAS.
3) If set to "auto":

$ export SAGE_ATLAS_THREADS=auto

then we let ATLAS automatically determine the number of threads. (I think that is what ATLAS determines as the number of processors on your system. IIRC, on 't2.math' this was 128).

4) If set to an integer N,

$ export SAGE_ATLAS_THREADS=8

we use N (in this case 8) threads.

Does that sounds more logical than only letting an threaded ATLAS be built?


Dave

--
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org

Reply via email to