Main Content

Malloc threshold

Malloc threshold

Description

App Configuration Pane: GPU Code

Configuration Objects: coder.gpuConfig

The Malloc threshold parameter specifies the size in bytes above which the code generator allocates private variables on the heap instead of the stack.

Settings

200

This setting is the default setting.

Allocates memory on the heap for private variables that are larger than 200 bytes.

integer

Allocates memory on the heap for private variables that are larger than the specified value.

Programmatic Use

Property: MallocThreshold
Values: 200 | integer
Default: 200

Version History

Introduced in R2018a