Browse Source

Silence an unused variable warning with a cast

l2 cache size is not universally needed to assign default unrolling limits, but neither putting its declaration inside an ifdef nor cloning it into all ifdef sections that need it really makes sense here.
tags/v0.3.0
Martin Kroeker GitHub 8 years ago
parent
commit
acf3d34bc5
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      kernel/setparam-ref.c

+ 3
- 0
kernel/setparam-ref.c View File

@@ -684,6 +684,9 @@ static void init_parameter(void) {

int l2 = get_l2_size();

(void) l2; /* dirty trick to suppress unused variable warning for targets */
/* where the GEMM unrolling parameters do not depend on l2 */
TABLE_NAME.sgemm_q = SGEMM_DEFAULT_Q;
TABLE_NAME.dgemm_q = DGEMM_DEFAULT_Q;
TABLE_NAME.cgemm_q = CGEMM_DEFAULT_Q;


Loading…
Cancel
Save