Skip to content

Commit

Permalink
Merge pull request OpenMathLib#4568 from martin-frbg/fixbenchloops
Browse files Browse the repository at this point in the history
Fix bad assignment of OPENBLAS_LOOPS  variable in several benchmarks
  • Loading branch information
martin-frbg committed Mar 20, 2024
2 parents b4a1153 + 3f1ec74 commit 9ad9b52
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion benchmark/getri.c
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ int main(int argc, char *argv[]){

if ((p = getenv("OPENBLAS_TEST"))) btest=*p;

if ((p = getenv("OPENBLAS_LOOPS"))) loops=*p;
if ((p = getenv("OPENBLAS_LOOPS"))) loops=atoi(p);

fprintf(stderr, "From : %3d To : %3d Step = %3d\n", from, to, step);

Expand Down
2 changes: 1 addition & 1 deletion benchmark/linpack.c
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ int main(int argc, char *argv[]){
double time1, time2, timeg1,timeg2;

char *p;
if ((p = getenv("OPENBLAS_LOOPS"))) loops=*p;
if ((p = getenv("OPENBLAS_LOOPS"))) loops=atoi(p);

argc--;argv++;

Expand Down
2 changes: 1 addition & 1 deletion benchmark/potrf.c
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ int main(int argc, char *argv[]){

if ((p = getenv("OPENBLAS_TEST"))) btest=*p;

if ((p = getenv("OPENBLAS_LOOPS"))) loops=*p;
if ((p = getenv("OPENBLAS_LOOPS"))) loops=atoi(p);

fprintf(stderr, "From : %3d To : %3d Step = %3d Uplo = %c\n", from, to, step,*uplo[uplos]);

Expand Down
2 changes: 1 addition & 1 deletion benchmark/syr2.c
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ int main(int argc, char *argv[]){
int step = 1;
int loops = 1;

if ((p = getenv("OPENBLAS_LOOPS"))) loops=*p;
if ((p = getenv("OPENBLAS_LOOPS"))) loops=atoi(p);

double time1,timeg;

Expand Down

0 comments on commit 9ad9b52

Please sign in to comment.