Dynamic memory allocation threshold
R2026b(Removed) Size above which private variables are allocated on heap instead of stack
Model Configuration Pane: Simulation Target / GPU Acceleration
The Dynamic memory allocation threshold parameter has been removed. To limit the amount of stack memory used per GPU thread, use the Stack size per GPU thread parameter.
Description
The Dynamic memory allocation threshold parameter specifies the memory allocation threshold.
Dependencies
This parameter requires a GPU Coder™ license.
This parameter is enabled by GPU acceleration on the Simulation Target pane.
Settings
200 (default) | integer
Specify the size above which the private variables are allocated on the heap instead of the stack, as an integer value.
Recommended Settings
| Application | Setting |
|---|---|
| Debugging | No impact |
| Traceability | No impact |
| Efficiency | No impact |
| Safety precaution | No impact |
Programmatic Use
Parameter:
SimGPUMallocThreshold |
| Type: integer |
| Value: any valid value |
Default:
200 |