Commit 91a7646947979c52c096c11dd071741d142818a1

Authored by William Daniau
Exists in master

Merge branch 'fvn_distrib' into 'master'

Ajout script performance

Showing 2 changed files Inline Diff

#!/bin/bash 1 1 #!/bin/bash
2 2
echo "FR Mettre le processeur en mode performances (important pour atlas)" 3 3 echo "FR Mettre le processeur en mode performances (important pour atlas)"
echo "FR + sous kde clic droit sur kpowersave " 4 4 echo "FR + sous kde clic droit sur kpowersave "
echo "FR -> Définir les règles de fréquence du processeur" 5 5 echo "FR -> Définir les règles de fréquence du processeur"
echo "FR -> Performances" 6 6 echo "FR -> Performances"
echo "FR + avec les cpufrequtils en root : cpufreq-set -g performance" 7 7 echo "FR + avec les cpufrequtils en root : cpufreq-set -g performance"
8 echo "FR + Vous pouvez aussi exécuter en root le script performance.sh"
echo 8 9 echo
echo "FR Si ce n'est pas fait tapez <Ctrl> C pour interrompre " 9 10 echo "FR Si ce n'est pas fait tapez <Ctrl> C pour interrompre "
echo "FR sinon continuez avec <Entree>" 10 11 echo "FR sinon continuez avec <Entree>"
echo 11 12 echo
echo "EN Processor must be in performance mode (important for atlas)" 12 13 echo "EN Processor must be in performance mode (important for atlas)"
echo "EN + under kde right-clic on kpowersave " 13 14 echo "EN + under kde right-clic on kpowersave "
echo "EN -> Processor frequency rules" 14 15 echo "EN -> Processor frequency rules"
echo "EN -> Performances" 15 16 echo "EN -> Performances"
echo "EN + with cpufrequtils under root : cpufreq-set -g performance" 16 17 echo "EN + with cpufrequtils under root : cpufreq-set -g performance"
18 echo "EN + you can also launch as root the script performance.sh"
echo 17 19 echo
echo "EN If it is not the case type <Ctrl> C to interrupt now " 18 20 echo "EN If it is not the case type <Ctrl> C to interrupt now "
echo "EN otherwise continue with <Enter>" 19 21 echo "EN otherwise continue with <Enter>"
20 22
21 23
22 24
23 25
read a 24 26 read a
25 27
# Unpack lapack archive 26 28 # Unpack lapack archive
echo "Archive lapack (netlib)" 27 29 echo "Archive lapack (netlib)"
tar xzf lapack-3.3.0.tgz 28 30 tar xzf lapack-3.3.0.tgz
29 31
# Compilation lapack 30 32 # Compilation lapack
cp make.inc.gfortran.lapack lapack-3.3.0/make.inc 31 33 cp make.inc.gfortran.lapack lapack-3.3.0/make.inc
cp Makefile.lapack lapack-3.3.0/SRC/Makefile 32 34 cp Makefile.lapack lapack-3.3.0/SRC/Makefile
cd lapack-3.3.0 33 35 cd lapack-3.3.0
make lapacklib 34 36 make lapacklib
cd .. 35 37 cd ..
36 38
# Unpack atlas archive 37 39 # Unpack atlas archive
echo "Archive atlas" 38 40 echo "Archive atlas"
tar xjf atlas3.8.3.tar.bz2 39 41 tar xjf atlas3.8.3.tar.bz2
cd ATLAS 40 42 cd ATLAS
mkdir build 41 43 mkdir build
mkdir install 42 44 mkdir install
cd build 43 45 cd build
File was created 1 #!/bin/bash
2
3 # Run this script as root to set the processors to performance
4
5 # set all processor to performance
6 ncpu=`cat /proc/cpuinfo | grep processor | cut -d':' -f 2 | tail -1`
7 for i in `seq 0 $ncpu`
8 do
9 #cpufreq-set -g performance -c $i