"src/git@developer.sourcefind.cn:gaoqiong/migraphx.git" did not exist on "1bfb147d508e057c4893d5865cfa8ff210ab3c58"
Commit 61edb5ea authored by Paul's avatar Paul
Browse files

Fix hiprtc issue

parent 0ffcccbc
......@@ -128,7 +128,7 @@ template <class Op, class T, class Index, class F>
__device__ auto block_reduce(index idx, Op op, T init, Index n, F f)
{
MIGRAPHX_ASSERT(idx.max_nlocal() == idx.nlocal());
using type = decltype(f(0));
using type = decltype(index::invoke_loop(f, 0, _c<0>));
__shared__ type buffer[idx.max_nlocal()];
type x = init;
idx.local_stride(n, [&](auto i, auto d) { x = op(x, index::invoke_loop(f, i, d)); });
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment