mirror of
https://github.com/ROCm/composable_kernel.git
synced 2026-05-01 20:21:23 +00:00
Fix build breaks in the elementwise examples (#2789)
* Include variant in elementwise_common.hpp * Disallow bf16_t for both UnarySquare and UnaryConvert in elementwise_example_unary.cpp
This commit is contained in:
@@ -158,7 +158,14 @@ bool filter_then_run(const ck_tile::ArgParser& arg_parser)
|
||||
bool pass = true;
|
||||
|
||||
if constexpr(std::is_same_v<XElementwiseOperation, ck_tile::element_wise::UnarySquare> &&
|
||||
std::is_same_v<XDataType, ck_tile::bf16_t>)
|
||||
(std::is_same_v<XDataType, ck_tile::bf16_t> ||
|
||||
std::is_same_v<YDataType, ck_tile::bf16_t>))
|
||||
{
|
||||
throw_unsupported();
|
||||
}
|
||||
else if constexpr(std::is_same_v<XElementwiseOperation, ck_tile::element_wise::UnaryConvert> &&
|
||||
(std::is_same_v<XDataType, ck_tile::bf16_t> ||
|
||||
std::is_same_v<YDataType, ck_tile::bf16_t>))
|
||||
{
|
||||
throw_unsupported();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user