Skip to content

Commit

Permalink
small cleanup in blas-version gathering
Browse files Browse the repository at this point in the history
  • Loading branch information
AllinCottrell committed Feb 16, 2024
1 parent 263e423 commit d9af1c6
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions lib/src/gretl_utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -2568,13 +2568,11 @@ static void register_openblas_details (void *handle)
}

if (OB_get_config != NULL) {
char *ver = NULL;
char *ver = OB_get_config();

ver = OB_get_config();
if (ver != NULL) {
*blas_version = '\0';
snprintf(blas_version, 7, "%s", ver+9);
ver = NULL;
sscanf(ver, "OpenBLAS %16[^ ]", blas_version);
}
} else {
fprintf(stderr, "Couldn't find openblas_get_config()\n");
Expand Down Expand Up @@ -2652,7 +2650,6 @@ static void register_blis_details (void *handle)
if (buf != NULL) {
*blas_core = '\0';
strncat(blas_core, buf, 31);
buf = NULL;
}
}

Expand Down Expand Up @@ -2766,7 +2763,6 @@ static void register_mkl_details (void *handle)
buf = "unknown";
}
strncat(blas_core, buf, 63);
buf = NULL;
}
}

Expand Down

0 comments on commit d9af1c6

Please sign in to comment.