Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bf16 verify tests #3707

Open
wants to merge 4 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions test/verify/test_abs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ struct test_abs : verify_program<test_abs<DType>>
};

template struct test_abs<migraphx::shape::half_type>;
template struct test_abs<migraphx::shape::bf16_type>;
template struct test_abs<migraphx::shape::float_type>;
template struct test_abs<migraphx::shape::fp8e4m3fnuz_type>;
template struct test_abs<migraphx::shape::fp8e5m2fnuz_type>;
Expand Down
1 change: 1 addition & 0 deletions test/verify/test_acos.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ struct test_acos : verify_program<test_acos<DType>>
};

template struct test_acos<migraphx::shape::half_type>;
template struct test_acos<migraphx::shape::bf16_type>;
template struct test_acos<migraphx::shape::float_type>;
template struct test_acos<migraphx::shape::fp8e4m3fnuz_type>;
template struct test_acos<migraphx::shape::fp8e5m2fnuz_type>;
Expand Down
1 change: 1 addition & 0 deletions test/verify/test_acosh.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ struct test_acosh : verify_program<test_acosh<CType>>

template struct test_acosh<float>;
template struct test_acosh<migraphx::half>;
template struct test_acosh<migraphx::bf16>;
template struct test_acosh<migraphx::fp8::fp8e4m3fnuz>;
template struct test_acosh<migraphx::fp8::fp8e4m3fn>;
template struct test_acosh<migraphx::fp8::fp8e5m2>;
1 change: 1 addition & 0 deletions test/verify/test_add.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ struct test_add : verify_program<test_add<DType>>
};

template struct test_add<migraphx::shape::half_type>;
template struct test_add<migraphx::shape::bf16_type>;
template struct test_add<migraphx::shape::float_type>;
template struct test_add<migraphx::shape::fp8e4m3fnuz_type>;
template struct test_add<migraphx::shape::fp8e5m2fnuz_type>;
Expand Down
42 changes: 42 additions & 0 deletions test/verify/test_add_bf16.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
/*
* The MIT License (MIT)
*
* Copyright (c) 2015-2024 Advanced Micro Devices, Inc. All rights reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/

#include "verify_program.hpp"
#include <migraphx/program.hpp>
#include <migraphx/generate.hpp>
#include <migraphx/make_op.hpp>

struct test_add_bf16 : verify_program<test_add_bf16>
{
migraphx::program create_program() const
{
migraphx::program p;
auto* mm = p.get_main_module();
migraphx::shape s{migraphx::shape::bf16_type, {3}};
auto x = mm->add_parameter("x", s);
auto y = mm->add_parameter("y", s);
mm->add_instruction(migraphx::make_op("add"), x, y);
return p;
}
};
1 change: 1 addition & 0 deletions test/verify/test_add_dot.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,5 @@ struct test_add_dot : verify_program<test_add_dot<DType>>
};

template struct test_add_dot<migraphx::shape::half_type>;
template struct test_add_dot<migraphx::shape::bf16_type>;
template struct test_add_dot<migraphx::shape::float_type>;
56 changes: 56 additions & 0 deletions test/verify/test_add_gelu_bf16.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
/*
* The MIT License (MIT)
*
* Copyright (c) 2015-2024 Advanced Micro Devices, Inc. All rights reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/

#include "verify_program.hpp"
#include <migraphx/program.hpp>
#include <migraphx/generate.hpp>
#include <migraphx/make_op.hpp>

struct test_add_gelu_bf16 : verify_program<test_add_gelu_bf16>
{
migraphx::program create_program() const
{
migraphx::program p;
auto* mm = p.get_main_module();
std::vector<size_t> input_lens{1, 1, 5};
auto x = mm->add_parameter("x", {migraphx::shape::bf16_type, input_lens});
auto y = mm->add_parameter("y", {migraphx::shape::bf16_type, input_lens});
auto bf16 = mm->add_literal(migraphx::literal{{migraphx::shape::bf16_type}, {0.5f}});
auto one = mm->add_literal(migraphx::literal{{migraphx::shape::bf16_type}, {1.0f}});
auto sqrt2 = mm->add_literal(migraphx::literal{{migraphx::shape::bf16_type}, {M_SQRT2}});
auto add = mm->add_instruction(migraphx::make_op("add"), x, y);
auto bf16_mbcast = mm->add_instruction(
migraphx::make_op("multibroadcast", {{"out_lens", input_lens}}), bf16);
auto mul_bf16 = mm->add_instruction(migraphx::make_op("mul"), add, bf16_mbcast);
auto sqrt2_mbcast = mm->add_instruction(
migraphx::make_op("multibroadcast", {{"out_lens", input_lens}}), sqrt2);
auto div = mm->add_instruction(migraphx::make_op("div"), add, sqrt2_mbcast);
auto erf = mm->add_instruction(migraphx::make_op("erf"), div);
auto one_mbcast = mm->add_instruction(
migraphx::make_op("multibroadcast", {{"out_lens", input_lens}}), one);
auto add_one = mm->add_instruction(migraphx::make_op("add"), erf, one_mbcast);
mm->add_instruction(migraphx::make_op("mul"), mul_bf16, add_one);
return p;
}
};
1 change: 1 addition & 0 deletions test/verify/test_add_mixed_layout.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,5 @@ struct test_add_mixed_layout : verify_program<test_add_mixed_layout<DType>>
};

template struct test_add_mixed_layout<migraphx::shape::half_type>;
template struct test_add_mixed_layout<migraphx::shape::bf16_type>;
template struct test_add_mixed_layout<migraphx::shape::float_type>;
1 change: 1 addition & 0 deletions test/verify/test_asin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ struct test_asin : verify_program<test_asin<DType>>
};

template struct test_asin<migraphx::shape::float_type>;
template struct test_asin<migraphx::shape::bf16_type>;
template struct test_asin<migraphx::shape::half_type>;
template struct test_asin<migraphx::shape::fp8e4m3fnuz_type>;
template struct test_asin<migraphx::shape::fp8e5m2fnuz_type>;
Expand Down
1 change: 1 addition & 0 deletions test/verify/test_asinh.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ struct test_asinh : verify_program<test_asinh<DType>>
};

template struct test_asinh<migraphx::shape::float_type>;
template struct test_asinh<migraphx::shape::bf16_type>;
template struct test_asinh<migraphx::shape::half_type>;
template struct test_asinh<migraphx::shape::fp8e4m3fnuz_type>;
template struct test_asinh<migraphx::shape::fp8e5m2fnuz_type>;
Expand Down
1 change: 1 addition & 0 deletions test/verify/test_atan.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ struct test_atan : verify_program<test_atan<DType>>

template struct test_atan<migraphx::shape::float_type>;
template struct test_atan<migraphx::shape::half_type>;
template struct test_atan<migraphx::shape::bf16_type>;
template struct test_atan<migraphx::shape::fp8e4m3fnuz_type>;
template struct test_atan<migraphx::shape::fp8e5m2fnuz_type>;
template struct test_atan<migraphx::shape::fp8e4m3fn_type>;
Expand Down
1 change: 1 addition & 0 deletions test/verify/test_atanh.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ struct test_atanh : verify_program<test_atanh<CType>>

template struct test_atanh<float>;
template struct test_atanh<migraphx::half>;
template struct test_atanh<migraphx::bf16>;
template struct test_atanh<migraphx::fp8::fp8e4m3fnuz>;
template struct test_atanh<migraphx::fp8::fp8e5m2fnuz>;
template struct test_atanh<migraphx::fp8::fp8e4m3fn>;
Expand Down
1 change: 1 addition & 0 deletions test/verify/test_block_reduce_small.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ struct test_block_reduce_small : verify_program<test_block_reduce_small<N, T>>

template <int N>
struct test_block_reduce_small_for_size : test_block_reduce_small<N, migraphx::shape::half_type>,
test_block_reduce_small<N, migraphx::shape::bf16_type>,
test_block_reduce_small<N, migraphx::shape::float_type>,
test_block_reduce_small<N, migraphx::shape::int8_type>
{
Expand Down
1 change: 1 addition & 0 deletions test/verify/test_ceil.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ struct test_ceil : verify_program<test_ceil<DType>>

template struct test_ceil<migraphx::shape::float_type>;
template struct test_ceil<migraphx::shape::half_type>;
template struct test_ceil<migraphx::shape::bf16_type>;
template struct test_ceil<migraphx::shape::fp8e4m3fnuz_type>;
template struct test_ceil<migraphx::shape::fp8e5m2fnuz_type>;
template struct test_ceil<migraphx::shape::fp8e4m3fn_type>;
Expand Down
57 changes: 57 additions & 0 deletions test/verify/test_ck_gemm_softmax_gemm_bf16.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
// /*
// * The MIT License (MIT)
// *
// * Copyright (c) 2015-2024 Advanced Micro Devices, Inc. All rights reserved.
// *
// * Permission is hereby granted, free of charge, to any person obtaining a copy
// * of this software and associated documentation files (the "Software"), to deal
// * in the Software without restriction, including without limitation the rights
// * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// * copies of the Software, and to permit persons to whom the Software is
// * furnished to do so, subject to the following conditions:
// *
// * The above copyright notice and this permission notice shall be included in
// * all copies or substantial portions of the Software.
// *
// * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// * THE SOFTWARE.
// */

// #include "verify_program.hpp"
// #include <migraphx/program.hpp>
// #include <migraphx/generate.hpp>
// #include <migraphx/make_op.hpp>

// struct test_ck_gemm_softmax_gemm_bf16 : verify_program<test_ck_gemm_softmax_gemm_bf16>
// {
// migraphx::program create_program() const
// {
// migraphx::program p;
// auto* mm = p.get_main_module();
// migraphx::shape m1_shape{migraphx::shape::bf16_type, {1, 12, 256, 256}};
// migraphx::shape m2_shape{migraphx::shape::bf16_type, {1, 12, 256, 256}};
// auto m2_elements = m2_shape.elements();
// auto a = mm->add_parameter("1", m1_shape);
// auto b = mm->add_parameter("2", m1_shape);
// auto b1 = mm->add_parameter("3", m1_shape);
// std::vector<float> eights(m2_elements, 0.125);
// auto eight = mm->add_literal(migraphx::literal{m2_shape, eights});
// std::vector<float> zeros(m2_elements, 0);
// auto zero = mm->add_literal(migraphx::literal{m2_shape, zeros});

// b = mm->add_instruction(migraphx::make_op("transpose", {{"permutation", {0, 1, 3, 2}}}), b);
// auto gemm1 = mm->add_instruction(migraphx::make_op("dot"), a, b);
// auto scale = mm->add_instruction(migraphx::make_op("mul"), gemm1, eight);
// auto bias = mm->add_instruction(migraphx::make_op("add"), scale, zero);
// auto softmax = mm->add_instruction(migraphx::make_op("softmax", {{"axis", -1}}), bias);
// mm->add_instruction(migraphx::make_op("dot"), softmax, b1);

// return p;
// }
// std::string section() const { return "gemm"; }
// };
1 change: 1 addition & 0 deletions test/verify/test_concat_axis_0.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ struct test_concat_axis_0 : verify_program<test_concat_axis_0<DType>>
};

template struct test_concat_axis_0<migraphx::shape::half_type>;
template struct test_concat_axis_0<migraphx::shape::bf16_type>;
template struct test_concat_axis_0<migraphx::shape::float_type>;
template struct test_concat_axis_0<migraphx::shape::int32_type>;
template struct test_concat_axis_0<migraphx::shape::fp8e4m3fnuz_type>;
Expand Down
1 change: 1 addition & 0 deletions test/verify/test_concat_nhwc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,5 +44,6 @@ struct test_concat_nhwc : verify_program<test_concat_nhwc<DType>>

template struct test_concat_nhwc<migraphx::shape::fp8e4m3fnuz_type>;
template struct test_concat_nhwc<migraphx::shape::half_type>;
template struct test_concat_nhwc<migraphx::shape::bf16_type>;
template struct test_concat_nhwc<migraphx::shape::float_type>;
template struct test_concat_nhwc<migraphx::shape::int32_type>;
1 change: 1 addition & 0 deletions test/verify/test_conv.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ struct test_conv : verify_program<test_conv<DType>>
};

template struct test_conv<migraphx::shape::float_type>;
template struct test_conv<migraphx::shape::bf16_type>;
template struct test_conv<migraphx::shape::fp8e4m3fnuz_type>;
template struct test_conv<migraphx::shape::fp8e5m2fnuz_type>;
template struct test_conv<migraphx::shape::fp8e4m3fn_type>;
Expand Down
1 change: 1 addition & 0 deletions test/verify/test_conv2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ struct test_conv2 : verify_program<test_conv2<DType>>
std::string section() const { return "conv"; }
};
template struct test_conv2<migraphx::shape::float_type>;
template struct test_conv2<migraphx::shape::bf16_type>;
template struct test_conv2<migraphx::shape::fp8e4m3fnuz_type>;
template struct test_conv2<migraphx::shape::fp8e5m2fnuz_type>;
template struct test_conv2<migraphx::shape::fp8e4m3fn_type>;
Expand Down
1 change: 1 addition & 0 deletions test/verify/test_conv_add.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ struct test_conv_add : verify_program<test_conv_add<DType>>
};

