Main Content

MATLAB Algorithm Design for GPU

R2026b
MATLAB® language syntax and functions for code generation

To generate code, GPU Coder™ requires that your MATLAB algorithms be compatible with MATLAB Coder™. To view programming requirements and best practices for MATLAB Coder, see MATLAB Programming for Code Generation.

MATLAB Language Features Support for GPU Coder

Use the MATLAB language capabilities that GPU Coder supports.

Functions and Objects Supported for GPU Code Generation

Use MATLAB functions that you can generate GPU code from.

Language, Function, and Object Support

MATLAB language features, functions, classes, and System objects supported for C and C++ code generation

Data Definition

How defining data for code generation differs from defining data for MATLAB

Function Definition

Defining and calling functions for code generation