Skip to content

Commit

Permalink
Patch out instances of Z15 in dynamic_zarch.c
Browse files Browse the repository at this point in the history
There does not appear to be a Z15 kernel yet, causing link errors from the code. This patch fixes the issue.
  • Loading branch information
susilehtola authored Feb 11, 2020
1 parent 3bec250 commit 5a6bba3
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions driver/others/dynamic_zarch.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,27 +3,27 @@

extern gotoblas_t gotoblas_Z13;
extern gotoblas_t gotoblas_Z14;
extern gotoblas_t gotoblas_Z15;
//extern gotoblas_t gotoblas_Z15;
//#if (!defined C_GCC) || (GCC_VERSION >= 60000)
//extern gotoblas_t gotoblas_Z14;
//#endif

#define NUM_CORETYPES 5
#define NUM_CORETYPES 4

extern void openblas_warning(int verbose, const char* msg);

static char* corename[] = {
"unknown",
"Z13",
"Z14",
"Z15",
// "Z15",
"ZARCH_GENERIC",
};

char* gotoblas_corename(void) {
if (gotoblas == &gotoblas_Z13) return corename[1];
if (gotoblas == &gotoblas_Z14) return corename[2];
if (gotoblas == &gotoblas_Z15) return corename[3];
// if (gotoblas == &gotoblas_Z15) return corename[3];
//#if (!defined C_GCC) || (GCC_VERSION >= 60000)
// if (gotoblas == &gotoblas_POWER9) return corename[3];
//#endif
Expand Down Expand Up @@ -78,7 +78,7 @@ static gotoblas_t* force_coretype(char* coretype) {
{
case 1: return (&gotoblas_Z13);
case 2: return (&gotoblas_Z14);
case 3: return (&gotoblas_Z15);
// case 3: return (&gotoblas_Z15);
//#if (!defined C_GCC) || (GCC_VERSION >= 60000)
// case 3: return (&gotoblas_POWER9);
//#endif
Expand Down

0 comments on commit 5a6bba3

Please sign in to comment.