Skip to content

Commit

Permalink
Merge pull request OpenMathLib#4966 from martin-frbg/getrf_indent
Browse files Browse the repository at this point in the history
Fix misleading indentation warning in getrf
  • Loading branch information
martin-frbg authored Nov 6, 2024
2 parents 794f75a + 2332ea7 commit 24c5152
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions lapack/getrf/getrf_parallel.c
Original file line number Diff line number Diff line change
Expand Up @@ -326,16 +326,15 @@ static int inner_advanced_thread(blas_arg_t *args, BLASLONG *range_m, BLASLONG *
min_i = m - is;
if (min_i >= GEMM_P * 2) {
min_i = GEMM_P;
} else
if (min_i > GEMM_P) {
} else if (min_i > GEMM_P) {
min_i = (((min_i + 1) / 2 + GEMM_UNROLL_M - 1)/GEMM_UNROLL_M) * GEMM_UNROLL_M;
}
}

ICOPY_OPERATION(k, min_i, a, lda, 0, is, sa);
ICOPY_OPERATION(k, min_i, a, lda, 0, is, sa);

current = mypos;
current = mypos;

do {
do {

div_n = (range_n[current + 1] - range_n[current] + DIVIDE_RATE - 1) / DIVIDE_RATE;

Expand Down Expand Up @@ -365,7 +364,7 @@ static int inner_advanced_thread(blas_arg_t *args, BLASLONG *range_m, BLASLONG *
current ++;
if (current >= args -> nthreads) current = 0;

} while (current != mypos);
} while (current != mypos);
}

for (i = 0; i < args -> nthreads; i++) {
Expand Down

0 comments on commit 24c5152

Please sign in to comment.