Drop me a line to let me know whether you were able to install FLENS or not: firstname.lastname@example.org
Requirements: What you need before you install FLENS
FLENS requires a working BLAS and LAPACK implementation on your system. You also need CBLAS a C interface for BLAS on your system. This should not be a problem as for all Unix systems there are either pre-compiled packages or it is easy to compile and install these libraries by your self.
FLENS should compile with:
- gcc version 4 or higher,
- Intel C++ compiler (icc) version 9.1,
- Pathscale (pathCC): GNU gcc version 3.3.1, PathScale 2.3.1 driver.
There a different BLAS and LAPACK implementations you can use:
- ATLAS and LAPACK
- Intel Math Kernel Library (MKL)
- AMD Core Math Library
- if your favorite BLAS/LAPACK implementation is missing let me know...
Platforms I am using myself and where FLENS should work without any problems:
- Mac OS X: FLENS should run out of the box. FLENS ships with an appropriate config file. See below for details
- Ubuntu Linux: all you need to install an excellent BLAS and LAPACK is
FLENS should install without any problems.
apt-get install atlas3-base atlas3-headers lapack3-pic refblas3-dev
I also use FLENS on an SUSE Opteron cluster. But I guess the paths and packages there are not quite standard.
Download the latest CVS-Snapshot
The latest snapshot from CVS is available at SOURCEFORGE.NET.
- Setup configuration for FLENS:
In the FLENS-lite directory are several config.* files. Among these are:
config.macosx (for Mac OS X users) config.ubuntu (for Ubuntu users) config.sun_ulm (for OUR students!)
- If you belong to a listed user group rename your config.* to config.
- Otherwise take the config-template that is closest to your system and adapt it to your system.
Here the config.ubuntu file:
You see: just specify
CXX = g++ CXXFLAGS += -Wall -g -O3 -fPIC INCDIRS += -I. DYLIB_EXT = so CXXDYLIB = -shared LDFLAGS += -llapack -latlas -lblas
- your compiler and compiler flags ,
- the BLAS and LAPACK libraries you wish to link against.
- If you can provide me configure files for other systems I would appreciate it.
- If you have problems let me know or join and contact the mailing list!
- Compile FLENS:
- Install FLENS:
- You can either install FLENS system wide (if you have root privileges) or install FLENS in a subdirectory of your home directory (that allows you to test FLENS quick and easy).
- Install FLENS in a local directory inside your home directory
Setup your environment such that the linker can find FLENS. Of course you should adapt the path to your needs:
- On Linux
- On Mac OS X
- The Makefile in examples and tutorials will translate all files with ending *.cc. This Makefile is kept very simple. It is supposed to be convenient if you implement small examples where everything is in one source file.
- On Linux
- Install FLENS system wide
Doingwith root privileges will install FLENS system wide:
- Headers will be copied into /usr/local/include/flens
- Shared libraries (or dynamic libraries) will be copied into /usr/local/lib
PREFIX = /opt/local/ CXX = g++ CXXFLAGS += -Wall -g -O3 -fPIC INCDIRS += -I. DYLIB_EXT = so CXXDYLIB = -shared LDFLAGS += -llapack -L /usr/lib/atlas -lblas
- Headers will be copied into /opt/local/include/flens
- Shared libraries (or dynamic libraries) will be copied into /opt/local/lib
Obtain FLENS from CVS
If you want a bleeding edge version of FLENS obtain it via CVS:
export CVSROOT=:pserver:email@example.com:/cvsroot/flens export CVS_RSH=ssh cvs login cvs -z3 co -P FLENS-lite