Commit 542cf3b8 authored by Jean-Eric Campagne's avatar Jean-Eric Campagne
Browse files

(JEC) 8/5/15 polish README

parent 3c747f1b
......@@ -45,36 +45,44 @@ If the variable `CBLAS` is defined then the code of laguerreTransform.cc use the
# Compilation
> edit Makefile and adapat to local platform :
1) adapt to the type of Machine MacOSX (Darwin) vs Linux
2) adapt the location of the libsharp library (SHARPDIR)
3) on Linux adapt the location of BLAS/OpenBLAS
also update the LD_LIBRARY_PATH to get the OpenBLAS shared
library avaliable at run time
1. edit Makefile and adapat to local platform :
* adapt to the type of Machine MacOSX (Darwin) vs Linux
* adapt the location of the libsharp library (SHARPDIR)
* on Linux adapt the location of BLAS/OpenBLAS
* also update the **LD\_LIBRARY\_PATH** to get the OpenBLAS shared library avaliable at run time:
csh> setenv LD_LIBRARY_PATH <dir>/OpenBLAS/lib:${LD_LIBRARY_PATH}
bassh> LD_LIBRARY_PATH=<dir>/OpenBLAS/lib:${LD_LIBRARY_PATH}; export $LD_LIBRARY_PATH
4) then the make depends on the plateform and if you have BLAS
```
> make MACH=Linux BLAS=1 : on Linux with BLAS ON
> make : (default) on Darwin and use Accelerate Framework
```
The result of "make" is binanry file under ./Objs directory as well as `lagsht.a` library
2. Then the make depends on the plateform and if you have BLAS
* make MACH=Linux BLAS=1 : on Linux with BLAS ON
* make : (default) :
- will select the system thanks tu uname shell function: if on Linux + No BLAS, if on Darwin use Accelerate
Framework.
The result of "make" is binanry file under ./bin directory as well as `lagsht.a` library in ./lib
> make check
runs a computation of the Nodes & Weights for N=1024
3. make check
It runs a computation of the Nodes & Weights for N=1024
and compare to the xxx.txt.TEST files to produce a
Numerical Error estimate.
> make fullcheck
runs a series of `lagsht_testsuite` which activates different parts of the code and shows how-to call this test program.
> make install
install the <src>/headers files to <root>/include/LagSHT
then one should use -I<root>/include/LagSHT in their makefile.
If one wants a different location then look at INCL variable
4. make fullcheck
It runs a series of `lagsht_testsuite` which activates different parts of the code and shows how-to call this test program.
5. make install
* install the \<root\>/src/headers files to \<root\>/include/LagSHT
* then one should use -I<root>/include/LagSHT in their makefile.
* If one wants a different location then look at INCL variable
in the Makefile.
Similarly, the library is in <root>/lib but one can switch to
another location by modifying the LIB variable in the
Makefile.
# Plateform tested
Mac OS X 10.9.5 + gcc 4.8.4
Linux SLC 6.6 + gcc 4.9.1 20140922
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment