Skip to content

Commit

Permalink
Add Apple M as NeoverseN1
Browse files Browse the repository at this point in the history
  • Loading branch information
martin-frbg authored Dec 25, 2023
1 parent 474ce0a commit e7a895e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions driver/others/dynamic_arm64.c
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,10 @@ static gotoblas_t *get_coretype(void) {
int implementer, variant, part, arch, revision, midr_el1;
char coremsg[128];

#if defined (OS_DARWIN)
return &gotoblas_NEOVERSEN1;
#endif

#if (!defined OS_LINUX && !defined OS_ANDROID)
return NULL;
#else
Expand Down Expand Up @@ -352,6 +356,9 @@ static gotoblas_t *get_coretype(void) {
return &gotoblas_FALKOR;
}
break;
case 0x61: // Apple
return &gotoblas_NEOVERSEN1;
break;
default:
snprintf(coremsg, 128, "Unknown CPU model - implementer %x part %x\n",implementer,part);
openblas_warning(1, coremsg);
Expand Down

0 comments on commit e7a895e

Please sign in to comment.