Blame view

build.sh 1.36 KB
18afc10ef   daniau   git-svn-id: https...
1
  #!/bin/bash
3cee84f22   daniau   git-svn-id: https...
2
3
4
5
6
  echo "FR Mettre le processeur en mode performances (important pour atlas)"
  echo "FR    + sous kde clic droit sur kpowersave "
  echo "FR       -> Définir les règles de fréquence du processeur"
  echo "FR       -> Performances"
  echo "FR    + avec les cpufrequtils en root : cpufreq-set -g performance"
18afc10ef   daniau   git-svn-id: https...
7
  echo
3cee84f22   daniau   git-svn-id: https...
8
9
10
11
12
13
14
15
16
17
18
  echo "FR Si ce n'est pas fait tapez <Ctrl> C pour interrompre "
  echo "FR  sinon continuez avec <Entree>"
  echo
  echo "EN Processor must be in performance mode (important for atlas)"
  echo "EN    + under kde right-clic on kpowersave "
  echo "EN       -> Processor frequency rules"
  echo "EN       -> Performances"
  echo "EN    + with cpufrequtils under root : cpufreq-set -g performance"
  echo
  echo "EN If it is not the case type <Ctrl> C to interrupt now "
  echo "EN  otherwise continue with  <Enter>"
18afc10ef   daniau   git-svn-id: https...
19
20
21
22
23
  
  read a
  
  # Unpack lapack archive
  echo "Archive lapack (netlib)"
833843a43   wdaniau   Updated lapack to...
24
  tar xzf lapack-3.3.0.tgz
18afc10ef   daniau   git-svn-id: https...
25
26
  
  # Compilation lapack
833843a43   wdaniau   Updated lapack to...
27
28
29
  cp make.inc.gfortran.lapack lapack-3.3.0/make.inc
  cp Makefile.lapack lapack-3.3.0/SRC/Makefile
  cd lapack-3.3.0
18afc10ef   daniau   git-svn-id: https...
30
  make lapacklib
b90ffcec1   daniau   git-svn-id: https...
31
  cd ..
18afc10ef   daniau   git-svn-id: https...
32
33
34
  
  # Unpack atlas archive
  echo "Archive atlas"
0a93ec6e0   wdaniau   Update to atlas 3...
35
  tar xjf atlas3.8.3.tar.bz2
18afc10ef   daniau   git-svn-id: https...
36
37
38
39
  cd ATLAS
  mkdir build
  mkdir install
  cd build
833843a43   wdaniau   Updated lapack to...
40
  ../configure  --prefix=../install --with-netlib-lapack=../../lapack-3.3.0/lapack_LINUX.a -Fa alg -fPIC
18afc10ef   daniau   git-svn-id: https...
41
42
  make
  make install
940deee68   wdaniau   Added necessary f...
43
44
45
46
47
  # make and install shared libraries
  cd lib
  make shared
  make ptshared
  cp *.so ../../install/lib
18afc10ef   daniau   git-svn-id: https...
48