Instance Property

recommendedMaxWorkingSetSize

An approximation of how much memory, in bytes, this device can use with good performance.

Required.

Declaration

@property(readonly) uint64_t recommendedMaxWorkingSetSize;

Discussion

Performance may be improved by keeping the total size of all resources and heaps associated with this device object less than this threshold. Going above the threshold may incur a performance penalty.

See Also

Querying Memory Availability and Limits

currentAllocatedSize

The current size, in bytes, of all resources allocated on this device for this process.

Required.

maxThreadgroupMemoryLength

The maximum threadgroup memory available to a compute kernel, in bytes.

Required.