hipBLASLt precision support#
This topic lists the supported data types for the hipBLASLt GEMM operation, which is performed by hipblasLtMatmul().
This page lists the data types supported by the library itself and does not indicate hardware support. A type listed here is only usable if the GPU architecture also supports it; otherwise it is unsupported. For data type support across the other ROCm libraries and by GPU architecture, see the Data types and precision support page.
Supported data types overview#
The following table summarizes the input and output data types supported by
hipBLASLt. For the full hipDataType enumeration, compute modes, and
supported type combinations, see the sections that follow.
Icon |
Definition |
|---|---|
✅ |
Fully supported as both an input and output type. |
⚠️ |
Partially supported as an input or output type. |
Data types not listed in the table below are not supported.
Data type |
Support |
|---|---|
int8 |
✅ |
float4 (E2M1) |
Input only |
float8 (E4M3) |
✅ |
float8 (E5M2) |
✅ |
float16 |
✅ |
bfloat16 |
✅ |
float32 |
✅ |
hipDataType enumeration#
The hipDataType enumeration defines data precision types and is primarily
used when the data reference itself does not include type information, such as
in void* pointers. This enumeration is mainly utilized in BLAS libraries.
The hipBLASLt input and output types are listed in the following table.
hipDataType |
hipBLASLt type |
Description |
|---|---|---|
|
|
8-bit real signed integer. |
|
|
32-bit real signed integer. |
|
N/A |
4-bit real float4 precision floating-point |
|
|
8-bit real float8 precision floating-point |
|
|
8-bit real bfloat8 precision floating-point |
|
|
8-bit real float8 precision floating-point |
|
|
8-bit real bfloat8 precision floating-point |
|
|
16-bit real half precision floating-point |
|
|
16-bit real bfloat16 precision floating-point |
|
|
32-bit real single precision floating-point |
|
|
32-bit complex single precision floating-point |
|
|
64-bit real complex precision floating-point |
Note
The hipblaslt_f8_fnuz and hipblaslt_bf8_fnuz data types are only
supported on the gfx942 platform. The hipblaslt_f8 and hipblaslt_bf8 data types are only
supported on the gfx950 and gfx12 platforms.
The hipBLASLt compute modes are listed in the following table.
hipDataType |
Description |
|---|---|
|
32-bit integer compute mode. |
|
16-bit half precision floating-point compute mode. |
|
32-bit single precision floating-point compute mode. |
|
64-bit double precision floating-point compute mode. |
|
Enables the library to utilize Tensor Cores with automatic down-conversion and 16-bit half-precision computation for 32-bit float-precision input and output matrices. |
|
Enables the library to utilize Tensor Cores with automatic down-conversion and 16-bit bfloat16-precision computation for 32-bit float-precision input and output matrices. |
|
Enables the library to utilize Tensor Cores with TF32 computation (on the gfx942 and gfx950 platforms) or emulated TF32 computation (on the gfx950 platform) for matrices with 32-bit input and output. |
Note
For information on how to override certain compute types, see the environmental variables documentation.
Data type combinations#
hipBLASLt supports various combinations of input (A, B), accumulation (C), output (D), and compute data types for GEMM operations. The library enables mixed-precision operations, allowing you to use lower precision inputs with higher precision compute for optimal performance while maintaining accuracy where needed.
The GEMM operation follows this equation:
Where \(op( )\) refers to in-place operations, such as transpose and non-transpose, and \(alpha\) and \(beta\) are scalars.
For complete details on supported data type combinations, including specific compute types, scale types, and bias configurations, see the hipBLASLt API reference page.