Installation of MEML
It is recommended for an optimal speed to install MEML and all the software it
depends on from source code. In particular an adapted ATLAS can distinctly
speed up generated programs. So this webpage provides an
installation instructions to compile all of the needed software on your system
by a given bash-shell-script.
Installation from scratch with the bash-shell-script
-
First of all make sure that (gnu)make, gcc, g77 and f2c are installed.
-
Now get the software form SourceForge
http://sourceforge.net/projects/meml/
Unpack it and enter the directory
tar xzf meml-0.7.tar.gz
tar xzf MEMLDEPS.tar.gz
cd MEMLDEPS
-
Fit the software for your hardware and set e.g.
export MEMLOPT="-march=athlon-xp"
or
export MEMLOPT="-march=pentium4"
-
Let the Shell-script do the compiling
sh install.sh
You have got to follow the instructions of ATLAS like:
Enter number at top left of screen [0]: 054
From now on it should work in most cases to press ENTER all the time.
If not, have a look at troubleshooting or better the ATLAS Homepage.
After a while everything should be done and you
can have a look at the examples in the documentation.
-
If you are root privileges you can install the software system wide by
su
cp -r $HOME/local/include/* /usr/local/include
cp -r $HOME/local/lib/* /usr/local/lib
-
Enter the meml directory
cd ../meml-0.7/
If you want to install MEML in your home directory gone on like this
./configure --prefix=$HOME/local/ CFLAGS="-Wall -W -O2 $CFLAGS $MEMLOPT -D__HAVE_UMFPACK -I$HOME/local/include/UMFPACK/"
If you are root privileges you can install the software system wide by
./configure --prefix=/usr/local/ CFLAGS="-Wall -W -O2 $CFLAGS $MEMLOPT -D__HAVE_UMFPACK -I$HOME/local/include/UMFPACK/"
-
now independently of the last order type now
make
make install
-
A program which uses MEML can e.g. be compiled in the following way:
gcc foo.c $LMEMLUMF -O2 -march=athlon-xp -o foo
troubleshooting
- ATLAS is missing g77 on e.g. SUSE 10
There is a dummin package for g77 in SUSE 10 because the name of g77 has changed in
this distribution
- ATLAS 3.6 and gcc 4.0
If ATLAS reports something like this:
ATLAS has detected that you are running on an x86 architecture
(eg., Athlon, P4, PIII, etc), but do not have a pre-2.96 gcc installed.
Using gcc 3/2.96 will result in a performance loss of 10-20%
...
In the meantime, we suggest you abondon this ATLAS install, and install a gcc
that delivers decent x86 performance, and restart the install then.
...
Stop ATLAS install? [y]:
Just type n. gcc 4.x is OK but newer than the ATLAS compiler test.
- ATLAS does not really know your CPU askes ...
Your architectural defaults do not include defaults for the
Level 1 BLAS. ATLAS now has the ability to tune the Level 1 BLAS to
your machine. However, this will add time to the install.
...
Tune the Level 1 BLAS? [y]:
Think about it. You will get a speed-up by saying yes but it may take
hours to tune the Level 1 BLAS for your machine.