判断电脑的系统性能,并开启并行运算
%--------------------------------------------------------------------------
clear;clc;close all
% Find capabilities of computer so we can best utilize them.
% Find if gpu is present
ngpus=gpuDeviceCount;
disp([num2str(ngpus) ' GPUs found'])
if ngpus>0
lgpu=1;
disp('GPU found')
useGPU='yes';
else
lgpu=0;
disp('No GPU found')
useGPU='no';
end
% F