Generate CUDA code for NVIDIA GPUs

GPU Coder™ generates optimized CUDA® code from MATLAB® code for deep learning, embedded vision, and autonomous systems. The generated code calls optimized NVIDIA CUDA libraries, including cuDNN, cuSolver, and cuBLAS. It can be integrated into your project as source code, static libraries, or dynamic libraries, and can be used for prototyping on GPUs such as the NVIDIA Tesla® and NVIDIA Tegra®. You can use the generated CUDA within MATLAB to accelerate computationally intensive portions of your MATLAB code. GPU Coder lets you incorporate legacy CUDA code into your MATLAB algorithms and the generated code.

When used with Embedded Coder®, GPU Coder lets you verify the numerical behavior of the generated code via software-in-the-loop (SIL) testing.


Generate CUDA from MATLAB

Generate CUDA code from your MATLAB algorithm as source code, a static or dynamic library, or a MEX file.

Learn more

Generate CUDA from Deep Learning Networks

Deploy deep learning networks to NVIDIA GPUs for inference.

Learn more

Optimize the Generated CUDA

Use memory copy minimization techniques, NVIDIA accelerated libraries, and design patterns to optimize the generated CUDA.

Learn more

Use Supported MATLAB Language and Toolboxes for Code Generation

Generate code from a broad range of MATLAB language features and toolboxes used for developing components of larger systems.

Learn more

Incorporate External CUDA with Generated Code

Integrate external CUDA into the generated code or call external CUDA functions in MATLAB via a MEX file.

Learn more

Generate MEX Functions for Acceleration and Verification

Call MEX functions to test and verify the compiled code in MATLAB and accelerate the execution.

Learn more

Run Generated Code on GPUs such as NVIDIA Tesla and Tegra

Run the generated CUDA on NVIDIA GPUs such as Tesla and Tegra.

Learn more

Use GPU Coder with Embedded Coder

Use Embedded Coder to extend the capabilities of GPU Coder.

Learn more

Product Resources

Discover more about GPU Coder by exploring these resources.


Explore documentation for GPU Coder functions and features, including release notes and examples.


Browse the list of available GPU Coder functions.

Technical Articles

View articles that demonstrate technical advantages of using GPU Coder.

Community and Support

Find answers to questions and explore troubleshooting resources.

Product Requirements

View product requirements for the latest release of GPU Coder.

Supported Functions

Browse the list of available GPU Coder functions.

Required Third-Party Software

Learn about the third-party software required for GPU Coder.

Hardware Support

Connect GPU Coder to hardware platforms.

Try or Buy

Get a Free Trial

Test drive GPU Coder.

Get a trial

Ready to Buy?

Purchase GPU Coder and explore related products.

Contact sales
Pricing and licensing

Have Questions?


Contact Bill Chou,
GPU Coder Technical Expert

Email Bill

Related Solutions

Use GPU Coder to solve scientific and engineering challenges:

News and Events

Embedded Vision Product of the Year 2018

Winner of the Best Software or Algorithm at the 2018 Vision Product of the Year Awards

Introducing Deep Learning with MATLAB