主要内容

Malloc threshold

(To be removed) Malloc threshold

The Malloc threshold parameter will be removed in a future release. To limit the amount of stack memory used per GPU thread, use the Stack limit parameter.

Description

App Configuration Pane: GPU Code

Configuration Objects: coder.GpuCodeConfig

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 (default) | integer

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

collapse all