Skip to main content

Mojo struct

TensorMapL2Promotion

@register_passable(trivial) struct TensorMapL2Promotion

L2 cache promotion hint for TMA tensor map descriptors.

Specifies how much data to promote into the L2 cache during TMA operations. Promoting data to L2 can improve performance when the same data will be accessed multiple times.

Implemented traits

AnyType, Copyable, ImplicitlyCopyable, Movable, UnknownDestructibility

Aliases

__copyinit__is_trivial

alias __copyinit__is_trivial = True

__del__is_trivial

alias __del__is_trivial = True

__moveinit__is_trivial

alias __moveinit__is_trivial = True

L2_128B

alias L2_128B = TensorMapL2Promotion(2)

Promote 128 bytes to L2 cache.

L2_256B

alias L2_256B = TensorMapL2Promotion(3)

Promote 256 bytes to L2 cache.

L2_64B

alias L2_64B = TensorMapL2Promotion(1)

Promote 64 bytes to L2 cache.

NONE

alias NONE = TensorMapL2Promotion(0)

No L2 promotion.

Was this page helpful?