Skip to content
Merged
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
Original file line number Diff line number Diff line change
Expand Up @@ -235,23 +235,23 @@ ConvSolution SoftMarginLossForward::GetSolution(
size = (size + LOCAL_SIZE_REDUCE - 1) / LOCAL_SIZE_REDUCE;
}

// The final ReduceSum kernel signature takes tensor_view_t<1>; passing the
// 5D o_tv would corrupt the kernarg buffer (80B written into 16B slot).
auto o_tv_1d = get_inner_expanded_tv<1>(deref(params.oDesc));
decltype(auto) kernel = handle_.Run(kernels[kernelCnt]);
kernel(reduce_in, params.o, size, o_tv);
kernel(reduce_in, params.o, size, o_tv_1d);
Comment thread
JonathanLichtnerAMD marked this conversation as resolved.
Resolved

if(profiling)
{
(void)hipEventRecord(stop.get(), handle_.GetStream());
(void)hipEventSynchronize(stop.get());
(void)hipEventElapsedTime(&elapsed, start.get(), stop.get());

// Clean up
(void)hipEventDestroy(start.get());
(void)hipEventDestroy(stop.get());
handle_.ResetKernelTime();
handle_.AccumKernelTime(elapsed);

handle_.EnableProfiling(true);
};
}
};
};
}
Expand Down
Loading