function varargout = checkHardwareSupportPackageInstall()

% Check if the support package is installed.
   
%   Copyright 2019-2021 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', 'MATLAB Coder Support Package for NVIDIA Jetson and NVIDIA DRIVE Platforms', 'NVIDIA')));
    end
catch e
    throwAsCaller(e);
end
end