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 andgrt.tlc
orert.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:
Selects
None
for Leverage target hardware instruction set extensions.
For an ERT-based system target file, enabling Generate GPU code changes the following parameters on the Code Generation > Optimization pane:
Disables Generate parallel for-loops (Embedded Coder).
Selects
<empty>
for Disable incompatible optimizations.
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' |