cudaMemoryManager
Description
The gpucoder.MemoryManager object contains properties that
      describe the memory usage by the shared GPU memory manager for MEX functions. To create a
        gpucoder.MemoryManager object, use the
        cudaMemoryManager function. To free unused GPU memory allocated by the
      memory manager, use the object function freeUnusedMemory. 
Creation
Description
memoryManager = cudaMemoryManager
The GPU memory manager performs efficient allocation and deallocation of GPU memory.
          The memory manager returned by the cudaMemoryManager function is
          shared across all MEX functions that are generated with
          the memory manager enabled.
Properties
Object Functions
Use the object function freeUnusedMemory to free GPU memory allocated
      by the memory manager that is not used by any MEX function.
      This function accepts a gpucoder.MemoryManager object as input, frees unused
      GPU memory, and returns another gpucoder.MemoryManager object that represents
      the new state of the memory manager.
Examples
Version History
Introduced in R2024a