Use m or n as hard limit in range check depending on TRANSA setting

This commit is contained in:
Martin Kroeker 2017-08-02 00:06:06 +02:00 committed by GitHub
parent 585c0010a5
commit 6e753c5a71
1 changed files with 2 additions and 1 deletions

View File

@ -230,10 +230,11 @@ int CNAME(BLASLONG m, BLASLONG n, BLASLONG ku, BLASLONG kl, FLOAT *alpha, FLOAT
#ifndef TRANSA
range_m[num_cpu] = num_cpu * ((m + 15) & ~15);
if (range_m[num_cpu] > m) range_m[num_cpu] = m;
#else
range_m[num_cpu] = num_cpu * ((n + 15) & ~15);
#endif
if (range_m[num_cpu] > n) range_m[num_cpu] = n;
#endif
queue[num_cpu].mode = mode;
queue[num_cpu].routine = gbmv_kernel;