-
Notifications
You must be signed in to change notification settings - Fork 364
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mac M1 not automatically detected #495
Comments
BLIS currently doesn't work on M1 (see #492). Now, it looks like you're seeing a slightly different issue. Could you please send the command you used to configure and the full output? |
This is an attempt to have brew install blis, the result is almost identical for a python install and ./configure auto: Do not report this issue to Homebrew/brew or Homebrew/core! |
Ah, we definitely haven't implemented auto-detection for M1. I've changed the title to reflect this specific problem so we can remember to fix it once BLIS actually compiles on that platform. |
not hard to write, but if you want the dumb C code to detect Apple M1, here it is: #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/types.h>
#include <sys/sysctl.h>
int main(void)
{
int rc;
size_t len;
rc = sysctlbyname("machdep.cpu.brand_string", NULL, &len, NULL, 0);
char * buf = calloc(len,1);
rc = sysctlbyname("machdep.cpu.brand_string", buf, &len, NULL, 0);
printf("machdep.cpu.brand_string = %s\n",buf);
printf("is Apple M1? %s\n", 0==strncmp(buf,"Apple M1",len) ? "yes" : "no");
free(buf);
return 0;
} |
I wonder if the CPU detection can not be done with some standard API like http://icl.cs.utk.edu/projects/papi-2.1/files/html_man/papi_get_hardware_info.html |
Have tried a variety of methods to install. The error message remains the same.
*** Cannot continue with unregistered configuration
The text was updated successfully, but these errors were encountered: