Skip to content
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 osx, using home-brew fatal error: [getarch_2nd] Error 1 #320

Closed
DaehyunPY opened this issue Nov 26, 2013 · 10 comments
Closed

mac osx, using home-brew fatal error: [getarch_2nd] Error 1 #320

DaehyunPY opened this issue Nov 26, 2013 · 10 comments

Comments

@DaehyunPY
Copy link

getarch_2nd.c:12:35: error: use of undeclared identifier 'SGEMM_DEFAULT_UNROLL_M'
printf("SGEMM_UNROLL_M=%d\n", SGEMM_DEFAULT_UNROLL_M);
^
getarch_2nd.c:13:35: error: use of undeclared identifier 'SGEMM_DEFAULT_UNROLL_N'
printf("SGEMM_UNROLL_N=%d\n", SGEMM_DEFAULT_UNROLL_N);
^
getarch_2nd.c:14:35: error: use of undeclared identifier 'DGEMM_DEFAULT_UNROLL_M'
printf("DGEMM_UNROLL_M=%d\n", DGEMM_DEFAULT_UNROLL_M);
^
getarch_2nd.c:15:35: error: use of undeclared identifier 'DGEMM_DEFAULT_UNROLL_N'
printf("DGEMM_UNROLL_N=%d\n", DGEMM_DEFAULT_UNROLL_N);
^
getarch_2nd.c:19:35: error: use of undeclared identifier 'CGEMM_DEFAULT_UNROLL_M'
printf("CGEMM_UNROLL_M=%d\n", CGEMM_DEFAULT_UNROLL_M);
^
getarch_2nd.c:20:35: error: use of undeclared identifier 'CGEMM_DEFAULT_UNROLL_N'
printf("CGEMM_UNROLL_N=%d\n", CGEMM_DEFAULT_UNROLL_N);
^
getarch_2nd.c:21:35: error: use of undeclared identifier 'ZGEMM_DEFAULT_UNROLL_M'
printf("ZGEMM_UNROLL_M=%d\n", ZGEMM_DEFAULT_UNROLL_M);
^
getarch_2nd.c:22:35: error: use of undeclared identifier 'ZGEMM_DEFAULT_UNROLL_N'
printf("ZGEMM_UNROLL_N=%d\n", ZGEMM_DEFAULT_UNROLL_N);
^
getarch_2nd.c:29:37: error: use of undeclared identifier 'SGEMM_DEFAULT_UNROLL_M'
printf("CGEMM3M_UNROLL_M=%d\n", SGEMM_DEFAULT_UNROLL_M);
^
getarch_2nd.c:35:37: error: use of undeclared identifier 'SGEMM_DEFAULT_UNROLL_N'
printf("CGEMM3M_UNROLL_N=%d\n", SGEMM_DEFAULT_UNROLL_N);
^
getarch_2nd.c:41:37: error: use of undeclared identifier 'DGEMM_DEFAULT_UNROLL_M'
printf("ZGEMM3M_UNROLL_M=%d\n", DGEMM_DEFAULT_UNROLL_M);
^
getarch_2nd.c:47:37: error: use of undeclared identifier 'DGEMM_DEFAULT_UNROLL_N'
printf("ZGEMM3M_UNROLL_N=%d\n", DGEMM_DEFAULT_UNROLL_N);
^
getarch_2nd.c:67:50: error: use of undeclared identifier 'SGEMM_DEFAULT_Q'
printf("#define SLOCAL_BUFFER_SIZE\t%ld\n", (SGEMM_DEFAULT_Q * SGEMM_DEFAULT_UNROLL_N * 4 * 1 * sizeof(float)));
^
getarch_2nd.c:67:68: error: use of undeclared identifier 'SGEMM_DEFAULT_UNROLL_N'
printf("#define SLOCAL_BUFFER_SIZE\t%ld\n", (SGEMM_DEFAULT_Q * SGEMM_DEFAULT_UNROLL_N * 4 * 1 * sizeof(float)));
^
getarch_2nd.c:68:50: error: use of undeclared identifier 'DGEMM_DEFAULT_Q'
printf("#define DLOCAL_BUFFER_SIZE\t%ld\n", (DGEMM_DEFAULT_Q * DGEMM_DEFAULT_UNROLL_N * 2 * 1 * sizeof(double)));
^
getarch_2nd.c:68:68: error: use of undeclared identifier 'DGEMM_DEFAULT_UNROLL_N'
printf("#define DLOCAL_BUFFER_SIZE\t%ld\n", (DGEMM_DEFAULT_Q * DGEMM_DEFAULT_UNROLL_N * 2 * 1 * sizeof(double)));
^
getarch_2nd.c:69:50: error: use of undeclared identifier 'CGEMM_DEFAULT_Q'
printf("#define CLOCAL_BUFFER_SIZE\t%ld\n", (CGEMM_DEFAULT_Q * CGEMM_DEFAULT_UNROLL_N * 4 * 2 * sizeof(float)));
^
getarch_2nd.c:69:68: error: use of undeclared identifier 'CGEMM_DEFAULT_UNROLL_N'
printf("#define CLOCAL_BUFFER_SIZE\t%ld\n", (CGEMM_DEFAULT_Q * CGEMM_DEFAULT_UNROLL_N * 4 * 2 * sizeof(float)));
^
getarch_2nd.c:70:50: error: use of undeclared identifier 'ZGEMM_DEFAULT_Q'
printf("#define ZLOCAL_BUFFER_SIZE\t%ld\n", (ZGEMM_DEFAULT_Q * ZGEMM_DEFAULT_UNROLL_N * 2 * 2 * sizeof(double)));
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
make: *** [getarch_2nd] Error 1
Makefile:129: *** OpenBLAS: Detecting CPU failed. Please set TARGET explicitly, e.g. make TARGET=your_cpu_target. Please read README for the detail.. Stop.

