11.4.10. Performance-Tuning Directives: .minperctamemory
.minperctamemory
Declare minimum per-CTA global memory required by a kernel.
Syntax
ptx
.minperctamemory size;
size = 32-bit unsigned integer (bytes)Description
The .minperctamemory directive specifies the minimum number of bytes of per-CTA global memory that must be available when this kernel is launched.
The directive is only allowed on .entry functions and must appear between an .entry directive and its body.
Only entry functions specifying this directive are allowed to use special registers [%perctamemoryoffset](../../10-special-registers/perctamemoryoffset.md) or [%perctamemorysize](../../10-special-registers/perctamemorysize.md).
PTX ISA Notes
Introduced in PTX ISA version 9.4.
Target ISA Notes
Requires sm_80 or higher.
Examples
ptx
.entry foo .minperctamemory 2048 {
...
}