-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME
97 lines (58 loc) · 2.72 KB
/
README
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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
YNFFT is a Yorick plugin for NFFT (nonequispaced fast Fourier transform).
Installation
============
1. Make sure you have installed the NFFT library from
<http://www-user.tu-chemnitz.de/~potts/nfft/>, the FFTW library from
<http://www.fftw.org/> and Yorick from <http://yorick.github.com/>.
2. Unpack the plug-in code somewhere.
3. Configure for compilation. There are two possibilities:
a/ For an "in-place" build, go to the source directory of the plug-in
code (where this README file is located) and run the configuration
script:
cd SRC_DIR
./configure --cflags=... --deplibs=...
For instance:
./configure --cflags='-I/usr/local/include' --deplibs='-L/usr/local/lib -lnfft3 -lfftw3'
or, to use OpenMP:
./configure --cflags='-I/usr/local/include -fopenmp -Ofast -march=native -mfpmath=sse -pedantic -pipe -std=c99' --deplibs='-L/usr/local/lib -lnfft3 -lnfft3_threads -lfftw3_threads -lfftw3'
To see the configuration options, call:
./configure --help
b/ To compile in a different build directory, say $BUILD_DIR, create the
build directory, go to the build directory, and run the configuration
script:
mkdir -p $BUILD_DIR
cd $BUILD_DIR
$SRC_DIR/configure --cflags=... --deplibs=...
where $SRC_DIR is the path to the source directory of the plug-in
code. To see the configuration options, call:
$SRC_DIR/configure --help
4. Compile the code:
make
5. Optionally, check the plugin:
make tests
You may have to set some environment variable for the dynamic loader
(LD_LIBRARY_PATH on Linux) if the NFFT library is installed in a
non-standard location, e.g.:
LD_LIBRARY_PATH=$PREFIX/lib make tests
4. Finally, install the plug-in in Yorick directories:
make install
Alternative installation method
===============================
Replace step No. 3 of the installation procedure (see above) by:
3.1. Edit the file "Makefile" and check the values of the variables
PKG_DEPLIBS, PKG_CFLAGS and PKG_LDFLAGS; for instance, assuming PREFIX
is a variable with the top directory where FFTW and NFFT libraries are
installed:
PKG_DEPLIBS=-L$(PREFIX)/lib -lnfft3 -lfftw3
PKG_CFLAGS=-I$(PREFIX)/include
PKG_LDFLAGS=
3.2. Update the paths in the file "Makefile" for compilation by executing
the following command:
yorick -batch make.i
where "yorick" can be replaced by the full path to your Yorick
interpreter if not installed in a standard location.
Credits
=======
* Yorick <http://yorick.github.com/>
* NFFT library <http://www-user.tu-chemnitz.de/~potts/nfft/>
* FFTW library <http://www.fftw.org/>