-
Notifications
You must be signed in to change notification settings - Fork 23
/
Copy pathcompileMEXfunctions.m
executable file
·73 lines (66 loc) · 1.9 KB
/
compileMEXfunctions.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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
%% Compile MEX functions
clear
%% liblinear
cd function/base/linearSVM/liblinear-2.1/matlab/
make
cd ../../../../../
%% libsvm
cd function/base/SVM/libsvm-3.21/matlab/
make
cd ../../../../../
%% MIToolbox
cd function/OutSource/MIToolbox-v3.0.1\matlab
CompileMIToolbox
cd ../../../../
%% SLEEC
try
cd function/OutSource/SLEECcode/
catch
warning('you need to download SLEEC code and set function/OutSource/SLEECcode, see README');
end
try
make_SLEEC
catch
warning('failed to compile SLEEC...');
end
cd ../../../
%% FastXMLs
try
cd function/OutSource/FastXML_PfastreXML/Tools/matlab
catch
warning('you need to download FastXML_PfastreXML and set function/OutSource/, see README');
end
try
make
catch
warning('failed to compile FastXML');
end
cd ../../../../../
%% BMaD (asso)
cd function/OutSource/mdl4bmf/
try
makeasso
catch
warning('failed to compile asso functions')
end
cd ../../../
%% Rembrandit % gave up to read the source codes
% cd function/OutSource/randembed-master/matlab
% if ispc
% try
% mex OPTIMFLAGS="/O2" -largeArrayDims -DNUM_THREADS=1 chofactor.cpp -lmwblas -lmwlapack
% mex OPTIMFLAGS="/O2" -largeArrayDims -DNUM_THREADS=1 chosolve.cpp -lmwblas -lmwlapack
% mex OPTIMFLAGS="/O2" -largeArrayDims -DNUM_THREADS=1 dmsm.cpp -lmwblas -lmwlapack
% mex OPTIMFLAGS="/O2" -largeArrayDims -DNUM_THREADS=1 fastexpprob.cpp -lmwblas -lmwlapack
% mex OPTIMFLAGS="/O2" -largeArrayDims -DNUM_THREADS=1 fastsoftmax.cpp -lmwblas -lmwlapack
% mex OPTIMFLAGS="/O2" -largeArrayDims -DNUM_THREADS=1 sparsequad.cpp -lmwblas -lmwlapack
% mex OPTIMFLAGS="/O2" -largeArrayDims -DNUM_THREADS=1 sparseweightedsum.cpp -lmwblas -lmwlapack
% catch
% warning('rembrandit failed')
% end
% elseif isunix
% !make
% else
% error('rembrendit does not support MAC hehehe')
% end
%Add newmethods