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

SG2042 服务器 make 出错 #85

Open
JocelynPanPan opened this issue Oct 1, 2024 · 1 comment
Open

SG2042 服务器 make 出错 #85

JocelynPanPan opened this issue Oct 1, 2024 · 1 comment

Comments

@JocelynPanPan
Copy link

/opt/llm/InferLLM/src/kern/optimized/rvv/kernel.cpp: Assembler messages:
/opt/llm/InferLLM/src/kern/optimized/rvv/kernel.cpp:155: Error: unrecognized opcode vsetivli x0,1,e32,m1', extension v' or zve64x' or zve32x' required
/opt/llm/InferLLM/src/kern/optimized/rvv/kernel.cpp:156: Error: unrecognized opcode vmv.s.x v0,x0', extension v' or zve64x' or zve32x' required
/opt/llm/InferLLM/src/kern/optimized/rvv/kernel.cpp:162: Error: unrecognized opcode vsetvl x0,a4,a6', extension v' or zve64x' or zve32x' required
/opt/llm/InferLLM/src/kern/optimized/rvv/kernel.cpp:163: Error: unrecognized opcode vlbu.v v16,(t0)' /opt/llm/InferLLM/src/kern/optimized/rvv/kernel.cpp:164: Error: unrecognized opcode vand.vi v24,v16,0b1111', extension v' or zve64x' or zve32x' required /opt/llm/InferLLM/src/kern/optimized/rvv/kernel.cpp:165: Error: unrecognized opcode vsrl.vi v16,v16,4', extension v' or zve64x' or zve32x' required /opt/llm/InferLLM/src/kern/optimized/rvv/kernel.cpp:166: Error: unrecognized opcode vsll.vi v16,v16,16', extension v' or zve64x' or zve32x' required /opt/llm/InferLLM/src/kern/optimized/rvv/kernel.cpp:167: Error: unrecognized opcode vor.vv v16,v16,v24', extension v' or zve64x' or zve32x' required /opt/llm/InferLLM/src/kern/optimized/rvv/kernel.cpp:168: Error: unrecognized opcode vsetvl a4,t2,t3', extension v' or zve64x' or zve32x' required /opt/llm/InferLLM/src/kern/optimized/rvv/kernel.cpp:169: Error: unrecognized opcode vadd.vi v16,v16,-8', extension v' or zve64x' or zve32x' required /opt/llm/InferLLM/src/kern/optimized/rvv/kernel.cpp:170: Error: unrecognized opcode vlb.v v24,(t6)'
/opt/llm/InferLLM/src/kern/optimized/rvv/kernel.cpp:171: Error: unrecognized opcode vmul.vv v16,v16,v24', extension v' or zve64x' or zve32x' required
/opt/llm/InferLLM/src/kern/optimized/rvv/kernel.cpp:172: Error: unrecognized opcode vwredsum.vs v0,v16,v0', extension v' or zve64x' or zve32x' required
/opt/llm/InferLLM/src/kern/optimized/rvv/kernel.cpp:184: Error: unrecognized opcode vsetivli x0,1,e32,m1', extension v' or zve64x' or zve32x' required
/opt/llm/InferLLM/src/kern/optimized/rvv/kernel.cpp:185: Error: unrecognized opcode vmv.x.s a5,v0', extension v' or zve64x' or zve32x' required
/opt/llm/InferLLM/src/kern/optimized/rvv/kernel.cpp:225: Error: unrecognized opcode vsetivli x0,1,e32,m1', extension v' or zve64x' or zve32x' required
/opt/llm/InferLLM/src/kern/optimized/rvv/kernel.cpp:226: Error: unrecognized opcode vmv.s.x v0,x0', extension v' or zve64x' or zve32x' required
/opt/llm/InferLLM/src/kern/optimized/rvv/kernel.cpp:232: Error: unrecognized opcode vsetvl a5,a5,t3', extension v' or zve64x' or zve32x' required
/opt/llm/InferLLM/src/kern/optimized/rvv/kernel.cpp:233: Error: unrecognized opcode vlb.v v16,(a6)' /opt/llm/InferLLM/src/kern/optimized/rvv/kernel.cpp:234: Error: unrecognized opcode vlb.v v24,(a0)'
/opt/llm/InferLLM/src/kern/optimized/rvv/kernel.cpp:235: Error: unrecognized opcode vmul.vv v16,v16,v24', extension v' or zve64x' or zve32x' required
/opt/llm/InferLLM/src/kern/optimized/rvv/kernel.cpp:236: Error: unrecognized opcode vwredsum.vs v0,v16,v0', extension v' or zve64x' or zve32x' required
/opt/llm/InferLLM/src/kern/optimized/rvv/kernel.cpp:246: Error: unrecognized opcode vsetivli x0,1,e32,m1', extension v' or zve64x' or zve32x' required
/opt/llm/InferLLM/src/kern/optimized/rvv/kernel.cpp:247: Error: unrecognized opcode vmv.x.s a5,v0', extension v' or zve64x' or zve32x' required
/opt/llm/InferLLM/src/kern/optimized/rvv/common.h:180: Error: unrecognized opcode vsetvli t0,t0,e8,m8', extension v' or zve64x' or zve32x' required
/opt/llm/InferLLM/src/kern/optimized/rvv/common.h:181: Error: unrecognized opcode vlbu.v v8,(a2)' /opt/llm/InferLLM/src/kern/optimized/rvv/common.h:182: Error: unrecognized opcode vlbu.v v16,(a0)'
/opt/llm/InferLLM/src/kern/optimized/rvv/common.h:184: Error: unrecognized opcode vsetvli a6,t1,e32,m8', extension v' or zve64x' or zve32x' required
/opt/llm/InferLLM/src/kern/optimized/rvv/common.h:185: Error: unrecognized opcode vfadd.vv v8,v8,v16', extension v' or zve64d' or zve64f' or zve32f' required /opt/llm/InferLLM/src/kern/optimized/rvv/common.h:186: Error: unrecognized opcode vsetvli x0,t0,e8,m8', extension v' or zve64x' or zve32x' required /opt/llm/InferLLM/src/kern/optimized/rvv/common.h:187: Error: unrecognized opcode vsb.v v8,(a3)'
/opt/llm/InferLLM/src/kern/optimized/rvv/common.h:203: Error: unrecognized opcode vsetvli t0,t0,e8,m8', extension v' or zve64x' or zve32x' required
/opt/llm/InferLLM/src/kern/optimized/rvv/common.h:204: Error: unrecognized opcode vlbu.v v8,(a2)' /opt/llm/InferLLM/src/kern/optimized/rvv/common.h:205: Error: unrecognized opcode vlbu.v v16,(a0)'
/opt/llm/InferLLM/src/kern/optimized/rvv/common.h:207: Error: unrecognized opcode vsetvli a6,t1,e32,m8', extension v' or zve64x' or zve32x' required
/opt/llm/InferLLM/src/kern/optimized/rvv/common.h:208: Error: unrecognized opcode vfmul.vv v8,v8,v16', extension v' or zve64d' or zve64f' or zve32f' required /opt/llm/InferLLM/src/kern/optimized/rvv/common.h:209: Error: unrecognized opcode vsetvli x0,t0,e8,m8', extension v' or zve64x' or zve32x' required /opt/llm/InferLLM/src/kern/optimized/rvv/common.h:210: Error: unrecognized opcode vsb.v v8,(a3)'
/opt/llm/InferLLM/src/kern/optimized/rvv/common.h:72: Error: unrecognized opcode vsetivli x0,1,e32,m1', extension v' or zve64x' or zve32x' required
/opt/llm/InferLLM/src/kern/optimized/rvv/common.h:73: Error: unrecognized opcode vfmv.s.f v1,fs1', extension v' or zve64d' or zve64f' or zve32f' required /opt/llm/InferLLM/src/kern/optimized/rvv/common.h:78: Error: unrecognized opcode vsetvl x0,a4,a1', extension v' or zve64x' or zve32x' required /opt/llm/InferLLM/src/kern/optimized/rvv/common.h:79: Error: unrecognized opcode vlbu.v v8,(a2)'
/opt/llm/InferLLM/src/kern/optimized/rvv/common.h:80: Error: unrecognized opcode vsetvl a4,a5,a0', extension v' or zve64x' or zve32x' required
/opt/llm/InferLLM/src/kern/optimized/rvv/common.h:81: Error: unrecognized opcode vfredmax.vs v1,v8,v1', extension v' or zve64d' or zve64f' or zve32f' required /opt/llm/InferLLM/src/kern/optimized/rvv/common.h:90: Error: unrecognized opcode vsetivli x0,1,e32,m1', extension v' or zve64x' or zve32x' required /opt/llm/InferLLM/src/kern/optimized/rvv/common.h:91: Error: unrecognized opcode vfmv.f.s fs3,v1', extension v' or zve64d' or zve64f' or zve32f' required
/opt/llm/InferLLM/src/kern/optimized/rvv/common.h:159: Error: unrecognized opcode vsetvli t0,t0,e8,m8', extension v' or zve64x' or zve32x' required
/opt/llm/InferLLM/src/kern/optimized/rvv/common.h:160: Error: unrecognized opcode vlbu.v v8,(s1)' /opt/llm/InferLLM/src/kern/optimized/rvv/common.h:162: Error: unrecognized opcode vsetvli a4,t1,e32,m8', extension v' or zve64x' or zve32x' required /opt/llm/InferLLM/src/kern/optimized/rvv/common.h:163: Error: unrecognized opcode vfmul.vf v8,v8,fa5', extension v' or zve64d' or zve64f' or zve32f' required
/opt/llm/InferLLM/src/kern/optimized/rvv/common.h:164: Error: unrecognized opcode vsetvli x0,t0,e8,m8', extension v' or zve64x' or zve32x' required
/opt/llm/InferLLM/src/kern/optimized/rvv/common.h:165: Error: unrecognized opcode vsb.v v8,(s1)' /opt/llm/InferLLM/src/kern/optimized/rvv/common.h:127: Error: unrecognized opcode vsetvli x0,s0,e32,m1', extension v' or zve64x' or zve32x' required /opt/llm/InferLLM/src/kern/optimized/rvv/common.h:128: Error: unrecognized opcode vfmv.s.f v1,fs0', extension v' or zve64d' or zve64f' or zve32f' required
/opt/llm/InferLLM/src/kern/optimized/rvv/common.h:135: Error: unrecognized opcode vsetvli t0,t0,e8,m8', extension v' or zve64x' or zve32x' required
/opt/llm/InferLLM/src/kern/optimized/rvv/common.h:136: Error: unrecognized opcode vlbu.v v8,(a4)' /opt/llm/InferLLM/src/kern/optimized/rvv/common.h:138: Error: unrecognized opcode vsetvli a3,t0,e32,m8', extension v' or zve64x' or zve32x' required /opt/llm/InferLLM/src/kern/optimized/rvv/common.h:139: Error: unrecognized opcode vfmul.vv v8,v8,v8', extension v' or zve64d' or zve64f' or zve32f' required
/opt/llm/InferLLM/src/kern/optimized/rvv/common.h:140: Error: unrecognized opcode vfredsum.vs v1,v8,v1', extension v' or zve64d' or zve64f' or zve32f' required /opt/llm/InferLLM/src/kern/optimized/rvv/common.h:148: Error: unrecognized opcode vsetvli x0,x0,e32,m1', extension v' or zve64x' or zve32x' required /opt/llm/InferLLM/src/kern/optimized/rvv/common.h:149: Error: unrecognized opcode vfmv.f.s fa0,v1', extension v' or zve64d' or zve64f' or zve32f' required
/opt/llm/InferLLM/src/kern/optimized/rvv/common.h:159: Error: unrecognized opcode vsetvli t0,t0,e8,m8', extension v' or zve64x' or zve32x' required
/opt/llm/InferLLM/src/kern/optimized/rvv/common.h:160: Error: unrecognized opcode vlbu.v v8,(s1)' /opt/llm/InferLLM/src/kern/optimized/rvv/common.h:162: Error: unrecognized opcode vsetvli a4,t1,e32,m8', extension v' or zve64x' or zve32x' required /opt/llm/InferLLM/src/kern/optimized/rvv/common.h:163: Error: unrecognized opcode vfmul.vf v8,v8,fa0', extension v' or zve64d' or zve64f' or zve32f' required
/opt/llm/InferLLM/src/kern/optimized/rvv/common.h:164: Error: unrecognized opcode vsetvli x0,t0,e8,m8', extension v' or zve64x' or zve32x' required
/opt/llm/InferLLM/src/kern/optimized/rvv/common.h:165: Error: unrecognized opcode vsb.v v8,(s2)' /opt/llm/InferLLM/src/kern/optimized/rvv/common.h:47: Error: unrecognized opcode vsetivli x0,1,e32,m1', extension v' or zve64x' or zve32x' required /opt/llm/InferLLM/src/kern/optimized/rvv/common.h:48: Error: unrecognized opcode vfmv.s.f v1,fs1', extension v' or zve64d' or zve64f' or zve32f' required
/opt/llm/InferLLM/src/kern/optimized/rvv/common.h:53: Error: unrecognized opcode vsetvl x0,a4,a2', extension v' or zve64x' or zve32x' required
/opt/llm/InferLLM/src/kern/optimized/rvv/common.h:54: Error: unrecognized opcode vlbu.v v8,(a3)' /opt/llm/InferLLM/src/kern/optimized/rvv/common.h:55: Error: unrecognized opcode vsetvl a4,a5,a1', extension v' or zve64x' or zve32x' required /opt/llm/InferLLM/src/kern/optimized/rvv/common.h:56: Error: unrecognized opcode vfsgnjx.vv v8,v8,v8', extension v' or zve64d' or zve64f' or zve32f' required
/opt/llm/InferLLM/src/kern/optimized/rvv/common.h:57: Error: unrecognized opcode vfredmax.vs v1,v8,v1', extension v' or zve64d' or zve64f' or zve32f' required /opt/llm/InferLLM/src/kern/optimized/rvv/common.h:66: Error: unrecognized opcode vsetivli x0,1,e32,m1', extension v' or zve64x' or zve32x' required /opt/llm/InferLLM/src/kern/optimized/rvv/common.h:67: Error: unrecognized opcode vfmv.f.s fa5,v1', extension v' or zve64d' or zve64f' or zve32f' required
/opt/llm/InferLLM/src/kern/optimized/rvv/common.h:96: Error: unrecognized opcode vsetvli x0,s0,e32,m1', extension v' or zve64x' or zve32x' required
/opt/llm/InferLLM/src/kern/optimized/rvv/common.h:97: Error: unrecognized opcode vfmv.s.f v1,fa4', extension v' or zve64d' or zve64f' or zve32f' required /opt/llm/InferLLM/src/kern/optimized/rvv/common.h:104: Error: unrecognized opcode vsetvli t0,t0,e8,m8', extension v' or zve64x' or zve32x' required /opt/llm/InferLLM/src/kern/optimized/rvv/common.h:105: Error: unrecognized opcode vlbu.v v8,(a5)'
/opt/llm/InferLLM/src/kern/optimized/rvv/common.h:106: Error: unrecognized opcode vlbu.v v16,(s3)' /opt/llm/InferLLM/src/kern/optimized/rvv/common.h:108: Error: unrecognized opcode vsetvli s4,t0,e32,m8', extension v' or zve64x' or zve32x' required /opt/llm/InferLLM/src/kern/optimized/rvv/common.h:109: Error: unrecognized opcode vfmul.vv v8,v8,v16', extension v' or zve64d' or zve64f' or zve32f' required
/opt/llm/InferLLM/src/kern/optimized/rvv/common.h:110: Error: unrecognized opcode vfredsum.vs v1,v8,v1', extension v' or zve64d' or zve64f' or zve32f' required /opt/llm/InferLLM/src/kern/optimized/rvv/common.h:119: Error: unrecognized opcode vsetvli x0,x0,e32,m1', extension v' or zve64x' or zve32x' required /opt/llm/InferLLM/src/kern/optimized/rvv/common.h:120: Error: unrecognized opcode vfmv.f.s fa5,v1', extension v' or zve64d' or zve64f' or zve32f' required
/opt/llm/InferLLM/src/kern/optimized/rvv/common.h:96: Error: unrecognized opcode vsetvli x0,s0,e32,m1', extension v' or zve64x' or zve32x' required
/opt/llm/InferLLM/src/kern/optimized/rvv/common.h:97: Error: unrecognized opcode vfmv.s.f v1,fa4', extension v' or zve64d' or zve64f' or zve32f' required /opt/llm/InferLLM/src/kern/optimized/rvv/common.h:119: Error: unrecognized opcode vsetvli x0,x0,e32,m1', extension v' or zve64x' or zve32x' required /opt/llm/InferLLM/src/kern/optimized/rvv/common.h:120: Error: unrecognized opcode vfmv.f.s fa5,v1', extension v' or zve64d' or zve64f' or zve32f' required
/opt/llm/InferLLM/src/kern/optimized/rvv/common.h:203: Error: unrecognized opcode vsetvli t0,t0,e8,m8', extension v' or zve64x' or zve32x' required
/opt/llm/InferLLM/src/kern/optimized/rvv/common.h:204: Error: unrecognized opcode vlbu.v v8,(a1)' /opt/llm/InferLLM/src/kern/optimized/rvv/common.h:205: Error: unrecognized opcode vlbu.v v16,(a2)'
/opt/llm/InferLLM/src/kern/optimized/rvv/common.h:207: Error: unrecognized opcode vsetvli a0,t1,e32,m8', extension v' or zve64x' or zve32x' required
/opt/llm/InferLLM/src/kern/optimized/rvv/common.h:208: Error: unrecognized opcode vfmul.vv v8,v8,v16', extension v' or zve64d' or zve64f' or zve32f' required /opt/llm/InferLLM/src/kern/optimized/rvv/common.h:209: Error: unrecognized opcode vsetvli x0,t0,e8,m8', extension v' or zve64x' or zve32x' required /opt/llm/InferLLM/src/kern/optimized/rvv/common.h:210: Error: unrecognized opcode vsb.v v8,(a3)'
/opt/llm/InferLLM/src/kern/optimized/rvv/common.h:180: Error: unrecognized opcode vsetvli t0,t0,e8,m8', extension v' or zve64x' or zve32x' required
/opt/llm/InferLLM/src/kern/optimized/rvv/common.h:181: Error: unrecognized opcode vlbu.v v8,(a1)' /opt/llm/InferLLM/src/kern/optimized/rvv/common.h:182: Error: unrecognized opcode vlbu.v v16,(a2)'
/opt/llm/InferLLM/src/kern/optimized/rvv/common.h:184: Error: unrecognized opcode vsetvli a0,t1,e32,m8', extension v' or zve64x' or zve32x' required
/opt/llm/InferLLM/src/kern/optimized/rvv/common.h:185: Error: unrecognized opcode vfadd.vv v8,v8,v16', extension v' or zve64d' or zve64f' or zve32f' required /opt/llm/InferLLM/src/kern/optimized/rvv/common.h:186: Error: unrecognized opcode vsetvli x0,t0,e8,m8', extension v' or zve64x' or zve32x' required /opt/llm/InferLLM/src/kern/optimized/rvv/common.h:187: Error: unrecognized opcode vsb.v v8,(a3)'
/opt/llm/InferLLM/src/kern/optimized/rvv/common.h:47: Error: unrecognized opcode vsetivli x0,1,e32,m1', extension v' or zve64x' or zve32x' required
/opt/llm/InferLLM/src/kern/optimized/rvv/common.h:48: Error: unrecognized opcode vfmv.s.f v1,fs1', extension v' or zve64d' or zve64f' or zve32f' required /opt/llm/InferLLM/src/kern/optimized/rvv/common.h:53: Error: unrecognized opcode vsetvl x0,a4,a2', extension v' or zve64x' or zve32x' required /opt/llm/InferLLM/src/kern/optimized/rvv/common.h:54: Error: unrecognized opcode vlbu.v v8,(a3)'
/opt/llm/InferLLM/src/kern/optimized/rvv/common.h:55: Error: unrecognized opcode vsetvl a4,a5,a1', extension v' or zve64x' or zve32x' required
/opt/llm/InferLLM/src/kern/optimized/rvv/common.h:56: Error: unrecognized opcode vfsgnjx.vv v8,v8,v8', extension v' or zve64d' or zve64f' or zve32f' required /opt/llm/InferLLM/src/kern/optimized/rvv/common.h:57: Error: unrecognized opcode vfredmax.vs v1,v8,v1', extension v' or zve64d' or zve64f' or zve32f' required
/opt/llm/InferLLM/src/kern/optimized/rvv/common.h:66: Error: unrecognized opcode vsetivli x0,1,e32,m1', extension v' or zve64x' or zve32x' required
/opt/llm/InferLLM/src/kern/optimized/rvv/common.h:67: Error: unrecognized opcode vfmv.f.s fa5,v1', extension v' or zve64d' or zve64f' or `zve32f' required
make[2]: *** [CMakeFiles/InferLLM.dir/build.make:328: CMakeFiles/InferLLM.dir/src/kern/optimized/rvv/kernel.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:93: CMakeFiles/InferLLM.dir/all] Error 2
make: *** [Makefile:91: all] Error 2

@Javipove
Copy link

I have the same problem. I am trying to compile it for SG2042 using the Xuantie GCC but there are some instructions that belong to RVV 1.0 such as "setivli" in the kernels, and in the cmake it there is only the option of rvv 1.0 not a rvv 0.7. .Please add a guide or explained which are the steps to compile for SG2042

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

2 participants