template struct test_conv_add<migraphx::shape::float_type>;
template struct test_conv_add<migraphx::shape::bf16_type>;
template struct test_conv_add<migraphx::shape::fp8e4m3fnuz_type>;
template struct test_conv_add<migraphx::shape::fp8e5m2fnuz_type>;
template struct test_conv_add<migraphx::shape::fp8e4m3fn_type>;
Expand Down
1 change: 1 addition & 0 deletions test/verify/test_conv_add_1x1_diff_strides.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ struct test_conv_add_1x1_diff_strides : verify_program<test_conv_add_1x1_diff_st
};

template struct test_conv_add_1x1_diff_strides<migraphx::shape::float_type>;
template struct test_conv_add_1x1_diff_strides<migraphx::shape::bf16_type>;
template struct test_conv_add_1x1_diff_strides<migraphx::shape::fp8e4m3fnuz_type>;
template struct test_conv_add_1x1_diff_strides<migraphx::shape::fp8e5m2fnuz_type>;
template struct test_conv_add_1x1_diff_strides<migraphx::shape::fp8e4m3fn_type>;
Expand Down
1 change: 1 addition & 0 deletions test/verify/test_conv_add_layernorm_conv.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -70,4 +70,5 @@ struct test_conv_add_layernorm_conv : verify_program<test_conv_add_layernorm_con

template struct test_conv_add_layernorm_conv<migraphx::shape::float_type>;
template struct test_conv_add_layernorm_conv<migraphx::shape::half_type>;
template struct test_conv_add_layernorm_conv<migraphx::shape::bf16_type>;
template struct test_conv_add_layernorm_conv<migraphx::shape::fp8e4m3fnuz_type>;
1 change: 1 addition & 0 deletions test/verify/test_conv_add_relu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ struct test_conv_add_relu : verify_program<test_conv_add_relu<DType>>
};

template struct test_conv_add_relu<migraphx::shape::float_type>;
template struct test_conv_add_relu<migraphx::shape::bf16_type>;
template struct test_conv_add_relu<migraphx::shape::fp8e4m3fnuz_type>;
template struct test_conv_add_relu<migraphx::shape::fp8e5m2fnuz_type>;
template struct test_conv_add_relu<migraphx::shape::fp8e4m3fn_type>;
Expand Down
1 change: 1 addition & 0 deletions test/verify/test_conv_add_tune.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ struct test_conv_add_tune : verify_program<test_conv_add_tune<DType>>

template struct test_conv_add_tune<migraphx::shape::float_type>;
template struct test_conv_add_tune<migraphx::shape::half_type>;
template struct test_conv_add_tune<migraphx::shape::bf16_type>;
template struct test_conv_add_tune<migraphx::shape::fp8e4m3fnuz_type>;
template struct test_conv_add_tune<migraphx::shape::fp8e5m2fnuz_type>;
template struct test_conv_add_tune<migraphx::shape::fp8e4m3fn_type>;
Expand Down
1 change: 1 addition & 0 deletions test/verify/test_conv_bias_clipped_relu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ struct test_conv_bias_clipped_relu : verify_program<test_conv_bias_clipped_relu<
};

template struct test_conv_bias_clipped_relu<migraphx::shape::float_type>;
template struct test_conv_bias_clipped_relu<migraphx::shape::bf16_type>;
template struct test_conv_bias_clipped_relu<migraphx::shape::fp8e4m3fnuz_type>;
template struct test_conv_bias_clipped_relu<migraphx::shape::fp8e5m2fnuz_type>;
template struct test_conv_bias_clipped_relu<migraphx::shape::fp8e4m3fn_type>;
Expand Down
1 change: 1 addition & 0 deletions test/verify/test_conv_bn.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ struct test_conv_bn : verify_program<test_conv_bn<DType>>
};

template struct test_conv_bn<migraphx::shape::float_type>;
template struct test_conv_bn<migraphx::shape::bf16_type>;
template struct test_conv_bn<migraphx::shape::fp8e4m3fnuz_type>;
template struct test_conv_bn<migraphx::shape::fp8e5m2fnuz_type>;
template struct test_conv_bn<migraphx::shape::fp8e4m3fn_type>;
Expand Down
1 change: 1 addition & 0 deletions test/verify/test_conv_bn_add.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ struct test_conv_bn_add : verify_program<test_conv_bn_add<DType>>
};

