Skip to content

Commit

Permalink
Use solution_idx variable for hip_gemm_finalize
Browse files Browse the repository at this point in the history
  • Loading branch information
ahsan-ca committed Nov 7, 2024
1 parent 7180234 commit 4f8d530
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/targets/gpu/hip_gemm_impl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -632,20 +632,19 @@ int32_t hip_gemm_finalize(context& ctx,
float beta,
int32_t solution_idx)
{
int solution;
auto gemm_item = hip_gemm_impl(output_shape, input_shapes, alpha, beta);
if(solution_idx == 0)
{
solution = gemm_item.tune(ctx, input_shapes);
solution_idx = gemm_item.tune(ctx, input_shapes);
hip_gemm_save_solution(ctx, output_shape, input_shapes, solution);

Check warning on line 639 in src/targets/gpu/hip_gemm_impl.cpp

View workflow job for this annotation

GitHub Actions / tidy

use of undeclared identifier 'solution' [clang-diagnostic-error]
}
// If a tuned solution index is already given, don't tune again but validate
// in case the data was tuned with a different hipBLAS version.
// in case the data was tuned with a different hipBLASLt version.
else
{
solution = gemm_item.validate(ctx, input_shapes, solution_idx);
solution_idx = gemm_item.validate(ctx, input_shapes, solution_idx);
}
return solution;
return solution_idx;
}

int32_t hip_gemm_default_solution(context& ctx,
Expand Down

0 comments on commit 4f8d530

Please sign in to comment.