Code covered by the BSD License  

Highlights from
ICC_mex_tools

image thumbnail

ICC_mex_tools

by

 

09 Nov 2012 (Updated )

These tools provide a simple interface to Intel C++ compiler optimization features.

mex_ICC_O3(config)
function mex_ICC_O3(config)
%MEX_ICC_DEBUG uses ICC12 with general O3 optimization options
% see intelc12_O3.bat for more details

clc
clear mex

c=mex.getCompilerConfigurations;
if ~strcmp(c.Name,'Intel C++')
    warning('this file was supposed to be used with Intel C++ compilers');
end

mex(...
        'OPTIMFLAGS=/O3 /DNDEBUG /Qopenmp /QxSSE4.1  /Qopenmp-report:2 /Qvec-report2 /Qopt-report1',...
        config.cpp_file,...
        '-outdir', config.outdir,...
        ...'-g',...             
        '-largeArrayDims',...        
        '-v'...
    )



end

Contact us