Supporting Mixed-domain Mixed-precision Matrix Multiplication within the BLIS Framework
Supporting Mixed-domain Mixed-precision Matrix Multiplication within the BLIS Framework
复制标题
支持 BLIS 框架内的混合域混合精度矩阵乘法
DOI:
10.1145/3402225
复制
发表时间:
2021
影响因子:
2.7
通讯作者:
Geijn, Robert A.
中科院分区:
文献类型:
--
作者:
Zee, Field G.;Parikh, Devangi N.;Geijn, Robert A.
We approach the problem of implementing mixed-datatype support within the general matrix multiplication (gemm) operation of the BLAS-like Library Instantiation Software framework, whereby each matrix operandA,B, andCmay be stored as single- or double-precision real or complex values. Another factor of complexity, whereby the matrix product and accumulation are allowed to take place in a precision different from the storage precisions of eitherAorB, is also discussed. We first break the problem into orthogonal dimensions, considering the mixing of domains separately from mixing precisions. Support for all combinations of matrix operands stored in either the real or complex domain is mapped out by enumerating the cases and describing an implementation approach for each. Supporting all combinations of storage and computation precisions is handled by typecasting the matrices at key stages of the computation—during packing and/or accumulation, as needed. Several optional optimizations are also documented. Performance results gathered on a 56-core Marvell ThunderX2 and a 52-core Intel Xeon Platinum demonstrate that high performance is mostly preserved, with modest slowdowns incurred from unavoidable typecast instructions. The mixed-datatype implementation confirms that combinatorial intractability is avoided, with the framework relying on only two assembly microkernels to implement 128 datatype combinations.
登录
查看更多内容
DOI:
10.1137/16m108968x
发表时间:
2016-07
期刊:
SIAM J. Sci. Comput.
影响因子:
--
作者:
D. Matthews
通讯作者:
D. Matthews
影响因子:
2.7
作者:
F. V. Zee;T. Smith
通讯作者:
T. Smith
影响因子:
2.7
作者:
Goto, Kazushige;Van De Geijn, Robert
通讯作者:
Van De Geijn, Robert
影响因子:
4.4
作者:
K. Kristensen;J. Kauczor;T. Kjaergaard;P. Jørgensen
通讯作者:
P. Jørgensen