File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 41
41
retval = input (sprintf([' Potentially compatible precompiled mex files found. ' , ...
42
42
' Please select an option:\n ' , ...
43
43
' 1) Use the precompiled mex files (default).\n ' , ...
44
- ' 2) Compile new mex files from source.\n ' , ...
44
+ ' 2) Compile new mex files from source (recommended) .\n ' , ...
45
45
' Answer (1 or 2): ' ]), ' s' );
46
46
end
47
47
if isempty(retval )
88
88
disp (' Attempting to compile the source code...' );
89
89
if isoctave
90
90
try
91
- mkoctfile - std = c ++ 11 --mex --output ./ inst / boot ./ src / boot .cpp
91
+ mkoctfile - O3 - march = native --mex --output ./ inst / boot ./ src / boot .cpp
92
92
catch
93
93
errflag = true ;
94
94
err = lasterror();
95
95
disp (err .message );
96
96
warning (' Could not compile boot.%s . Falling back to the (slower) boot.m file.' , mexext )
97
97
end
98
98
try
99
- mkoctfile - std = c ++ 11 --mex --output ./ inst / smoothmedian ./ src / smoothmedian .cpp
99
+ mkoctfile - O3 - march = native --mex --output ./ inst / smoothmedian ./ src / smoothmedian .cpp
100
100
catch
101
101
errflag = true ;
102
102
err = lasterror();
112
112
disp(err .message );
113
113
end
114
114
try
115
- mex CXXFLAGS="$CXXFLAGS -std=c++11 " -output ./inst/boot ./src/boot.cpp
115
+ mex CXXFLAGS="$CXXFLAGS -O3 -march=native " -output ./inst/boot ./src/boot.cpp
116
116
catch
117
117
errflag = true ;
118
118
err = lasterror ();
119
119
disp (err .message );
120
120
warning (' Could not compile boot.%s . Falling back to the (slower) boot.m file.' , mexext )
121
121
end
122
122
try
123
- mex CXXFLAGS="$CXXFLAGS -std=c++11 " -output ./inst/smoothmedian ./src/smoothmedian.cpp
123
+ mex CXXFLAGS="$CXXFLAGS -O3 -march=native " -output ./inst/smoothmedian ./src/smoothmedian.cpp
124
124
catch
125
125
errflag = true ;
126
126
err = lasterror();
Original file line number Diff line number Diff line change 1
1
make :
2
- -mkoctfile -std=c++11 --mex --output ../inst/boot ./boot.cpp
3
- -mkoctfile -std=c++11 --mex --output ../inst/smoothmedian ./smoothmedian.cpp
2
+ -mkoctfile -O3 -march=native --mex --output ../inst/boot ./boot.cpp
3
+ -mkoctfile -O3 -march=native --mex --output ../inst/smoothmedian ./smoothmedian.cpp
You can’t perform that action at this time.
0 commit comments