Main Content

Dynamic memory allocation threshold

Description

Specify the memory allocation threshold.

Category: Code Generation > GPU Code

Settings

Default: 200

Specify the size above which the private variables are allocated on the heap instead of the stack, as an integer value.

Dependencies

  • This parameter requires a GPU Coder™ license.

  • To enable this parameter, select Generate GPU code on the Code Generation pane.

Command-Line Information

Parameter: GPUMallocThreshold
Type: integer
Value: any valid value
Default: 200

Related Topics