-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
161 lines (112 loc) · 6.01 KB
/
Makefile
File metadata and controls
161 lines (112 loc) · 6.01 KB
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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
cfastcov_dir := cfastcov/
cfastcov := $(cfastcov_dir)twobessel.c $(cfastcov_dir)utils.c $(cfastcov_dir)utils_complex.c
opt_home := -std=c99 -Wno-missing-braces -Wno-missing-field-initializers \
-I/usr/local/include -L/usr/local/lib -lgsl -lfftw3 -lgslcblas -lm -g -O3 \
-std=gnu99 -ffast-math -funroll-loops -L../cosmolike_core/class -lclass
opt_ocelote := -std=c99 -Wno-missing-braces -Wno-missing-field-initializers \
-I/cm/shared/uaapps/gsl/2.1/include -L/cm/shared/uaapps/gsl/2.1/lib \
-lfftw3 -lgsl -lgslcblas -lm -g -O3 \
-ffast-math -funroll-loops -std=gnu99 -L../cosmolike_core/class -lclass
opt_puma := -std=c99 -Wno-missing-braces -Wno-missing-field-initializers \
-I/opt/ohpc/pub/libs/gnu8/gsl/2.6/include -L/opt/ohpc/pub/libs/gnu8/gsl/2.6/lib \
-lfftw3 -lgsl -lgslcblas -lm -g -O3 \
-ffast-math -funroll-loops -std=gnu99 -L../cosmolike_core/class -lclass
cfftlog_dir := ../cosmolike_core/cfftlog/
cfftlog := $(cfftlog_dir)cfftlog.c $(cfftlog_dir)utils.c $(cfftlog_dir)utils_complex.c
home:
make home_shared
make home_datav
make home_cov
home_datav:
gcc like_fourier.c -o ./like_fourier $(opt_home) -DNOMPP
home_datav_wfirstxso:
gcc like_fourier_wfirstxso.c -o ./like_fourier_wfirstxso $(opt_home) -DNOMPP
home_datav_1sample:
gcc like_fourier.c -o ./like_fourier_1sample $(opt_home) -DONESAMPLE
home_datav_1sample_outlier:
gcc like_fourier_fast_outlier.c -o ./like_fourier_1sample_outlier $(opt_home) -DONESAMPLE
home_datav_1sample_nooutlier:
gcc like_fourier_fast_nooutlier.c -o ./like_fourier_1sample_nooutlier $(opt_home) -DONESAMPLE
home_datav_outext:
gcc like_fourier_fast_outext.c -o ./like_fourier_outext $(opt_home) -DNOMPP
home_datav_1sample_outext:
gcc like_fourier_fast_outext.c -o ./like_fourier_1sample_outext $(opt_home) -DONESAMPLE
home_datav_outext_2-island:
gcc like_fourier_fast_outext_2-island.c -o ./like_fourier_outext_2-island $(opt_home) -DNOMPP
home_datav_1sample_outext_2-island:
gcc like_fourier_fast_outext_2-island.c -o ./like_fourier_1sample_outext_2-island $(opt_home) -DONESAMPLE
home_datav_outext_tests:
gcc like_fourier_fast_outext_tests.c -o ./like_fourier_outext_tests $(opt_home)
home_datav_outmodel:
gcc like_fourier_fast_outmodel.c -o ./like_fourier_outmodel $(opt_home) -DNOMPP
gcc like_fourier_fast_outmodel.c -o ./like_fourier_outmodel_1sample $(opt_home) -DNOMPP -DONESAMPLE
home_des:
gcc like_fourier_desxplanck.c -o ./like_fourier_desxplanck $(opt_home)
home_deslib:
gcc -shared -o like_fourier_desxplanck.so -fPIC like_fourier_desxplanck.c $(opt_home)
home_cov:
gcc compute_covariances_fourier.c -o ./compute_covariances_fourier $(opt_home)
home_cov_wfirstxso:
gcc compute_covariances_fourier_wfirstxso.c -o ./compute_covariances_fourier_wfirstxso $(opt_home)
home_cov_binned:
gcc compute_covariances_fourier_binned.c -o ./compute_covariances_fourier_binned $(opt_home)
home_cov_1sample:
gcc compute_covariances_fourier.c -o ./compute_covariances_fourier_1sample $(opt_home) -DONESAMPLE
home_cov_1sample_ztrue:
gcc compute_covariances_fourier_ztrue.c -o ./compute_covariances_fourier_1sample_ztrue $(opt_home) -DONESAMPLE
home_shared:
gcc -shared -o like_fourier.so -fPIC like_fourier.c $(opt_home)
gcc -shared -o like_fourier_1sample.so -fPIC like_fourier.c $(opt_home) -DONESAMPLE
home_shared_fast_outmodel:
gcc -shared -o like_fourier_outmodel.so -fPIC like_fourier_fast_outmodel.c $(opt_home)
gcc -shared -o like_fourier_outmodel_1sample.so -fPIC like_fourier_fast_outmodel.c $(opt_home) -DONESAMPLE
home_shared_wfirstxso:
gcc -shared -o like_fourier_wfirstxso.so -fPIC like_fourier_wfirstxso.c $(opt_home)
home_shared_fast:
gcc -shared -o like_fourier.so -fPIC like_fourier_fast.c $(opt_home)
gcc -shared -o like_fourier_1sample.so -fPIC like_fourier_fast.c $(opt_home) -DONESAMPLE
home_datav_fast:
gcc like_fourier_fast.c -o ./like_fourier $(opt_home)
gcc like_fourier_fast.c -o ./like_fourier_1sample $(opt_home) -DONESAMPLE
home_datav_fast_testnans:
gcc like_fourier_fast_testnans.c -o ./like_fourier_testnans $(opt_home)
home_datav_fast_12mpc:
gcc like_fourier_fast_12Mpc.c -o ./like_fourier_12Mpc $(opt_home)
gcc like_fourier_fast_12Mpc.c -o ./like_fourier_1sample_12Mpc $(opt_home) -DONESAMPLE
ocelote:
make ocelote_shared
make ocelote_datav
make ocelote_cov
ocelote_datav:
gcc like_fourier.c -o ./like_fourier $(opt_ocelote)
ocelote_cov:
gcc compute_covariances_fourier.c -o ./compute_covariances_fourier $(opt_ocelote)
ocelote_cov_binned:
gcc compute_covariances_fourier_binned.c -o ./compute_covariances_fourier_binned $(opt_ocelote)
ocelote_cov_wfirstxso:
gcc compute_covariances_fourier_wfirstxso.c -o ./compute_covariances_fourier_wfirstxso $(opt_ocelote)
ocelote_cov_1sample:
gcc compute_covariances_fourier.c -o ./compute_covariances_fourier_1sample $(opt_ocelote) -DONESAMPLE
ocelote_shared:
gcc -shared -o like_fourier.so -fPIC like_fourier.c $(opt_ocelote)
gcc -shared -o like_fourier_1sample.so -fPIC like_fourier.c $(opt_ocelote) -DONESAMPLE
ocelote_shared_fast:
gcc -shared -o like_fourier.so -fPIC like_fourier_fast.c $(opt_ocelote)
gcc -shared -o like_fourier_1sample.so -fPIC like_fourier_fast.c $(opt_ocelote) -DONESAMPLE
ocelote_shared_wfirstxso:
gcc -shared -o like_fourier_wfirstxso.so -fPIC like_fourier_wfirstxso.c $(opt_ocelote)
ocelote_des:
gcc like_fourier_desxplanck.c -o ./like_fourier_desxplanck $(opt_ocelote)
ocelote_deslib:
gcc -shared -o like_fourier_desxplanck.so -fPIC like_fourier_desxplanck.c $(opt_ocelote)
ocelote_shared_fast_outmodel:
gcc -shared -o like_fourier_fast_outmodel.so -fPIC like_fourier_fast_outmodel.c $(opt_ocelote)
###### Puma
puma_shared_fast:
gcc -shared -o like_fourier.so -fPIC like_fourier_fast.c $(opt_puma)
gcc -shared -o like_fourier_1sample.so -fPIC like_fourier_fast.c $(opt_puma) -DONESAMPLE
puma_shared_fast_outmodel:
gcc -shared -o like_fourier_fast_outmodel.so -fPIC like_fourier_fast_outmodel.c $(opt_puma)
gcc -shared -o like_fourier_fast_outmodel_1sample.so -fPIC like_fourier_fast_outmodel.c $(opt_puma) -DONESAMPLE
puma_cov:
gcc compute_covariances_fourier.c -o ./compute_covariances_fourier $(opt_puma)