Main Content

Additional compiler flags


Specify additional flags to the NVIDIA® nvcc compiler.

Category: Simulation Target > GPU Acceleration


Default: ''

Pass 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.


  • This parameter requires a GPU Coder™ license.

  • This parameter is enabled by GPU acceleration on the Simulation Target pane.

Command-Line Information

Parameter: SimGPUCompilerFlags
Type: character vector
Value: '' or a valid user-specified flag
Default: ''

Related Topics