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

In function ‘xnn_qs8_qc8w_gemm_minmax_fp32_ukernel_1x2c4__armsimd32’: error: unknown type name ‘int8x4_t’ #7729

Open
jameshilliard opened this issue Jan 28, 2025 · 2 comments

Comments

@jameshilliard
Copy link

More errors on arm32:

/home/buildroot/buildroot/output/build/xnnpack-f8e3c974b6781845fe294f3a24cd98a5b0d87dad/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x2c4-minmax-fp32-armsimd32.c: In functionxnn_qs8_qc8w_gemm_minmax_fp32_ukernel_1x2c4__armsimd32’:
/home/buildroot/buildroot/output/build/xnnpack-f8e3c974b6781845fe294f3a24cd98a5b0d87dad/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x2c4-minmax-fp32-armsimd32.c:49:13: error: unknown type nameint8x4_tconst int8x4_t va0 = (int8x4_t) unaligned_load_s32(a0); a0 += 4;
             ^~~~~~~~
/home/buildroot/buildroot/output/build/xnnpack-f8e3c974b6781845fe294f3a24cd98a5b0d87dad/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x2c4-minmax-fp32-armsimd32.c:49:29: error: ‘int8x4_tundeclared (first use in this function); did you meanint64_t’?
       const int8x4_t va0 = (int8x4_t) unaligned_load_s32(a0); a0 += 4;
                             ^~~~~~~~
                             int64_t
/home/buildroot/buildroot/output/build/xnnpack-f8e3c974b6781845fe294f3a24cd98a5b0d87dad/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x2c4-minmax-fp32-armsimd32.c:49:29: note: each undeclared identifier is reported only once for each function it appears in
/home/buildroot/buildroot/output/build/xnnpack-f8e3c974b6781845fe294f3a24cd98a5b0d87dad/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x2c4-minmax-fp32-armsimd32.c:49:39: error: expected ‘,’ or ‘;’ beforeunaligned_load_s32const int8x4_t va0 = (int8x4_t) unaligned_load_s32(a0); a0 += 4;
                                       ^~~~~~~~~~~~~~~~~~
/home/buildroot/buildroot/output/build/xnnpack-f8e3c974b6781845fe294f3a24cd98a5b0d87dad/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x2c4-minmax-fp32-armsimd32.c:51:13: error: unknown type nameint16x2_tconst int16x2_t va0c02 = __sxtb16(va0);
             ^~~~~~~~~
/home/buildroot/buildroot/output/build/xnnpack-f8e3c974b6781845fe294f3a24cd98a5b0d87dad/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x2c4-minmax-fp32-armsimd32.c:51:32: warning: implicit declaration of function__sxtb16’ [-Wimplicit-function-declaration]
       const int16x2_t va0c02 = __sxtb16(va0);
                                ^~~~~~~~
/home/buildroot/buildroot/output/build/xnnpack-f8e3c974b6781845fe294f3a24cd98a5b0d87dad/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x2c4-minmax-fp32-armsimd32.c:52:13: error: unknown type nameint16x2_tconst int16x2_t va0c13 = __sxtb16(__ror(va0, 8));
             ^~~~~~~~~
/home/buildroot/buildroot/output/build/xnnpack-f8e3c974b6781845fe294f3a24cd98a5b0d87dad/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x2c4-minmax-fp32-armsimd32.c:54:22: error: expected=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ beforevb0const int8x4_t vb0 = *((const int8x4_t*) w); w = (const int8_t*) w + 4;
                      ^~~
/home/buildroot/buildroot/output/build/xnnpack-f8e3c974b6781845fe294f3a24cd98a5b0d87dad/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x2c4-minmax-fp32-armsimd32.c:54:22: error: ‘vb0undeclared (first use in this function); did you meanva0’?
       const int8x4_t vb0 = *((const int8x4_t*) w); w = (const int8_t*) w + 4;
                      ^~~
                      va0
/home/buildroot/buildroot/output/build/xnnpack-f8e3c974b6781845fe294f3a24cd98a5b0d87dad/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x2c4-minmax-fp32-armsimd32.c:54:37: error: expected ‘)’ beforeint8x4_tconst int8x4_t vb0 = *((const int8x4_t*) w); w = (const int8_t*) w + 4;
                                     ^~~~~~~~
