Main Content

Generate GPU code

Description

Use GPU Coder™ for CUDA® code generation.

Category: Code Generation

Settings

Default: Off

On

Enables code generation by using GPU Coder.

Off

Disables code generation by using GPU Coder.

Dependencies

  • This parameter requires a GPU Coder license.

  • To enable this parameter, select C++ for the Language and grt.tlc or ert.tlc for System target file.

  • Enabling Generate GPU code selects Support long long and Support long long parameters on the Hardware Implementation pane.

  • For an GRT-based system target file, enabling Generate GPU code changes the following parameters on the Code Generation > Optimization pane:

  • For an ERT-based system target file, enabling Generate GPU code changes the following parameters on the Code Generation > Optimization pane:

  • For an ERT-based system target file, enabling Generate GPU code selects Terminate function required (Embedded Coder) parameter on the Code Generation > Interface pane.

Command-Line Information

Parameter: GenerateGPUCode
Type: character vector
Value: 'CUDA' | 'none'
Default: 'none'

Related Topics