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
- 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
Application | Setting |
---|---|
Debugging | No impact |
Traceability | No impact |
Efficiency | No impact |
Safety precaution | No impact |
Programmatic Use
Parameter: GPUEnableMemoryManager |
Type: character vector |
Value: 'on' | 'off' |
Default: 'off' |
Version History
Introduced in R2021b