/home/buildroot/buildroot/output/build/xnnpack-f8e3c974b6781845fe294f3a24cd98a5b0d87dad/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x2c4-minmax-fp32-armsimd32.c:54:22: warning: type defaults tointin type name [-Wimplicit-int]
       const int8x4_t vb0 = *((const int8x4_t*) w); w = (const int8_t*) w + 4;
                      ^~~
/home/buildroot/buildroot/output/build/xnnpack-f8e3c974b6781845fe294f3a24cd98a5b0d87dad/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x2c4-minmax-fp32-armsimd32.c:54:28: error: invalid type argument of unary*’ (haveint’)
       const int8x4_t vb0 = *((const int8x4_t*) w); w = (const int8_t*) w + 4;
                            ^~~~~~~~~~~~~~~~~~~~~~
/home/buildroot/buildroot/output/build/xnnpack-f8e3c974b6781845fe294f3a24cd98a5b0d87dad/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x2c4-minmax-fp32-armsimd32.c:55:13: error: unknown type nameint16x2_tconst int16x2_t vb0c02 = __sxtb16(vb0);
             ^~~~~~~~~
/home/buildroot/buildroot/output/build/xnnpack-f8e3c974b6781845fe294f3a24cd98a5b0d87dad/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x2c4-minmax-fp32-armsimd32.c:57:17: warning: implicit declaration of function__smlad’ [-Wimplicit-function-declaration]
       vacc0x0 = __smlad(va0c02, vb0c02, vacc0x0);
                 ^~~~~~~
/home/buildroot/buildroot/output/build/xnnpack-f8e3c974b6781845fe294f3a24cd98a5b0d87dad/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x2c4-minmax-fp32-armsimd32.c:59:13: error: unknown type nameint16x2_tconst int16x2_t vb0c13 = __sxtb16(__ror(vb0, 8));
             ^~~~~~~~~
/home/buildroot/buildroot/output/build/xnnpack-f8e3c974b6781845fe294f3a24cd98a5b0d87dad/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x2c4-minmax-fp32-armsimd32.c:61:22: error: expected=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ beforevb1const int8x4_t vb1 = *((const int8x4_t*) w); w = (const int8_t*) w + 4;
                      ^~~
/home/buildroot/buildroot/output/build/xnnpack-f8e3c974b6781845fe294f3a24cd98a5b0d87dad/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x2c4-minmax-fp32-armsimd32.c:61:22: error: ‘vb1undeclared (first use in this function); did you meanvb0’?
       const int8x4_t vb1 = *((const int8x4_t*) w); w = (const int8_t*) w + 4;
                      ^~~
                      vb0
/home/buildroot/buildroot/output/build/xnnpack-f8e3c974b6781845fe294f3a24cd98a5b0d87dad/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x2c4-minmax-fp32-armsimd32.c:61:37: error: expected ‘)’ beforeint8x4_tconst int8x4_t vb1 = *((const int8x4_t*) w); w = (const int8_t*) w + 4;
                                     ^~~~~~~~
/home/buildroot/buildroot/output/build/xnnpack-f8e3c974b6781845fe294f3a24cd98a5b0d87dad/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x2c4-minmax-fp32-armsimd32.c:61:22: warning: type defaults tointin type name [-Wimplicit-int]
       const int8x4_t vb1 = *((const int8x4_t*) w); w = (const int8_t*) w + 4;
                      ^~~
/home/buildroot/buildroot/output/build/xnnpack-f8e3c974b6781845fe294f3a24cd98a5b0d87dad/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x2c4-minmax-fp32-armsimd32.c:61:28: error: invalid type argument of unary*’ (haveint’)
       const int8x4_t vb1 = *((const int8x4_t*) w); w = (const int8_t*) w + 4;
                            ^~~~~~~~~~~~~~~~~~~~~~
/home/buildroot/buildroot/output/build/xnnpack-f8e3c974b6781845fe294f3a24cd98a5b0d87dad/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x2c4-minmax-fp32-armsimd32.c:62:13: error: unknown type nameint16x2_tconst int16x2_t vb1c02 = __sxtb16(vb1);
             ^~~~~~~~~
/home/buildroot/buildroot/output/build/xnnpack-f8e3c974b6781845fe294f3a24cd98a5b0d87dad/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x2c4-minmax-fp32-armsimd32.c:66:13: error: unknown type nameint16x2_tconst int16x2_t vb1c13 = __sxtb16(__ror(vb1, 8));
             ^~~~~~~~~
/home/buildroot/buildroot/output/build/xnnpack-f8e3c974b6781845fe294f3a24cd98a5b0d87dad/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x2c4-minmax-fp32-armsimd32.c:88:15: warning: implicit declaration of function__qsub’; did you mean__wur’? [-Wimplicit-function-declaration]
     vout0x0 = __qsub(vout0x0, vmagic_bias_less_zero_point);
               ^~~~~~
               __wur
/home/buildroot/buildroot/output/build/xnnpack-f8e3c974b6781845fe294f3a24cd98a5b0d87dad/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x2c4-minmax-fp32-armsimd32.c:91:15: warning: implicit declaration of function__ssat’ [-Wimplicit-function-declaration]
     vout0x0 = __ssat(vout0x0, 8);
               ^~~~~~
/home/buildroot/buildroot/output/build/xnnpack-f8e3c974b6781845fe294f3a24cd98a5b0d87dad/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x2c4-minmax-fp32-armsimd32.c:98:20: error: expected=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ beforevoutput_minconst int8x4_t voutput_min = (int8x4_t) params->fp32_armsimd32.output_min;
                    ^~~~~~~~~~~
/home/buildroot/buildroot/output/build/xnnpack-f8e3c974b6781845fe294f3a24cd98a5b0d87dad/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x2c4-minmax-fp32-armsimd32.c:98:20: error: ‘voutput_minundeclared (first use in this function)
/home/buildroot/buildroot/output/build/xnnpack-f8e3c974b6781845fe294f3a24cd98a5b0d87dad/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x2c4-minmax-fp32-armsimd32.c:98:45: error: expected ‘;’ beforeparamsconst int8x4_t voutput_min = (int8x4_t) params->fp32_armsimd32.output_min;
                                             ^~~~~~
/home/buildroot/buildroot/output/build/xnnpack-f8e3c974b6781845fe294f3a24cd98a5b0d87dad/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x2c4-minmax-fp32-armsimd32.c:99:5: warning: implicit declaration of function__ssub8’ [-Wimplicit-function-declaration]
     __ssub8((int8x4_t) vout, voutput_min);
     ^~~~~~~
/home/buildroot/buildroot/output/build/xnnpack-f8e3c974b6781845fe294f3a24cd98a5b0d87dad/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x2c4-minmax-fp32-armsimd32.c:99:24: error: expected ‘)’ beforevout__ssub8((int8x4_t) vout, voutput_min);
                        ^~~~
/home/buildroot/buildroot/output/build/xnnpack-f8e3c974b6781845fe294f3a24cd98a5b0d87dad/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x2c4-minmax-fp32-armsimd32.c:100:23: warning: implicit declaration of function__sel’ [-Wimplicit-function-declaration]
     vout = (uint32_t) __sel((uint8x4_t) vout, (uint8x4_t) voutput_min);
                       ^~~~~
/home/buildroot/buildroot/output/build/xnnpack-f8e3c974b6781845fe294f3a24cd98a5b0d87dad/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x2c4-minmax-fp32-armsimd32.c:100:30: error: ‘uint8x4_tundeclared (first use in this function); did you meanint8x4_t’?
     vout = (uint32_t) __sel((uint8x4_t) vout, (uint8x4_t) voutput_min);
                              ^~~~~~~~~
                              int8x4_t
@fbarchard
Copy link
Collaborator

a quick test of armv7 builds okay locally for me. I did a clang build with bazel.
Are you using cmake or a different compiler?

int8x4 and armsimd is a variation for SIMD that uses GPR registers on mobile ARM that do not have NEON.

@jameshilliard
Copy link
Author

Are you using cmake or a different compiler?

Yes, I'm using cmake with a gcc based toolchain.

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