matlab 使用GPU

%% Use GPU if equipped. GPU significantly speeds up optimization.
if gpuDeviceCount>0
  fprintf('GPU detected. Trying to use it ...\n');
  try
    VV=gpuArray(VV);
    X1=gpuArray(X1);
    X2=gpuArray(X2);
    fprintf('Using GPU ...\n');
  catch
  end
end

你可能感兴趣的:(Matlab)