
=======================================
Dacapo binaries for different platforms
=======================================

.. contents::
.. section-numbering::

Before adding a binary to the list, please run the test script `Cu.py`_ 
succesfully. 

.. _Cu.py: Cu.py


P4 Linux fedora core1 & 2 using portland group pgf90
====================================================

Fortran compiler is pgf90 5.2-4. 

compiled using: 

   serial: gmake pglinux 

   parallel: gmake pglinux MP=mpi
 

Binaries: 

  `serial version`_

  `parallel version`_ 

.. _serial version: ./binaries/linux/Dacapo-2.7.7.run 
.. _parallel version: ./binaries/linux/dacapo_2.7.7_mpi.run


The Makefile entry pglinux looks like this::

  PGLINUX_DEFINES =  ${USEFFTW} ${QRAD_SWAP_OPT} -DPGLINUX

  PGLINUX_OPT = -fast
  PGLINUX_FFLAGS = -byteswapio -Msecond_underscore -Bstatic -tp=p7

  # using atlas blas,fftw and netcdf
  LIBS_pglinux=-llapack -lcblas -lf77blas -latlas -lfftw -lnetcdf

  # using LAM-MPI
  LIBS_pglinux_mpi=  -llamf77mpi
  PGLINUX_MPIDIR=/usr/local/lam-7.0.6-pgi/



NetCDF
------

version 3.5.1 of the `netcdf library`_. 

.. _netcdf library: ftp://ftp.unidata.ucar.edu/pub/netcdf/netcdf.tar.Z


Build using::

  setenv  CPPFLAGS '-DNDEBUG -Df2cFortran'
  setenv  FFLAGS '-byteswapio -Msecond_underscore'
  setenv FC pgf90
  ./configure --prefix=/usr
  gmake 
  gmake install

FFTW
----

Version 2.1.5 of the `fftw library`_

.. _fftw library: http://www.fftw.org/fftw-2.1.5.tar.gz

Build using:: 

 setenv F77 pgf90 
 setenv FFLAGS -Msecond_underscore
 ./configure
 gmake 
 gmake install 


Atlas
-----

Take the precompiled version of `Atlas blas`_ that fits you system best

.. _Atlas blas: https://sourceforge.net/project/showfiles.php?group_id=23725


MPI
---

Only if you want to build the parallel version.

Version 7.0.6 of `LAM MPI`_.

.. _LAM MPI: http://www.lam-mpi.org/download/files/lam-7.0.6.tar.gz

Build using::

  setenv CPPFLAGS '-DNDEBUG -Df2cFortran' 
  setenv F77 pgf90 
  setenv FC  pgf90 
  setenv FFLAGS '-byteswapio -Msecond_underscore'
  ./configure
  gmake 
  gmake install

