mirror of
https://github.com/ROCm/composable_kernel.git
synced 2026-06-30 03:37:38 +00:00
Add functionality and tests for fp16 x fp8 and fp8 x fp16
This commit is contained in:
@@ -52,4 +52,18 @@ struct DetermineWarpPrecType<ck_tile::bf16_t, ck_tile::fp8_t>
|
||||
{
|
||||
using prec_type = float;
|
||||
};
|
||||
|
||||
// For fp8 x fp16 or fp16 x fp8, convert fp8 to float
|
||||
template <>
|
||||
struct DetermineWarpPrecType<ck_tile::fp8_t, ck_tile::half_t>
|
||||
{
|
||||
using prec_type = float;
|
||||
};
|
||||
|
||||
// For fp8 x fp16 or fp16 x fp8, convert fp16 to float
|
||||
template <>
|
||||
struct DetermineWarpPrecType<ck_tile::half_t, ck_tile::fp8_t>
|
||||
{
|
||||
using prec_type = float;
|
||||
};
|
||||
}; // namespace ck_tile
|
||||
|
||||
Reference in New Issue
Block a user