📄 plot_benchmarks.m.in
字号:
function plot_benchmarks(hostname)% function plot_benchmarks(hostname)%% $Id: plot_benchmarks.m.in,v 1.2 2004/03/22 11:03:40 patricg Exp $%% Copyright (c) 2001 Patrick Guio <patrick.guio@fys.uio.no>%% All Rights Reserved.%% This program is free software; you can redistribute it and/or modify it% under the terms of the GNU General Public License as published by the% Free Software Foundation; either version 2. of the License, or (at your% option) any later version.%% This program is distributed in the hope that it will be useful, but% WITHOUT ANY WARRANTY; without even the implied warranty of% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General% Public License for more details.%close allbench={'daxpy','haney','loop1','loop2','loop3','loop5','loop6','loop8',... 'loop9','loop10','loop11','loop12','loop13','loop14','loop15','loop16',... 'loop17','loop18','loop19','loop21','loop22','loop23','loop24','loop25',... 'loop36','stencil'};if nargin == 0, str=sprintf('@PACKAGE@-@VERSION@ benchmark on a %s', computer);else str=sprintf('@PACKAGE@-@VERSION@ benchmark on %s (%s)', hostname, computer);endstr=sprintf('%s\nCXX=@CXX@ CXXFLAGS=@CXXFLAGS@ @CXX_OPTIMIZE_FLAGS@', str);str=sprintf('%s\nF77=@F77@ FFLAGS=@FFLAGS@ @F77_OPTIMIZE_FLAGS@', str);if length('@FC@') str=sprintf('%s\nFC=@FC@ FCFLAGS=@FCFLAGS@ @FC_OPTIMIZE_FLAGS@', str);endstr=strrep(str,'_','\_');h=text(0.5,0.5,str);set(h,'HorizontalAlignment','center')set(h,'FontSize',18)set(h,'FontWeight','demi')set(gca,'visible','off')orient landscapeprint -dpsc benchmarks.psfor i=1:length(bench), eval(bench{i}) hs=get(gca,'children')'; for h=hs, set(h,'linewidth',1.5) , end legend orient landscape print -dpsc -append benchmarks.psend
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -