Additional compiler flags
Pass additional flags to GPU compiler
Model Configuration Pane: Simulation Target / GPU Acceleration
Description
The Additional compiler flags parameter specifies additional flags to the NVIDIA® nvcc compiler.
Dependencies
This parameter requires a GPU Coder™ license.
This parameter is enabled by GPU acceleration on the Simulation Target pane.
Settings
'' (default) | argument-listPass additional flags to the GPU compiler. For example, --fmad=false instructs the nvcc compiler to disable contraction of floating-point multiply and add to a single Floating-Point Multiply-Add (FMAD) instruction.
For similar NVIDIA compiler options, see the topic on NVCC Command Options in the CUDA® Toolkit documentation.
Recommended Settings
| Application | Setting |
|---|---|
| Debugging | No impact |
| Traceability | No impact |
| Efficiency | No impact |
| Safety precaution | No impact |
Programmatic Use
Parameter: SimGPUCompilerFlags |
| Type: character vector |
Value: '' or a valid user-specified flag |
Default: '' |
Version History
Introduced in R2020b