function varargout = checkHardwareSupportPackageInstall()

% Check if the GPU Coder support package is installed.
   
%   Copyright 2019 The MathWorks, Inc.

varargout = {[]};

try
    fullpathToUtility = which('nvidiacoder.internal.getSpPkgRootDir');
    if isempty(fullpathToUtility)
        % Support package not installed - Error.
        error(getString(message('MATLAB:hwstubs:general:spkgNotInstalled', 'GPU Coder Support Package for NVIDIA GPUs', 'NVIDIA')));
    end
catch e
    throwAsCaller(e);
end
end