[Pkg-scicomp-devel] Bug#571322: Bug#571322: [atlas] custom build improvements

Sylvestre Ledru sylvestre at debian.org
Thu Feb 25 15:25:33 UTC 2010


Le jeudi 25 février 2010 à 22:48 +1300, Adrian Benson a écrit :
> Package: atlas
> Version: 3.8.3-9
> 
> Hi Sylvestre
> 
> Sorry about the delay in submitting these.
> 
> 1.  There needs to be a way of incrementing the version for custom builds
[...]

>          debian/rules ARCHS=base__ binary
>          touch $@|
Funny coincidence. I just did it yesterday (on your private advice)


> 2.  Atlas timing needs th cpu clock to be set to the maximum - dynamic 
> frequency mechanisms
> should be disabled.  So you need to add 'cpufrequtils' as a build 
> dependency for custom builds.
> There should then be a check using 'cpufreq-info' to make sure the cpu 
> governer is set to
> 'performance'. Not much of a makefile programmer, but a bash style test 
> would be:
> 
> |ncpu=$(cpufreq-info | grep "analyzing CPU" -c)
> 
> ||for (( cpu=0 ; cpu < $ncpu ; cpu++)); do
>      if [ -z "$(cpufreq-info -p -c $cpu | grep performance)" ]; then
>          echo "frequency governor on cpu=$cpu is not set to 'performance'
>          echo "run: 'sudo cpufreq-set -g governor -c cpu#' for each cpu"
>          echo "aborting atlas build"
>          exit (1)
> |        fi
> done
Sounds good. I will incorporate it into the next upload.

Sylvestre








More information about the Pkg-scicomp-devel mailing list