Closed IgorMirosavljevicHTEC closed 1 year ago
:x:onnx-taau-downsample: ERROR - check error output
In file included from main.cpp:2:
./migraphx/kernels/pad.hpp:50:35: error: invalid operands to binary expression ('migraphx::shape<migraphx::integral_const_array<unsigned int, 16, 4>, migraphx::integral_const_array<unsigned int, 4, 1>>::index_array' (aka 'array<unsigned int, sizeof...(Xs)>') and 'const migraphx::integral_const_array<unsigned int, 0, 0, 0, 0>')
auto input_idx = multi - offsets;
~ ^ ~~~ ^
./migraphx/kernels/index.hpp:152:17: note: in instantiation of function template specialization 'migraphx::pad(const migraphx::index &, const migraphx::integral_const_array<unsigned int, 0, 0, 0, 0> &, const migraphx::tensor_view<_Float16, migraphx::shape<migraphx::integral_const_array<unsigned int, 16, 1>, migraphx::integral_const_array<unsigned int, 1, 1>>> &, migraphx::tensor_view<_Float16, migraphx::shape<migraphx::integral_const_array<unsigned int, 16, 4>, migraphx::integral_const_array<unsigned int, 4, 1>>> &, const migraphx::lowest &)::(anonymous class)::operator()
f(start);
^
./migraphx/kernels/index.hpp:167:9: note: in instantiation of function template specialization 'migraphx::index::for_stride<(lambda at ./migraphx/kernels/pad.hpp:42:48), migraphx::integral_constant<unsigned int, 64>, migraphx::integral_constant<unsigned int, 64>>' requested here
for_stride(global, n, nglobal(), f);
^
./migraphx/kernels/pad.hpp:42:9: note: in instantiation of function template specialization 'migraphx::index::global_stride<(lambda at ./migraphx/kernels/pad.hpp:42:48), migraphx::integral_constant<unsigned int, 64>>' requested here
idx.global_stride(output_shape.elements(), [&](auto i) {
^
main.cpp:15:9: note: in instantiation of function template specialization 'migraphx::pad<migraphx::integral_const_array<unsigned int, 0, 0, 0, 0>, migraphx::tensor_view<_Float16, migraphx::shape<migraphx::integral_const_array<unsigned int, 16, 1>, migraphx::integral_const_array<unsigned int, 1, 1>>>, migraphx::tensor_view<_Float16, migraphx::shape<migraphx::integral_const_array<unsigned int, 16, 4>, migraphx::integral_const_array<unsigned int, 4, 1>>>, migraphx::lowest>' requested here
pad(idx, offsets, input, output, lowest{});
^
./migraphx/kernels/array.hpp:197:5: note: candidate function template not viable: no known conversion from 'array<[...], sizeof...(Xs) aka 2>' to 'const array<[...], 4>' for 1st argument
MIGRAPHX_DEVICE_ARRAY_OP(-=, -)
^
./migraphx/kernels/array.hpp:50:27: note: expanded from macro 'MIGRAPHX_DEVICE_ARRAY_OP'
friend constexpr auto operator binary_op(const array& x, const array<U, N>& y) \
^
./migraphx/kernels/integral_constant.hpp:61:1: note: candidate template ignored: could not match 'integral_constant' against 'array'
MIGRAPHX_INTEGRAL_CONSTANT_BINARY_OP(-)
^
./migraphx/kernels/integral_constant.hpp:45:68: note: expanded from macro 'MIGRAPHX_INTEGRAL_CONSTANT_BINARY_OP'
constexpr inline integral_constant<decltype(V op w), (V op w)> operator op( \
^
./migraphx/kernels/array.hpp:197:5: note: candidate template ignored: could not match 'array' against 'integral_const_array'
MIGRAPHX_DEVICE_ARRAY_OP(-=, -)
^
./migraphx/kernels/array.hpp:50:27: note: expanded from macro 'MIGRAPHX_DEVICE_ARRAY_OP'
friend constexpr auto operator binary_op(const array& x, const array<U, N>& y) \
^
./migraphx/kernels/iota_iterator.hpp:109:20: note: candidate template ignored: could not match 'basic_iota_iterator' against 'array'
constexpr diff_int operator-(basic_iota_iterator<F, Iterator> x, basic_iota_iterator<F, Iterator> y)
^
./migraphx/kernels/iota_iterator.hpp:115:44: note: candidate template ignored: could not match 'basic_iota_iterator' against 'array'
constexpr basic_iota_iterator<F, Iterator> operator-(basic_iota_iterator<F, Iterator> x, diff_int y)
^
./migraphx/kernels/array.hpp:197:5: note: candidate template ignored: requirement 'migraphx::is_convertible<migraphx::integral_const_array<unsigned int, 0, 0, 0, 0>, unsigned int>{}' was not satisfied [with U = migraphx::integral_const_array<unsigned int, 0, 0, 0, 0>]
MIGRAPHX_DEVICE_ARRAY_OP(-=, -)
^
./migraphx/kernels/array.hpp:58:27: note: expanded from macro 'MIGRAPHX_DEVICE_ARRAY_OP'
friend constexpr auto operator binary_op(const array& x, const U& y) \
^
./migraphx/kernels/array.hpp:197:5: note: candidate template ignored: requirement 'migraphx::is_convertible<migraphx::integral_const_array<unsigned int, 0, 0, 0, 0>, unsigned int>{}' was not satisfied [with U = migraphx::integral_const_array<unsigned int, 0, 0, 0, 0>]
./migraphx/kernels/array.hpp:58:27: note: expanded from macro 'MIGRAPHX_DEVICE_ARRAY_OP'
friend constexpr auto operator binary_op(const array& x, const U& y) \
^
./migraphx/kernels/array.hpp:197:5: note: candidate template ignored: requirement 'migraphx::is_convertible<migraphx::array<unsigned int, 2>, unsigned int>{}' was not satisfied [with U = migraphx::array<unsigned int, 2>]
./migraphx/kernels/array.hpp:65:27: note: expanded from macro 'MIGRAPHX_DEVICE_ARRAY_OP'
friend constexpr auto operator binary_op(const U& x, const array& y) \
^
./migraphx/kernels/array.hpp:197:5: note: candidate template ignored: requirement 'migraphx::is_convertible<migraphx::array<unsigned int, 2>, unsigned int>{}' was not satisfied [with U = migraphx::array<unsigned int, 2>]
./migraphx/kernels/array.hpp:65:27: note: expanded from macro 'MIGRAPHX_DEVICE_ARRAY_OP'
friend constexpr auto operator binary_op(const U& x, const array& y) \
^
./migraphx/kernels/integral_constant.hpp:82:1: note: candidate function template not viable: requires 1 argument, but 2 were provided
MIGRAPHX_INTEGRAL_CONSTANT_UNARY_OP(-)
^
./migraphx/kernels/integral_constant.hpp:54:64: note: expanded from macro 'MIGRAPHX_INTEGRAL_CONSTANT_UNARY_OP'
constexpr inline integral_constant<decltype(op V), (op V)> operator op( \
^
In file included from main.cpp:2:
./migraphx/kernels/pad.hpp:50:35: error: invalid operands to binary expression ('migraphx::shape<migraphx::integral_const_array<unsigned int, 16, 4>, migraphx::integral_const_array<unsigned int, 4, 1>>::index_array' (aka 'array<unsigned int, sizeof...(Xs)>') and 'const migraphx::integral_const_array<unsigned int, 0, 0, 0, 0>')
auto input_idx = multi - offsets;
~~~~ ^
./migraphx/kernels/index.hpp:152:17: note: in instantiation of function template specialization 'migraphx::pad(const migraphx::index &, const migraphx::integral_const_array<unsigned int, 0, 0, 0, 0> &, const migraphx::tensor_view<_Float16, migraphx::shape<migraphx::integral_const_array<unsigned int, 16, 1>, migraphx::integral_const_array<unsigned int, 1, 1>>> &, migraphx::tensor_view<_Float16, migraphx::shape<migraphx::integral_const_array<unsigned int, 16, 4>, migraphx::integral_const_array<unsigned int, 4, 1>>> &, const migraphx::lowest &)::(anonymous class)::operator()
f(start);
^
./migraphx/kernels/index.hpp:167:9: note: in instantiation of function template specialization 'migraphx::index::for_stride<(lambda at ./migraphx/kernels/pad.hpp:42:48), migraphx::integral_constant<unsigned int, 64>, migraphx::integral_constant<unsigned int, 64>>' requested here
for_stride(global, n, nglobal(), f);
^
./migraphx/kernels/pad.hpp:42:9: note: in instantiation of function template specialization 'migraphx::index::global_stride<(lambda at ./migraphx/kernels/pad.hpp:42:48), migraphx::integral_constant<unsigned int, 64>>' requested here
idx.global_stride(output_shape.elements(), [&](auto i) {
^
main.cpp:15:9: note: in instantiation of function template specialization 'migraphx::pad<migraphx::integral_const_array<unsigned int, 0, 0, 0, 0>, migraphx::tensor_view<_Float16, migraphx::shape<migraphx::integral_const_array<unsigned int, 16, 1>, migraphx::integral_const_array<unsigned int, 1, 1>>>, migraphx::tensor_view<_Float16, migraphx::shape<migraphx::integral_const_array<unsigned int, 16, 4>, migraphx::integral_const_array<unsigned int, 4, 1>>>, migraphx::lowest>' requested here
pad(idx, offsets, input, output, lowest{});
^
./migraphx/kernels/array.hpp:197:5: note: candidate function template not viable: no known conversion from 'array<[...], sizeof...(Xs) aka 2>' to 'const array<[...], 4>' for 1st argument
MIGRAPHX_DEVICE_ARRAY_OP(-=, -)
^
./migraphx/kernels/array.hpp:50:27: note: expanded from macro 'MIGRAPHX_DEVICE_ARRAY_OP'
friend constexpr auto operator binary_op(const array& x, const array<U, N>& y) \
^
./migraphx/kernels/integral_constant.hpp:61:1: note: candidate template ignored: could not match 'integral_constant' against 'array'
MIGRAPHX_INTEGRAL_CONSTANT_BINARY_OP(-)
^
./migraphx/kernels/integral_constant.hpp:45:68: note: expanded from macro 'MIGRAPHX_INTEGRAL_CONSTANT_BINARY_OP'
constexpr inline integral_constant<decltype(V op w), (V op w)> operator op( \
^
./migraphx/kernels/array.hpp:197:5: note: candidate template ignored: could not match 'array' against 'integral_const_array'
MIGRAPHX_DEVICE_ARRAY_OP(-=, -)
^
./migraphx/kernels/array.hpp:50:27: note: expanded from macro 'MIGRAPHX_DEVICE_ARRAY_OP'
friend constexpr auto operator binary_op(const array& x, const array<U, N>& y) \
^
./migraphx/kernels/iota_iterator.hpp:109:20: note: candidate template ignored: could not match 'basic_iota_iterator' against 'array'
constexpr diff_int operator-(basic_iota_iterator<F, Iterator> x, basic_iota_iterator<F, Iterator> y)
^
./migraphx/kernels/iota_iterator.hpp:115:44: note: candidate template ignored: could not match 'basic_iota_iterator' against 'array'
constexpr basic_iota_iterator<F, Iterator> operator-(basic_iota_iterator<F, Iterator> x, diff_int y)
^
./migraphx/kernels/array.hpp:197:5: note: candidate template ignored: requirement 'migraphx::is_convertible<migraphx::integral_const_array<unsigned int, 0, 0, 0, 0>, unsigned int>{}' was not satisfied [with U = migraphx::integral_const_array<unsigned int, 0, 0, 0, 0>]
MIGRAPHX_DEVICE_ARRAY_OP(-=, -)
^
./migraphx/kernels/array.hpp:58:27: note: expanded from macro 'MIGRAPHX_DEVICE_ARRAY_OP'
friend constexpr auto operator binary_op(const array& x, const U& y) \
^
./migraphx/kernels/array.hpp:197:5: note: candidate template ignored: requirement 'migraphx::is_convertible<migraphx::integral_const_array<unsigned int, 0, 0, 0, 0>, unsigned int>{}' was not satisfied [with U = migraphx::integral_const_array<unsigned int, 0, 0, 0, 0>]
./migraphx/kernels/array.hpp:58:27: note: expanded from macro 'MIGRAPHX_DEVICE_ARRAY_OP'
friend constexpr auto operator binary_op(const array& x, const U& y) \
^
./migraphx/kernels/array.hpp:197:5: note: candidate template ignored: requirement 'migraphx::is_convertible<migraphx::array<unsigned int, 2>, unsigned int>{}' was not satisfied [with U = migraphx::array<unsigned int, 2>]
./migraphx/kernels/array.hpp:65:27: note: expanded from macro 'MIGRAPHX_DEVICE_ARRAY_OP'
friend constexpr auto operator binary_op(const U& x, const array& y) \
^
./migraphx/kernels/array.hpp:197:5: note: candidate template ignored: requirement 'migraphx::is_convertible<migraphx::array<unsigned int, 2>, unsigned int>{}' was not satisfied [with U = migraphx::array<unsigned int, 2>]
./migraphx/kernels/array.hpp:65:27: note: expanded from macro 'MIGRAPHX_DEVICE_ARRAY_OP'
friend constexpr auto operator binary_op(const U& x, const array& y) \
^
./migraphx/kernels/integral_constant.hpp:82:1: note: candidate function template not viable: requires 1 argument, but 2 were provided
MIGRAPHX_INTEGRAL_CONSTANT_UNARY_OP(-)
^
./migraphx/kernels/integral_constant.hpp:54:64: note: expanded from macro 'MIGRAPHX_INTEGRAL_CONSTANT_UNARY_OP'
constexpr inline integral_constant<decltype(op V), (op V)> operator op( \
^
1 error generated when compiling for gfx908.
1 error generated when compiling for gfx908.
terminate called after throwing an instance of 'migraphx::version_1::exception'
what(): /src/AMDMIGraphX/src/compile_src.cpp:71: compile: Output file missing: main.o
In file included from main.cpp:2:
./migraphx/kernels/pad.hpp:50:35: error: invalid operands to binary expression ('migraphx::shape<migraphx::integral_const_array<unsigned int, 16, 4>, migraphx::integral_const_array<unsigned int, 4, 1>>::index_array' (aka 'array<unsigned int, sizeof...(Xs)>') and 'const migraphx::integral_const_array<unsigned int, 0, 0, 0, 0>')
auto input_idx = multi - offsets;
~~~~
./migraphx/kernels/index.hpp:152:17: note: in instantiation of function template specialization 'migraphx::pad(const migraphx::index &, const migraphx::integral_const_array<unsigned int, 0, 0, 0, 0> &, const migraphx::tensor_view<_Float16, migraphx::shape<migraphx::integral_const_array<unsigned int, 16, 1>, migraphx::integral_const_array<unsigned int, 1, 1>>> &, migraphx::tensor_view<_Float16, migraphx::shape<migraphx::integral_const_array<unsigned int, 16, 4>, migraphx::integral_const_array<unsigned int, 4, 1>>> &, const migraphx::lowest &)::(anonymous class)::operator()
f(start);
^
./migraphx/kernels/index.hpp:167:9: note: in instantiation of function template specialization 'migraphx::index::for_stride<(lambda at ./migraphx/kernels/pad.hpp:42:48), migraphx::integral_constant<unsigned int, 64>, migraphx::integral_constant<unsigned int, 64>>' requested here
for_stride(global, n, nglobal(), f);
^
./migraphx/kernels/pad.hpp:42:9: note: in instantiation of function template specialization 'migraphx::index::global_stride<(lambda at ./migraphx/kernels/pad.hpp:42:48), migraphx::integral_constant<unsigned int, 64>>' requested here
idx.global_stride(output_shape.elements(), [&](auto i) {
^
main.cpp:15:9: note: in instantiation of function template specialization 'migraphx::pad<migraphx::integral_const_array<unsigned int, 0, 0, 0, 0>, migraphx::tensor_view<_Float16, migraphx::shape<migraphx::integral_const_array<unsigned int, 16, 1>, migraphx::integral_const_array<unsigned int, 1, 1>>>, migraphx::tensor_view<_Float16, migraphx::shape<migraphx::integral_const_array<unsigned int, 16, 4>, migraphx::integral_const_array<unsigned int, 4, 1>>>, migraphx::lowest>' requested here
pad(idx, offsets, input, output, lowest{});
^
./migraphx/kernels/array.hpp:197:5: note: candidate function template not viable: no known conversion from 'array<[...], sizeof...(Xs) aka 2>' to 'const array<[...], 4>' for 1st argument
MIGRAPHX_DEVICE_ARRAY_OP(-=, -)
^
./migraphx/kernels/array.hpp:50:27: note: expanded from macro 'MIGRAPHX_DEVICE_ARRAY_OP'
friend constexpr auto operator binary_op(const array& x, const array<U, N>& y) \
^
./migraphx/kernels/integral_constant.hpp:61:1: note: candidate template ignored: could not match 'integral_constant' against 'array'
MIGRAPHX_INTEGRAL_CONSTANT_BINARY_OP(-)
^
./migraphx/kernels/integral_constant.hpp:45:68: note: expanded from macro 'MIGRAPHX_INTEGRAL_CONSTANT_BINARY_OP'
constexpr inline integral_constant<decltype(V op w), (V op w)> operator op( \
^
./migraphx/kernels/array.hpp:197:5: note: candidate template ignored: could not match 'array' against 'integral_const_array'
MIGRAPHX_DEVICE_ARRAY_OP(-=, -)
^
./migraphx/kernels/array.hpp:50:27: note: expanded from macro 'MIGRAPHX_DEVICE_ARRAY_OP'
friend constexpr auto operator binary_op(const array& x, const array<U, N>& y) \
^
./migraphx/kernels/iota_iterator.hpp:109:20: note: candidate template ignored: could not match 'basic_iota_iterator' against 'array'
constexpr diff_int operator-(basic_iota_iterator<F, Iterator> x, basic_iota_iterator<F, Iterator> y)
^
./migraphx/kernels/iota_iterator.hpp:115:44: note: candidate template ignored: could not match 'basic_iota_iterator' against 'array'
constexpr basic_iota_iterator<F, Iterator> operator-(basic_iota_iterator<F, Iterator> x, diff_int y)
^
./migraphx/kernels/array.hpp:197:5: note: candidate template ignored: requirement 'migraphx::is_convertible<migraphx::integral_const_array<unsigned int, 0, 0, 0, 0>, unsigned int>{}' was not satisfied [with U = migraphx::integral_const_array<unsigned int, 0, 0, 0, 0>]
MIGRAPHX_DEVICE_ARRAY_OP(-=, -)
^
./migraphx/kernels/array.hpp:58:27: note: expanded from macro 'MIGRAPHX_DEVICE_ARRAY_OP'
friend constexpr auto operator binary_op(const array& x, const U& y) \
^
./migraphx/kernels/array.hpp:197:5: note: candidate template ignored: requirement 'migraphx::is_convertible<migraphx::integral_const_array<unsigned int, 0, 0, 0, 0>, unsigned int>{}' was not satisfied [with U = migraphx::integral_const_array<unsigned int, 0, 0, 0, 0>]
./migraphx/kernels/array.hpp:58:27: note: expanded from macro 'MIGRAPHX_DEVICE_ARRAY_OP'
friend constexpr auto operator binary_op(const array& x, const U& y) \
^
./migraphx/kernels/array.hpp:197:5: note: candidate template ignored: requirement 'migraphx::is_convertible<migraphx::array<unsigned int, 2>, unsigned int>{}' was not satisfied [with U = migraphx::array<unsigned int, 2>]
./migraphx/kernels/array.hpp:65:27: note: expanded from macro 'MIGRAPHX_DEVICE_ARRAY_OP'
friend constexpr auto operator binary_op(const U& x, const array& y) \
^
./migraphx/kernels/array.hpp:197:5: note: candidate template ignored: requirement 'migraphx::is_convertible<migraphx::array<unsigned int, 2>, unsigned int>{}' was not satisfied [with U = migraphx::array<unsigned int, 2>]
./migraphx/kernels/array.hpp:65:27: note: expanded from macro 'MIGRAPHX_DEVICE_ARRAY_OP'
friend constexpr auto operator binary_op(const U& x, const array& y) \
^
./migraphx/kernels/integral_constant.hpp:82:1: note: candidate function template not viable: requires 1 argument, but 2 were provided
MIGRAPHX_INTEGRAL_CONSTANT_UNARY_OP(-)
^
./migraphx/kernels/integral_constant.hpp:54:64: note: expanded from macro 'MIGRAPHX_INTEGRAL_CONSTANT_UNARY_OP'
constexpr inline integral_constant<decltype(op V), (op V)> operator op( \
^
1 error generated when compiling for gfx908.
dbbc6f
01b253
This build is not recommended to merge :red_circle: