checkPCT check that Parallel Computing Toolbox is installed and licensed
0001 function checkPCT() 0002 %checkPCT check that Parallel Computing Toolbox is installed and licensed 0003 0004 % Copyright 2011 The MathWorks, Inc. 0005 0006 0007 pctInstalled = exist( 'gpuArray', 'file' ) == 2; 0008 if ~pctInstalled 0009 error( 'GPUBench:PCTNotInstalled', 'GPUBench requires Parallel Computing Toolbox which does not appear to be installed.' ); 0010 end 0011 0012 pctLicensed = license( 'test', 'distrib_computing_toolbox' ); 0013 if ~pctLicensed 0014 error( 'GPUBench:NoPCTLicense', 'No Parallel Computing Toolbox license was available.' ); 0015 end