Main Content

Memory Manager

Enable use of memory manager

Since R2021b

Model Configuration Pane: Code Generation / GPU Code

Description

The Memory Manager parameter specifies whether to use GPU memory manager for memory allocation and management. Using GPU memory manager reduces the number of memory allocation calls and improves run-time performance.

Dependencies

  • This parameter requires a GPU Coder™ license.

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

Settings

off (default) | on
On

The GPU memory manager creates a collection of large GPU memory pools and manages allocation and deallocation of chunks of memory blocks within these pools. By creating large memory pools, the memory manager reduces the number of calls to the CUDA® memory APIs, improving run-time performance. You can use the GPU memory manager for MEX and standalone CUDA code generation.

Off

Disable the use GPU memory manager for memory allocation and management.

Recommended Settings

ApplicationSetting
DebuggingNo impact
TraceabilityNo impact
EfficiencyNo impact
Safety precautionNo impact

Programmatic Use

Parameter: GPUEnableMemoryManager
Type: character vector
Value: 'on' | 'off'
Default: 'off'

Version History

Introduced in R2021b