function gpucoderSetup
%
% GPUCODERSETUP Verify the GPU code generation environment
%
%   GPUCODERSETUP is a GUI-based application that can be used to 
%   setup and verify the GPU code generation environment. The user can select 
%   the path to various CUDA and Deep Learning libraries, and run code 
%   generation and execution tests to verify if all the necessary libraries
%   have been installed correctly. This tool can be launched using the 
%   command:
%
%   >> GPUCODERSETUP
%
%   CODER.CHECKGPUINSTALL is the equivalent command-line interface which 
%   performs the same checks and can be invoked using the "coder.gpuEnvConfig"
%   config object.
%   
%   Example:
%       gpuEnvObj = coder.gpuEnvConfig;
%       gpuEnvObj.GpuId = 0;
%       gpuEnvObj.BasicCodeexec = 1;
%       results = coder.checkGpuInstall(gpuEnvObj);
%
%   See also coder.checkGpuInstall, coder.gpuEnvConfig, gpuDevice, codegen, setenv, getenv

%
%   Copyright 2017-2019 The MathWorks, Inc.
% 

try
    stack = dbstack;
    coder.internal.checkIfPlatformIsSupported(stack(1).name);
    coder.internal.gpucoderSetupImpl;
catch e
    throw(e);
end

end