Skip to content

Commit

Permalink
fix implicitgemm_ck_util.hpp
Browse files Browse the repository at this point in the history
  • Loading branch information
BuiChiTrung committed Aug 28, 2024
1 parent 449a51d commit 446322c
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion include/miopen/miopen.h
Original file line number Diff line number Diff line change
Expand Up @@ -1605,7 +1605,7 @@ miopenConvolutionBackwardWeightsGetSolution(miopenHandle_t handle,
* as part of the
* miopenConvSolution_t struct.
*
* @param handle MIOpen handle (input
* @param handle MIOpen handle (input)
* @param dyDesc Tensor descriptor for data tensor dy (input)
* @param xDesc Tensor descriptor for data tensor x (input)
* @param convDesc Convolution layer descriptor (input)
Expand Down
26 changes: 13 additions & 13 deletions src/include/miopen/solver/implicitgemm_ck_util.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -680,7 +680,7 @@ ConvSolution InitInvokerFactoryNCHW(const ExecutionContext& ctx,
internal::MakeTaggedTransposeInstances<CKArgsType>(
result, ctx, problem, ck_args, input1_op, input2_op, output_op, _ck_buff_des);

result.invoker_factory = [split_k = split_k,
result.invoker_factory = [split_k,
ck_args = std::move(ck_args),
sh_conv_ptr = std::shared_ptr{std::move(*ptr_iter)},
input1_tr_inst = std::move(_input1_tr_inst),
Expand All @@ -689,16 +689,16 @@ ConvSolution InitInvokerFactoryNCHW(const ExecutionContext& ctx,
output_init_tr_inst = std::move(_output_init_tr_inst),
ck_buff_des =
_ck_buff_des](const std::vector<Kernel>& kernels) mutable {
return [split_k = split_k,
return [split_k,
kernels,
ck_args = std::move(ck_args),
sh_conv_ptr = std::move(sh_conv_ptr),
input1_tr_inst = std::move(input1_tr_inst),
input2_tr_inst = std::move(input2_tr_inst),
output_tr_inst = std::move(output_tr_inst),
output_init_tr_inst = std::move(output_init_tr_inst),
ck_buff_des = ck_buff_des](const Handle& handle,
const AnyInvokeParams& primitive_parameters) mutable {
ck_buff_des](const Handle& handle,
const AnyInvokeParams& primitive_parameters) mutable {
handle.ResetKernelTime();

const auto& data_ctx = primitive_parameters.CastTo<CastType>();
Expand Down Expand Up @@ -826,17 +826,17 @@ ConvSolution InitInvokerFactoryNHWC(const ExecutionContext&,
[[maybe_unused]] bool should_allocated_wrw_buffer =
ShouldAllocateWorkSpaceBufferForWRW(problem);

result.invoker_factory = [split_k = split_k,
ck_args = CKArgsType{problem},
alpha_beta_case = alpha_beta_case,
should_allocated_wrw_buffer = should_allocated_wrw_buffer,
result.invoker_factory = [split_k,
ck_args = CKArgsType{problem},
alpha_beta_case,
should_allocated_wrw_buffer,
sh_conv_ptr = std::shared_ptr{std::move(*ptr_iter)}](
const std::vector<Kernel>&) mutable {
return [split_k = split_k,
ck_args = std::move(ck_args),
alpha_beta_case = alpha_beta_case,
should_allocated_wrw_buffer = should_allocated_wrw_buffer,
sh_conv_ptr = std::move(sh_conv_ptr)](
return [split_k,
ck_args = std::move(ck_args),
alpha_beta_case,
should_allocated_wrw_buffer,
sh_conv_ptr = std::move(sh_conv_ptr)](
const Handle& handle, const AnyInvokeParams& primitive_parameters) {
const auto& data_ctx = primitive_parameters.CastTo<CastType>();
std::unique_ptr<ck::tensor_operation::device::BaseArgument> argument_ptr;
Expand Down

0 comments on commit 446322c

Please sign in to comment.