forked from sdemyanov/ConvNet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompile.m
50 lines (45 loc) · 1.31 KB
/
compile.m
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
clear mex
kBuildFolder = './c++/build';
if (~exist(kBuildFolder, 'dir'))
mkdir(kBuildFolder);
end;
mex ./c++/cnntrain_mex.cpp ...
"./c++/sources/*.cpp" ...
-I"./c++/include/" ...
-lut ...
-outdir ./c++/build ...
-largeArrayDims ...
COMPFLAGS="$COMPFLAGS /openmp" ...
CXXFLAGS="\$CXXFLAGS -fopenmp" ...
LDFLAGS="\$LDFLAGS -fopenmp";
disp('cnntrain_mex compiled');
mex ./c++/cnntrain_inv_mex.cpp ...
"./c++/sources/*.cpp" ...
-I"./c++/include/" ...
-lut ...
-outdir ./c++/build ...
-largeArrayDims ...
COMPFLAGS="/openmp $COMPFLAGS" ...
CXXFLAGS="\$CXXFLAGS -fopenmp" ...
LDFLAGS="\$LDFLAGS -fopenmp";
disp('cnntrain_inv_mex compiled');
mex ./c++/classify_mex.cpp ...
"./c++/sources/*.cpp" ...
-I"./c++/include/" ...
-lut ...
-outdir ./c++/build ...
-largeArrayDims ...
COMPFLAGS="$COMPFLAGS /openmp" ...
CXXFLAGS="\$CXXFLAGS -fopenmp" ...
LDFLAGS="\$LDFLAGS -fopenmp";
disp('classify_mex compiled');
mex ./c++/genweights_mex.cpp ...
"./c++/sources/*.cpp" ...
-I"./c++/include/" ...
-lut ...
-outdir ./c++/build ...
-largeArrayDims ...
COMPFLAGS="$COMPFLAGS /openmp" ...
CXXFLAGS="\$CXXFLAGS -fopenmp" ...
LDFLAGS="\$LDFLAGS -fopenmp";
disp('genweights_mex compiled');