Code covered by the MathWorks Limited License

Highlights from
GPUBench

image thumbnail

GPUBench

by

 

05 Dec 2011 (Updated )

Compare GPUs using standard numerical benchmarks in MATLAB.

Editor's Notes:

This file was selected as MATLAB Central Pick of the Week

gpubench.checkMATLABVersion()
function checkMATLABVersion()
%checkMATLABVersion  error if the MATLAB version is not suitable

%   Copyright 2011 The MathWorks, Inc.

v = ver('MATLAB');
v = regexp( v.Version, '(?<major>\d+)\.(?<minor>\d+)', 'names' );
v.major = str2double( v.major );
v.minor = str2double( v.minor );
if (v.major < 7) || ((v.major==7) && (v.minor<13))
    error( 'GPUBench:MATLABVersion', 'GPUBench requires MATLAB version 7.13 (R2011b) or higher' );
end

Contact us