Main Content

Dynamic memory allocation threshold


Specify the memory allocation threshold.

Category: Code Generation > GPU Code


Default: 200

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


  • 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