Английская Википедия:Advanced Matrix Extensions

Материал из Онлайн справочника
Перейти к навигацииПерейти к поиску

Шаблон:Short description Advanced Matrix Extensions (AMX), also known as Intel Advanced Matrix Extensions (Intel AMX), are extensions to the x86 instruction set architecture (ISA) for microprocessors from Intel designed to work on matrices to accelerate artificial intelligence (AI) and machine learning (ML) workloads.[1]

Extensions

AMX was introduced by Intel in June 2020 and first supported by Intel with the Sapphire Rapids microarchitecture for Xeon servers, released in January 2023.[2][3] It introduced 2-dimensional registers called tiles upon which accelerators can perform operations. It is intended as an extensible architecture; the first accelerator implemented is called tile matrix multiply unit (TMUL).[4][5]

In Intel Architecture Instruction Set Extensions and Future Features revision 46, published in September 2022, a new AMX-FP16 extension was documented. This extension adds support for half-precision floating-point numbers. In revision 48 from March 2023, AMX-COMPLEX was documented, adding support for half-precision floating-point complex numbers. Both extensions are planned for inclusion in the future Granite Rapids processors (AMX-COMPLEX - only in Granite Rapids-D[6]).

Шаблон:AnchorTile matrix multiply unit

TMUL unit supports BF16 and INT8 input types.[7] AMX-FP16 also adds support for real and complex FP16 numbers. The register file consists of 8 tiles, each with 16 rows of size of 64 bytes (32 BF16/FP16 or 64 INT8 elements). The only supported operation is matrix multiplication <math display="inline"> C_{nm} += \sum_{j=1}^J A_{nj}B_{jm}.</math>[4]

4th Gen Intel Xeon Scalable processor can perform 2048 INT8 or 1024 BF16 operations per cycle:[8][9] the maximal input sizes are <math display="inline">16 \times J</math> for Шаблон:Math and <math display="inline">J \times 16</math> for Шаблон:Math, where Шаблон:Math is 64 for INT8 and 32 BF16. The matrix multiplication requires <math display="inline">256J</math> multiplication and <math display="inline">256J</math> additions, thus performing <math display="inline">512J</math> operations in 16 cycles.[9]

Software support

References

Шаблон:Reflist

External links

Шаблон:AMD technology Шаблон:Intel technology Шаблон:Multimedia extensions