HOMEBREW_VERSION: 0.9.5
HEAD: 7f4bd1ef44397fc9e7f942aa07da2ddcc7c8c5bb
CPU: 8-core 64-bit haswell
OS X: 10.9-x86_64
Xcode: 5.0.2
CLT: 5.0.1.0.1.1382131676
X11: 2.7.5 => /opt/X11

someone help me...

@DaehyunPY DaehyunPY reopened this Nov 27, 2013
@xianyi
Copy link
Collaborator

xianyi commented Nov 29, 2013

@hyuna917 , What's your CPU?

@DaehyunPY
Copy link
Author

I use 2.3 GHz Intel Core i7

and my memory is 16GB 1600 MHZ DDR3
Graphics : Intel Iris Pro 1024 MB
Software : OS X 10.9

On Nov 29, 2013, at 11:59 PM, Zhang Xianyi [email protected] wrote:

@hyuna917 , What's your CPU?


Reply to this email directly or view it on GitHub.

@xianyi
Copy link
Collaborator

xianyi commented Nov 29, 2013

I think your cpu is Intel haswell. Please try make TARGET=SANDYBRIDGE.

@DaehyunPY
Copy link
Author

How can I set TARGET when I use home-brew ?

On Nov 30, 2013, at 1:17 AM, Zhang Xianyi [email protected] wrote:

I think your cpu is Intel haswell. Please try make TARGET=SANDYBRIDGE.


Reply to this email directly or view it on GitHub.

@xianyi
Copy link
Collaborator

xianyi commented Nov 29, 2013

@staticfloat, could you look at this issue?

@staticfloat
Copy link
Contributor

Great idea! I've updated the openblas-julia formula to support a --target=CPU_TYPE option. Just use brew install openblas-julia --target=NEHALEM in this case.

@DaehyunPY
Copy link
Author

Thank you! It is working!

@lbenet
Copy link

lbenet commented Jan 18, 2014

I am having the same problem to install with hombrew openblas with the same type of macbook.

If I change openblas.rb to mimic openblas-julia (from the tap staticfloat/julia), i.e. including the option target and ENV.fortran, I succeed in compiling openblas.

Is it worth to consider these changes in hombrew's openblas formula?

@staticfloat
Copy link
Contributor

@lbenet We can't merge the two formulae completely, but certain features might be welcomed into homebrew-main. If you would like to create a pull request and submit it, I can give you any guidance or help you need, but this is unfortunately pretty low on my TODO list. :)

@xianyi
Copy link
Collaborator

xianyi commented Jan 19, 2014

Please try OpenBLAS develop branch. I think I fixed this bug.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants