1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80
|
.. _CentOS:
======
CentOS
======
Here you find information about the the system http://www.centos.org/.
.. _PGO_gcc_EL5:
Profile guided optimization
===========================
Example how describes how to use
`profile guided optimization <http://en.wikipedia.org/wiki/Profile-guided_optimization>`_
to compile GPAW with gcc version **4.3.0** on CentOS 5.3:
- starting at :ref:`developer installation`,
modify :file:`customize.py` so ``extra_compile_args`` reads::
opt_string = '-fprofile-generate'
extra_compile_args =['-std=c99', opt_string]
- moreover, ``mpicompiler`` must be set, and ``mpilinker`` read::
mpilinker = mpicompiler+' '+opt_string
- build GPAW's :ref:`c_extension` as described at
:ref:`developer installation`. This will create ``*.gcno`` files in
the :file:`./build/temp.<platform>-<python-version>/c/` directory.
- perform a test run using :file:`gpaw-python`. This will create
``*.gcda`` files in the :file:`./build/temp.<platform>-python-version/c/`
directory.
- remove object files and :file:`_gpaw.so` (example for **linux-i686** platform, python **2.4**)::
find build/temp.linux-i686-2.4/ -name "*.o" | xargs rm
rm -f build/lib.linux-i686-2.4/_gpaw.so
- change :file:`customize.py` so ``opt_string`` reads::
opt_string = '-fprofile-use'
and rebuild GPAW's :ref:`c_extension`.
System wide installation with yum
=================================
**Warning**: this section is outdated!
The steps described below require root access and assume bash shell:
- `configure fys yum repository <https://wiki.fysik.dtu.dk/niflheim/Cluster_software_-_RPMS#configure-fys-yum-repository>`_
- on EL/CentOS 6 i386 or x86_64, as root:
- install gpaw and dependencies::
yum -y install --enablerepo=fys_el campos-gpaw
- install optional packages::
yum -y install --enablerepo=fys_el scipy ScientificPython
- on EL/CentOS 5 i386 or x86_64, as root:
- install gpaw and dependencies::
yum -y install --enablerepo=fys_el,epel,atrpms campos-gpaw
- install optional packages::
yum -y install --enablerepo=fys_el,epel,atrpms scipy ScientificPython
.. note::
There are no new releases of fys packages after "End of Regular Life Cycle"
of CentOS releases: see https://access.redhat.com/support/policy/updates/errata/
|