Browse Source

elminate unread variable, after reiteration 3 of them (clang4)

tags/v0.3.0
Andrew 8 years ago
parent
commit
ef95cd471f
1 changed files with 3 additions and 2 deletions
  1. +3
    -2
      driver/level3/level3_gemm3m_thread.c

+ 3
- 2
driver/level3/level3_gemm3m_thread.c View File

@@ -974,7 +974,7 @@ static int gemm_driver(blas_arg_t *args, BLASLONG *range_m, BLASLONG
int CNAME(blas_arg_t *args, BLASLONG *range_m, BLASLONG *range_n, FLOAT *sa, FLOAT *sb, BLASLONG mypos){ int CNAME(blas_arg_t *args, BLASLONG *range_m, BLASLONG *range_n, FLOAT *sa, FLOAT *sb, BLASLONG mypos){


BLASLONG m = args -> m; BLASLONG m = args -> m;
BLASLONG n = args -> n;
// BLASLONG n = args -> n;
BLASLONG nthreads = args -> nthreads; BLASLONG nthreads = args -> nthreads;
BLASLONG divN, divT; BLASLONG divN, divT;
int mode; int mode;
@@ -985,13 +985,14 @@ int CNAME(blas_arg_t *args, BLASLONG *range_m, BLASLONG *range_n, FLOAT *sa, FLO


m = m_to - m_from; m = m_to - m_from;
} }
/*
if (range_n) { if (range_n) {
BLASLONG n_from = *(((BLASLONG *)range_n) + 0); BLASLONG n_from = *(((BLASLONG *)range_n) + 0);
BLASLONG n_to = *(((BLASLONG *)range_n) + 1); BLASLONG n_to = *(((BLASLONG *)range_n) + 1);


n = n_to - n_from; n = n_to - n_from;
} }
*/


if ((args -> m < nthreads * SWITCH_RATIO) || (args -> n < nthreads * SWITCH_RATIO)) { if ((args -> m < nthreads * SWITCH_RATIO) || (args -> n < nthreads * SWITCH_RATIO)) {
GEMM3M_LOCAL(args, range_m, range_n, sa, sb, 0); GEMM3M_LOCAL(args, range_m, range_n, sa, sb, 0);


Loading…
Cancel
Save