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

make test_lpcnet taco=1 problem #5

Open
lyz04551 opened this issue Aug 5, 2019 · 4 comments
Open

make test_lpcnet taco=1 problem #5

lyz04551 opened this issue Aug 5, 2019 · 4 comments

Comments

@lyz04551
Copy link

lyz04551 commented Aug 5, 2019

gcc -Wall -W -Wextra -Wno-unused-function -O3 -g -I../include -DTACOTRON2 -mavx2 -mfma -c -o src/test_lpcnet.o src/test_lpcnet.c
gcc -Wall -W -Wextra -Wno-unused-function -O3 -g -I../include -DTACOTRON2 -mavx2 -mfma -c -o src/lpcnet.o src/lpcnet.c
gcc -Wall -W -Wextra -Wno-unused-function -O3 -g -I../include -DTACOTRON2 -mavx2 -mfma -c -o src/nnet.o src/nnet.c
In file included from src/nnet.c:45:0:
src/vec_avx.h: In function ‘sgemv_accum16’:
src/vec_avx.h:167:24: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘y’
float * restrict y;
^
src/vec_avx.h:167:24: error: ‘y’ undeclared (first use in this function)
src/vec_avx.h:167:24: note: each undeclared identifier is reported only once for each function it appears in
src/vec_avx.h: In function ‘sparse_sgemv_accum16’:
src/vec_avx.h:193:24: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘y’
float * restrict y;
^
src/vec_avx.h:193:24: error: ‘y’ undeclared (first use in this function)
make: *** [src/nnet.o] Error 1

What is the reason for this, how to solve it, trouble you?

@alokprasad
Copy link
Owner

@lyz04551 which platform you are building for ?
src/nnet.c
Can you edit file only include
#include "vec.h"

comment below lines and remove the flags from CMAKELists.txt mavx2 and mfma ..
#ifdef AVX
#include "vec_avx.h"
#elif ARM_NEON
#include "vec_neon.h"
#else
#warning Compiling without any vectorization. This code will be very slow
#include "vec.h"
#endif

@lyz04551
Copy link
Author

lyz04551 commented Aug 6, 2019

The problem has been solved, thank you

@JamesZHANGatTJU
Copy link

@lyz04551 How did you solve this problem? Thank you very much.

@MaisyZhang
Copy link

@JamesZHANGatTJU , I referenced this issue

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