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

sgemm.o error #16

Closed
jgrn307 opened this issue Apr 14, 2011 · 4 comments
Closed

sgemm.o error #16

jgrn307 opened this issue Apr 14, 2011 · 4 comments
Assignees
Labels
Milestone

Comments

@jgrn307
Copy link

jgrn307 commented Apr 14, 2011

Folks:

I'm excited to use the new OpenBLAS, but I'm getting the same errors on both OpenBLAS and GotoBLAS2 1.13. I'm assuming I'm missing a dependency, any idea what it might be?


gcc -c -O2 -DEXPRECISION -m128bit-long-double -Wall -m64 -DF_INTERFACE_GFORT -fPIC -DSMP_SERVER -DMAX_CPU_NUMBER= -DASMNAME=sgemm -DASMFNAME=sgemm_ -DNAME=sgemm_ -DCNAME=sgemm -DCHAR_NAME="sgemm_" -DCHAR_CNAME="sgemm" -I.. -I. -UDOUBLE -UCOMPLEX gemm.c -o sgemm.o
gemm.c: In function ‘sgemm_’:
gemm.c:392: error: ‘GEMM_DEFAULT_OFFSET_A’ undeclared (first use in this function)
gemm.c:392: error: (Each undeclared identifier is reported only once
gemm.c:392: error: for each function it appears in.)
gemm.c:393: error: ‘SGEMM_DEFAULT_P’ undeclared (first use in this function)
gemm.c:393: error: ‘SGEMM_DEFAULT_Q’ undeclared (first use in this function)
gemm.c:393: error: ‘GEMM_DEFAULT_ALIGN’ undeclared (first use in this function)
gemm.c:393: error: ‘GEMM_DEFAULT_OFFSET_B’ undeclared (first use in this function)
make[1]: *** [sgemm.o] Error 1

@xianyi
Copy link
Collaborator

xianyi commented Apr 15, 2011

Hi jgrn307,

What's your CPU?
This error is mainly caused by the failure of detecting your CPU.

You could try setting the CPU target when compiling the lib.
For example:

make TARGET=NEHALEM

Thanks

Xianyi

Folks:

I'm excited to use the new OpenBLAS, but I'm getting the same errors on both OpenBLAS and GotoBLAS2 1.13. I'm assuming I'm missing a dependency, any idea what it might be?


gcc -c -O2 -DEXPRECISION -m128bit-long-double -Wall -m64 -DF_INTERFACE_GFORT -fPIC -DSMP_SERVER -DMAX_CPU_NUMBER= -DASMNAME=sgemm -DASMFNAME=sgemm_ -DNAME=sgemm_ -DCNAME=sgemm -DCHAR_NAME="sgemm_" -DCHAR_CNAME="sgemm" -I.. -I. -UDOUBLE -UCOMPLEX gemm.c -o sgemm.o
gemm.c: In function ‘sgemm_’:
gemm.c:392: error: ‘GEMM_DEFAULT_OFFSET_A’ undeclared (first use in this function)
gemm.c:392: error: (Each undeclared identifier is reported only once
gemm.c:392: error: for each function it appears in.)
gemm.c:393: error: ‘SGEMM_DEFAULT_P’ undeclared (first use in this function)
gemm.c:393: error: ‘SGEMM_DEFAULT_Q’ undeclared (first use in this function)
gemm.c:393: error: ‘GEMM_DEFAULT_ALIGN’ undeclared (first use in this function)
gemm.c:393: error: ‘GEMM_DEFAULT_OFFSET_B’ undeclared (first use in this function)
make[1]: *** [sgemm.o] Error 1

@ghost ghost assigned xianyi Apr 17, 2011
@xianyi xianyi closed this as completed in 2aab238 Apr 22, 2011
@MarbolanGos
Copy link

Hi,

I have the same issue with:
make AR=i686-w64-mingw32-ar RANLIB=i686-w64-mingw32-ranlib CC=i686-w64-mingw32-gcc FC=i686-w64-mingw32-gfortran BINARY=32 USE_THREAD=1 DEBUG=1 TARGET=NEHALEM

@MarbolanGos
Copy link

Sorry I have juste found the solution :
make AR=i686-w64-mingw32-ar RANLIB=i686-w64-mingw32-ranlib CC=i686-w64-mingw32-gcc FC=i686-w64-mingw32-gfortran BINARY=32 USE_THREAD=1 DEBUG=1 TARGET=NEHALEM HOSTCC=gcc

@xianyi
Copy link
Collaborator

xianyi commented Jun 25, 2011

Hi,

If you use DEBUG=1, it will use "-g" instead of "-O2".

Thanks

Xianyi Zhang

2011/6/24 MarbolanGos <
reply@reply.github.com>

Sorry I have juste found the solution :
make AR=i686-w64-mingw32-ar RANLIB=i686-w64-mingw32-ranlib
CC=i686-w64-mingw32-gcc FC=i686-w64-mingw32-gfortran BINARY=32 USE_THREAD=1
DEBUG=1 TARGET=NEHALEM HOSTCC=gcc

Reply to this email directly or view it on GitHub:
#16 (comment)

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

No branches or pull requests

3 participants