forked from schreiberx/sweet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
INSTALL
103 lines (74 loc) · 2.48 KB
/
INSTALL
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
98
99
100
101
102
103
******************
Note:
******************
There are scripts in the directory 'local_software' to make handling
external software requirements easier.
* ./install_*.sh
Build and install the 3rd party software automatically
Please note that this does not generate highly optimized 3rd party
software, but focusses on getting SWEET running.
* ./env_vars.sh
This script sets up all the environment variables to compile and run SWEET
After installing the software, you can use
source ./local_software/env_vars.sh
to setup your environment variables correctly
================
SCons:
================
SCons is required for building SWEET
http://www.scons.org/
OR
apt-get install scons
================
FFTW (Optional, but mandatory if Fourier space is required):
================
http://www.fftw.org/download.html
fftw-3.3.4.tar.gz
tar xzf fftw-3.3.4.tar.gz
Without MPI:
./configure --prefix=$HOME/local/sweet_support --with-our-malloc16 --enable-openmp --enable-avx --enable-shared
With MPI:
./configure --prefix=$HOME/local/sweet_support --with-our-malloc16 --enable-openmp --enable-avx --enable-mpi --enable-shared
make -j 4 install
For intel compiler, use e.g.:
./configure CC=icc CFLAGS="-gcc -xHost" --with-our-malloc16 --enable-openmp --enable-avx --prefix=$HOME/local/fftw-3.3.4
make install
OR
apt-get install libfftw3-dev
================
SDL (optional): Graphical user interface to simulations
================
The GUI depends on libSDL2
https://www.libsdl.org/
apt-get install libsdl2-dev
OR
Download http://libsdl.org/release/SDL2-2.X.X.tar.gz
./configure --prefix=$HOME/local/SDL2-2.0.3
make -j 4
make install
Add the SDL2-2.0.3 to manually installed libraries
enviromental variables to import them.
(Such as in $HOME/bin/local_vars.sh).
================
NUMA (optional): optimized memory allocation
================
Get libnuma from
ftp://oss.sgi.com/www/projects/libnuma/download/numactl-2.0.10.tar.gz
================
MPI - (Optional)
================
Get OpenMPI or other MPI parallelization library
http://www.open-mpi.org/software/ompi/v1.8/
openmpi-1.8.6.tar.bz2
tar xzf openmpi-1.8.6.tar.bz2
./configure --prefix=$HOME/local/sweet_support
make -j 4 install
================
PFFT
================
NOT YET REQUIRED (future work):
Get PFFT from the following website:
https://www-user.tu-chemnitz.de/~mpip/software.php#pfft
pfft-1.0.8-alpha.tar.gz
tar xzf pfft-1.0.8-alpha.tar.gz
./configure --prefix=$HOME/local/sweet_support