Skip to content

Latest commit

 

History

History
46 lines (25 loc) · 2.3 KB

File metadata and controls

46 lines (25 loc) · 2.3 KB

Troubleshooting Guide

This directory contains troubleshooting tips for the AutoDRIVE Simulink API, which can help debug build/runtime errors, and assist in installing the necessary dependencies and setting up the correct configuration.

Potential Errors:

Some of the examples require code generation, which may lead to build errors if not installed.

Some of the examples require GPU code generation, which may lead to build errors if not installed properly.

The MEX compiler setup is version-specific and can lead to version-mismatch errors if not installed properly.

Potential Fixes:

Download and install the MATLAB Support for MinGW-w64 C/C++/Fortran Compiler support package. This can also be done using MATLAB Add-On Explorer.

Setup the GPU MEX compiler by following the steps below:

  1. Install Microsoft Visual Studio with Desktop development with C++ workload selected [Tested with Visual Studio 2019 (V16.11.49)]

  2. Install NVIDIA CUDA [Tested with CUDA 11.8 (V11.8.89)]

Note

It is important to install CUDA after installing Visual Studio so that CUDA can configure Visual Studio settings during installation.

  1. Setup the MEX Compiler by running mex -setup C and mex -setup C++ in MATLAB Command Window and selecting Microsoft Visual C++ 2019 (C) as the compiler.

  2. Set the Simulink build process toolchain to NVIDIA CUDA (w/Microsoft Visual C++ 2019) | nmake (selecting Automatically locate an installed toolchain should choose this already)

Warning

  • MATLAB/Simulink requires specific versions of Visual Studio and CUDA to be installed. Please refer to the official GPU Coder requirements here.
  • MATLAB/Simulink is known to have trouble working with Visual Studio 2022. Please refer to an official thread about this issue here.