mirror of
https://github.com/ROCm/composable_kernel.git
synced 2026-04-19 22:39:03 +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:
@@ -1,6 +1,7 @@
|
||||
// SPDX-License-Identifier: MIT
|
||||
// Copyright (c) 2025, Advanced Micro Devices, Inc. All rights reserved.
|
||||
|
||||
#include <variant>
|
||||
#include "ck_tile/core/arch/arch.hpp"
|
||||
|
||||
auto string_to_datatype(const std::string& datatype)
|
||||
|
||||
@@ -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