mirror of
https://github.com/ROCm/composable_kernel.git
synced 2026-05-04 21:51:28 +00:00
Fix bf8 conversion issues (#1003)
* Fix the conversion * Add bf8 functionality * Enable example on MI200 as well
This commit is contained in:
@@ -207,7 +207,8 @@ struct ConvertF8SR
|
||||
__host__ __device__ void operator()(Y& y, const X& x) const
|
||||
{
|
||||
// check Y datatype
|
||||
static_assert(is_same<Y, f8_t>::value, "Data type is not supported by this operation!");
|
||||
static_assert(is_same<Y, f8_t>::value || is_same<Y, bf8_t>::value,
|
||||
"Data type is not supported by this operation!");
|
||||
|
||||
// check X datatype
|
||||
static_assert(is_same<X, float>::value || is_same<X, half_t>::value,
|
||||
|
||||
Reference in New Issue
Block a user