Use memcpy for vector assignment - Whether to enable memcpy optimization - MATLAB (original) (raw)
Main Content
Whether to enable memcpy
optimization
Description
App Configuration Pane: Advanced
Configuration Objects: coder.MexCodeConfig | coder.CodeConfig | coder.EmbeddedCodeConfig
The Use memcpy for vector assignment parameter specifies whether to use the memcpy
optimization. To optimize code that copies consecutive array elements, the memcpy
optimization replaces the code with a memcpy
call. When the number of elements to copy is known at compile time, the code generator uses the Memcpy threshold (bytes) parameter to determine whether to use the optimization. For more information, see memcpy Optimization.
Dependencies
To enable this parameter, select Use memcpy for vector assignment.
Settings
On
Uses the memcpy
optimization, if possible. This value is the default value.
Off
Does not use the memcpy
optimization.
Programmatic Use
**Property:**EnableMemcpy |
---|
Values: true |false |
Default: true |
Version History
Introduced in R2011a
By default, the Use memcpy for vector assignment parameter is enabled in the GPU Coderâ„¢ app. At the command line, creating a coder.gpuConfig (GPU Coder) configuration object setsEnableMemcpy
to true
. In previous releases, GPU Coder disabled this parameter, and you could not enable it in the GPU Coder app or the command line.