Browse Source

Merge pull request #3004 from martin-frbg/bsd_getauxval

ARM64 DYNAMIC_ARCH build fix for BSD/OSX
tags/v0.3.13^2
Martin Kroeker GitHub 5 years ago
parent
commit
bc5b1ddf0d
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      driver/others/dynamic_arm64.c

+ 2
- 1
driver/others/dynamic_arm64.c View File

@@ -143,7 +143,7 @@ static gotoblas_t *get_coretype(void) {


#if (!defined OS_LINUX && !defined OS_ANDROID) #if (!defined OS_LINUX && !defined OS_ANDROID)
return NULL; return NULL;
#endif
#else


if (!(getauxval(AT_HWCAP) & HWCAP_CPUID)) { if (!(getauxval(AT_HWCAP) & HWCAP_CPUID)) {
#ifdef __linux #ifdef __linux
@@ -235,6 +235,7 @@ static gotoblas_t *get_coretype(void) {
openblas_warning(1, coremsg); openblas_warning(1, coremsg);
} }
return NULL; return NULL;
#endif
} }


void gotoblas_dynamic_init(void) { void gotoblas_dynamic_init(void) {


Loading…
Cancel
Save