Browse Source

Merge pull request #5278 from martin-frbg/fixup5276

Fix compilation with pre-C99 compilers
tags/v0.3.30
Martin Kroeker GitHub 4 months ago
parent
commit
0163143fdd
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      driver/level3/level3_thread.c

+ 2
- 1
driver/level3/level3_thread.c View File

@@ -852,7 +852,8 @@ int CNAME(blas_arg_t *args, BLASLONG *range_m, BLASLONG *range_n, IFLOAT *sa, IF
/* (n / nthreads_n) + (m / nthreads_m) */
/* = (n * nthreads_m + m * nthreads_n) / (nthreads_n * nthreads_m) */
BLASLONG cost = 0, div = 0;
for (BLASLONG i = 1; i <= sqrt(nthreads_m); i++) {
BLASLONG i;
for (i = 1; i <= sqrt(nthreads_m); i++) {
if (nthreads_m % i) continue;
BLASLONG j = nthreads_m / i;
BLASLONG cost_i = n * j + m * nthreads_n * i;


Loading…
Cancel
Save