template struct test_conv_bn_add<migraphx::shape::float_type>;
template struct test_conv_bn_add<migraphx::shape::bf16_type>;
template struct test_conv_bn_add<migraphx::shape::fp8e4m3fnuz_type>;
template struct test_conv_bn_add<migraphx::shape::fp8e5m2fnuz_type>;
template struct test_conv_bn_add<migraphx::shape::fp8e4m3fn_type>;
Expand Down
1 change: 1 addition & 0 deletions test/verify/test_conv_bn_relu_pooling.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ struct test_conv_bn_relu_pooling : verify_program<test_conv_bn_relu_pooling<DTyp
};

template struct test_conv_bn_relu_pooling<migraphx::shape::float_type>;
template struct test_conv_bn_relu_pooling<migraphx::shape::bf16_type>;
template struct test_conv_bn_relu_pooling<migraphx::shape::fp8e4m3fnuz_type>;
template struct test_conv_bn_relu_pooling<migraphx::shape::fp8e5m2fnuz_type>;
template struct test_conv_bn_relu_pooling<migraphx::shape::fp8e4m3fn_type>;
Expand Down
1 change: 1 addition & 0 deletions test/verify/test_conv_bn_relu_pooling2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ struct test_conv_bn_relu_pooling2 : verify_program<test_conv_bn_relu_pooling2<DT
};

template struct test_conv_bn_relu_pooling2<migraphx::shape::float_type>;
template struct test_conv_bn_relu_pooling2<migraphx::shape::bf16_type>;
template struct test_conv_bn_relu_pooling2<migraphx::shape::fp8e4m3fnuz_type>;
template struct test_conv_bn_relu_pooling2<migraphx::shape::fp8e5m2fnuz_type>;
template struct test_conv_bn_relu_pooling2<migraphx::shape::fp8e4m3fn_type>;
Expand Down
1 change: 1 addition & 0 deletions test/verify/test_conv_group_add.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,5 +47,6 @@ struct test_conv_group_add : verify_program<test_conv_group_add<DType>>
std::string section() const { return "conv"; }
};
template struct test_conv_group_add<migraphx::shape::float_type>;
template struct test_conv_group_add<migraphx::shape::bf16_type>;
// TODO grouped convolutions are not supported with MLIR therefore disable it
// template struct test_conv_group_add<migraphx::shape::fp8e4m3fnuz_type>;
1 change: 1 addition & 0 deletions test/verify/test_conv_pooling.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ struct test_conv_pooling : verify_program<test_conv_pooling<DType>>
};

template struct test_conv_pooling<migraphx::shape::float_type>;
template struct test_conv_pooling<migraphx::shape::bf16_type>;
template struct test_conv_pooling<migraphx::shape::fp8e4m3fnuz_type>;
template struct test_conv_pooling<migraphx::shape::fp8e5m2fnuz_type>;
template struct test_conv_pooling<migraphx::shape::fp8e4m3fn_type>;
Expand Down
1 change: 1 addition & 0 deletions test/verify/test_conv_relu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ struct test_conv_relu : verify_program<test_conv_relu<DType>>
};
template struct test_conv_relu<migraphx::shape::float_type>;
template struct test_conv_relu<migraphx::shape::half_type>;
template struct test_conv_relu<migraphx::shape::bf16_type>;
template struct test_conv_relu<migraphx::shape::fp8e4m3fnuz_type>;
template struct test_conv_relu<migraphx::shape::fp8e4m3fn_type>;
template struct test_conv_relu<migraphx::shape::fp8e5m2_type>;
2 changes: 2 additions & 0 deletions test/verify/test_convert.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -56,3 +56,5 @@ template struct test_convert<migraphx::shape::fp8e4m3fnuz_type, migraphx::shape:
template struct test_convert<migraphx::shape::fp8e5m2fnuz_type, migraphx::shape::float_type>;
template struct test_convert<migraphx::shape::fp8e4m3fn_type, migraphx::shape::float_type>;
template struct test_convert<migraphx::shape::fp8e5m2_type, migraphx::shape::float_type>;
template struct test_convert<migraphx::shape::half_type, migraphx::shape::float_type>;
template struct test_convert<migraphx::shape::bf16_type, migraphx::shape::float_type>;
Loading
Loading