Code covered by the BSD License  

Highlights from
GPUBench

image thumbnail
from GPUBench by Ben Tordoff
Compare GPUs using standard numerical benchmarks in MATLAB.

gpubench.checkPCT()
function checkPCT()
%checkPCT  check that Parallel Computing Toolbox is installed and licensed

%   Copyright 2011 The MathWorks, Inc.


pctInstalled = exist( 'gpuArray', 'file' ) == 2;
if ~pctInstalled
    error( 'GPUBench:PCTNotInstalled', 'GPUBench requires Parallel Computing Toolbox which does not appear to be installed.' );
end

pctLicensed = license( 'test', 'distrib_computing_toolbox' );
if ~pctLicensed
    error( 'GPUBench:NoPCTLicense', 'No Parallel Computing Toolbox license was available.' );
end

Contact us