For the complete documentation index, see llms.txt. Markdown versions of all pages are available by appending .md to any URL (e.g. /max/get-started.md).
Mojo module
apple_amx_intrinsics
Provides low-level wrappers around Apple's AMX assembly instruction set for matrix operations.
Functionsβ
- β
dot_at_b: Performs a matrix multiply C = A^T * B using Apple AMX instructions. - β
extrx: Extracts a row or moves it to x, result in amx0. - β
extry: Extracts a row or moves it to y, result in amx0. - β
fma: Issues an AMX fused multiply-add of X and Y register rows accumulated into the Z accumulator. - β
fma16: Float16 matrix multiply and subtract. - β
fma32: Float32 matrix multiply and add. - β
fma64: Float64 matrix multiply and add. - β
fms16: Float16 matrix multiply and add. - β
fsm32: Float32 matrix multiply and subtract. - β
fsm64: Float64 matrix multiply and subtract. - β
genlut: Issues the Apple AMX genlut instruction using the address encoded in gpr. - β
ldx: Loads data from the memory address encoded in gpr into an AMX X register row. - β
ldy: Loads data from the memory address encoded in gpr into an AMX Y register row. - β
ldz: Loads data from the memory address encoded in gpr into an AMX Z accumulator row. - β
ldzi: Loads data from the memory address encoded in gpr into an AMX Z accumulator row using interleaved layout. - β
load_z: Stores row_count rows from AMX Z accumulator registers starting at start_index to memory at src. - β
mac16: SI16 matrix multiply and add. - β
matfp: Float16 matrix multiply. - β
max_int__: UI16 matrix multiply. - β
read_x: Stores row_count rows from AMX X registers starting at start_index to memory at src. - β
read_y: Stores row_count rows from AMX Y registers starting at start_index to memory at src. - β
store_x: Loads row_count rows from memory at src into AMX X registers starting at start_index. - β
store_y: Loads row_count rows from memory at src into AMX Y registers starting at start_index. - β
store_z: Loads row_count rows from memory at src into AMX Z accumulator registers starting at start_index. - β
stx: Stores an AMX X register row to the memory address encoded in gpr. - β
sty: Stores an AMX Y register row to the memory address encoded in gpr. - β
stz: Stores an AMX Z accumulator row to the memory address encoded in gpr. - β
stzi: Stores an AMX Z accumulator row to the memory address encoded in gpr using interleaved layout. - β
transpose_z_to_x_or_y: Transposes a downsampled column of the AMX Z register into a row of the X or Y register. - β
vec_int__: Horizontal ui16 multiplyz0[i] += x0[i] + y0[i]. - β
vecfp: Horizontal float16 multiplyz0[i] += x0[i] + y0[i].
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!