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_view_profileloop( filename )
function  mex_view_profileloop( filename )
%OPENLPXML opens profiler report .xml generated by mex,
% compiled with mex_ICC_O3_profileloop.m
%
% if no filename is provided, it last report is opened
%
% JRE should be installed
% it could be downloaded from here:
% http://www.oracle.com/technetwork/java/javase/downloads/index.html
% 
% more info from intel docs:
% http://software.intel.com/sites/products/documentation/doclib/stdxe/2013/composerxe/compiler/cpp-win/hh_goto.htm#GUID-96F454BF-364A-40C9-9B55-BFFAA8FD171D.htm

clear mex

if ~exist('filename','var')
    f=dir('loop_prof*.xml');
    [~,si]=sort([f.datenum]);
    fs=f(si);
    filename = fs(1).name;
end

dos(['"%ICPP_COMPILER13%\Bin\Intel64\loopprofileviewer.bat" ' filename])
end

Contact us