SimSIMD: Error while `pip install simsimd`: Building wheel for simsimd (pyproject.toml) ... error
Describe the bug
When I try to install simsimd into my python 3.10.15(also 3.12.4, 3.12.7 tried), An error occurred.
Detail of Error Output
```sh > pip install simsimd Collecting simsimd Using cached simsimd-5.9.9.tar.gz (152 kB) Installing build dependencies ... done Getting requirements to build wheel ... done Preparing metadata (pyproject.toml) ... done Building wheels for collected packages: simsimd Building wheel for simsimd (pyproject.toml) ... error error: subprocess-exited-with-error× Building wheel for simsimd (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [782 lines of output]
running bdist_wheel
running build
running build_py
running egg_info
writing simsimd.egg-info/PKG-INFO
writing dependency_links to simsimd.egg-info/dependency_links.txt
writing top-level names to simsimd.egg-info/top_level.txt
reading manifest file ‘simsimd.egg-info/SOURCES.txt’
reading manifest template ‘MANIFEST.in’
adding license file ‘LICENSE’
writing manifest file ‘simsimd.egg-info/SOURCES.txt’
creating build/lib.linux-x86_64-cpython-310/simsimd
copying python/annotations/init.pyi -> build/lib.linux-x86_64-cpython-310/simsimd
copying python/annotations/py.typed -> build/lib.linux-x86_64-cpython-310/simsimd
running build_ext
building ‘simsimd’ extension
creating build/temp.linux-x86_64-cpython-310/c
creating build/temp.linux-x86_64-cpython-310/python
gcc -pthread -B $HOME/miniconda3/envs/sam/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem $HOME/miniconda3/envs/sam/include -fPIC -O2 -isystem $HOME/miniconda3/envs/sam/include -fPIC -DSIMSIMD_NATIVE_F16=0 -DSIMSIMD_NATIVE_BF16=0 -DSIMSIMD_DYNAMIC_DISPATCH=1 -DSIMSIMD_TARGET_NEON=1 -DSIMSIMD_TARGET_NEON_F16=1 -DSIMSIMD_TARGET_NEON_BF16=1 -DSIMSIMD_TARGET_SVE=1 -DSIMSIMD_TARGET_SVE_F16=1 -DSIMSIMD_TARGET_SVE_BF16=1 -DSIMSIMD_TARGET_SVE2=1 -DSIMSIMD_TARGET_HASWELL=1 -DSIMSIMD_TARGET_SKYLAKE=1 -DSIMSIMD_TARGET_ICE=1 -DSIMSIMD_TARGET_GENOA=1 -DSIMSIMD_TARGET_SAPPHIRE=1 -DSIMSIMD_TARGET_TURIN=1 -DSIMSIMD_TARGET_SIERRA=0 -Iinclude -I$HOME/miniconda3/envs/sam/include/python3.10 -c c/lib.c -o build/temp.linux-x86_64-cpython-310/c/lib.o -std=c11 -O3 -ffast-math -fdiagnostics-color=always -fvisibility=default -fPIC -w -fopenmp
In file included from include/simsimd/simsimd.h:105,
from c/lib.c:48:
include/simsimd/binary.h: In function ‘simsimd_hamming_b8_ice’:
include/simsimd/binary.h:256:26: error: incompatible types when initializing type ‘__m512i’ {aka ‘__vector(8) long long int’} using type ‘int’
256 | __m512i a1_vec = _mm512_loadu_epi8(a);
| ^~~~~~~~~~~~~~~~~
include/simsimd/binary.h:257:26: error: incompatible types when initializing type ‘__m512i’ {aka ‘__vector(8) long long int’} using type ‘int’
257 | __m512i b1_vec = _mm512_loadu_epi8(b);
| ^~~~~~~~~~~~~~~~~
include/simsimd/binary.h:266:26: error: incompatible types when initializing type ‘__m512i’ {aka ‘__vector(8) long long int’} using type ‘int’
266 | __m512i a1_vec = _mm512_loadu_epi8(a);
| ^~~~~~~~~~~~~~~~~
include/simsimd/binary.h:267:26: error: incompatible types when initializing type ‘__m512i’ {aka ‘__vector(8) long long int’} using type ‘int’
267 | __m512i b1_vec = _mm512_loadu_epi8(b);
| ^~~~~~~~~~~~~~~~~
include/simsimd/binary.h:268:26: error: incompatible types when initializing type ‘__m512i’ {aka ‘__vector(8) long long int’} using type ‘int’
268 | __m512i a2_vec = _mm512_loadu_epi8(a + 64);
| ^~~~~~~~~~~~~~~~~
include/simsimd/binary.h:269:26: error: incompatible types when initializing type ‘__m512i’ {aka ‘__vector(8) long long int’} using type ‘int’
269 | __m512i b2_vec = _mm512_loadu_epi8(b + 64);
| ^~~~~~~~~~~~~~~~~
include/simsimd/binary.h:280:26: error: incompatible types when initializing type ‘__m512i’ {aka ‘__vector(8) long long int’} using type ‘int’
280 | __m512i a1_vec = _mm512_loadu_epi8(a);
| ^~~~~~~~~~~~~~~~~
include/simsimd/binary.h:281:26: error: incompatible types when initializing type ‘__m512i’ {aka ‘__vector(8) long long int’} using type ‘int’
281 | __m512i b1_vec = _mm512_loadu_epi8(b);
| ^~~~~~~~~~~~~~~~~
include/simsimd/binary.h:282:26: error: incompatible types when initializing type ‘__m512i’ {aka ‘__vector(8) long long int’} using type ‘int’
282 | __m512i a2_vec = _mm512_loadu_epi8(a + 64);
| ^~~~~~~~~~~~~~~~~
include/simsimd/binary.h:283:26: error: incompatible types when initializing type ‘__m512i’ {aka ‘__vector(8) long long int’} using type ‘int’
283 | __m512i b2_vec = _mm512_loadu_epi8(b + 64);
| ^~~~~~~~~~~~~~~~~
include/simsimd/binary.h:284:26: error: incompatible types when initializing type ‘__m512i’ {aka ‘__vector(8) long long int’} using type ‘int’
284 | __m512i a3_vec = _mm512_loadu_epi8(a + 128);
| ^~~~~~~~~~~~~~~~~
include/simsimd/binary.h:285:26: error: incompatible types when initializing type ‘__m512i’ {aka ‘__vector(8) long long int’} using type ‘int’
285 | __m512i b3_vec = _mm512_loadu_epi8(b + 128);
| ^~~~~~~~~~~~~~~~~
include/simsimd/binary.h:307:21: error: incompatible types when assigning to type ‘__m512i’ {aka ‘__vector(8) long long int’} from type ‘int’
307 | a_vec = _mm512_loadu_epi8(a);
| ^~~~~~~~~~~~~~~~~
include/simsimd/binary.h:308:21: error: incompatible types when assigning to type ‘__m512i’ {aka ‘__vector(8) long long int’} from type ‘int’
308 | b_vec = _mm512_loadu_epi8(b);
| ^~~~~~~~~~~~~~~~~
include/simsimd/binary.h: In function ‘simsimd_jaccard_b8_ice’:
include/simsimd/binary.h:349:26: error: incompatible types when initializing type ‘__m512i’ {aka ‘__vector(8) long long int’} using type ‘int’
349 | __m512i a1_vec = _mm512_loadu_epi8(a);
| ^~~~~~~~~~~~~~~~~
include/simsimd/binary.h:350:26: error: incompatible types when initializing type ‘__m512i’ {aka ‘__vector(8) long long int’} using type ‘int’
350 | __m512i b1_vec = _mm512_loadu_epi8(b);
| ^~~~~~~~~~~~~~~~~
include/simsimd/binary.h:362:26: error: incompatible types when initializing type ‘__m512i’ {aka ‘__vector(8) long long int’} using type ‘int’
362 | __m512i a1_vec = _mm512_loadu_epi8(a);
| ^~~~~~~~~~~~~~~~~
include/simsimd/binary.h:363:26: error: incompatible types when initializing type ‘__m512i’ {aka ‘__vector(8) long long int’} using type ‘int’
363 | __m512i b1_vec = _mm512_loadu_epi8(b);
| ^~~~~~~~~~~~~~~~~
include/simsimd/binary.h:364:26: error: incompatible types when initializing type ‘__m512i’ {aka ‘__vector(8) long long int’} using type ‘int’
364 | __m512i a2_vec = _mm512_loadu_epi8(a + 64);
| ^~~~~~~~~~~~~~~~~
include/simsimd/binary.h:365:26: error: incompatible types when initializing type ‘__m512i’ {aka ‘__vector(8) long long int’} using type ‘int’
365 | __m512i b2_vec = _mm512_loadu_epi8(b + 64);
| ^~~~~~~~~~~~~~~~~
include/simsimd/binary.h:381:26: error: incompatible types when initializing type ‘__m512i’ {aka ‘__vector(8) long long int’} using type ‘int’
381 | __m512i a1_vec = _mm512_loadu_epi8(a);
| ^~~~~~~~~~~~~~~~~
include/simsimd/binary.h:382:26: error: incompatible types when initializing type ‘__m512i’ {aka ‘__vector(8) long long int’} using type ‘int’
382 | __m512i b1_vec = _mm512_loadu_epi8(b);
| ^~~~~~~~~~~~~~~~~
include/simsimd/binary.h:383:26: error: incompatible types when initializing type ‘__m512i’ {aka ‘__vector(8) long long int’} using type ‘int’
383 | __m512i a2_vec = _mm512_loadu_epi8(a + 64);
| ^~~~~~~~~~~~~~~~~
include/simsimd/binary.h:384:26: error: incompatible types when initializing type ‘__m512i’ {aka ‘__vector(8) long long int’} using type ‘int’
384 | __m512i b2_vec = _mm512_loadu_epi8(b + 64);
| ^~~~~~~~~~~~~~~~~
include/simsimd/binary.h:385:26: error: incompatible types when initializing type ‘__m512i’ {aka ‘__vector(8) long long int’} using type ‘int’
385 | __m512i a3_vec = _mm512_loadu_epi8(a + 128);
| ^~~~~~~~~~~~~~~~~
include/simsimd/binary.h:386:26: error: incompatible types when initializing type ‘__m512i’ {aka ‘__vector(8) long long int’} using type ‘int’
386 | __m512i b3_vec = _mm512_loadu_epi8(b + 128);
| ^~~~~~~~~~~~~~~~~
include/simsimd/binary.h:414:21: error: incompatible types when assigning to type ‘__m512i’ {aka ‘__vector(8) long long int’} from type ‘int’
414 | a_vec = _mm512_loadu_epi8(a);
| ^~~~~~~~~~~~~~~~~
include/simsimd/binary.h:415:21: error: incompatible types when assigning to type ‘__m512i’ {aka ‘__vector(8) long long int’} from type ‘int’
415 | b_vec = _mm512_loadu_epi8(b);
| ^~~~~~~~~~~~~~~~~
In file included from include/simsimd/curved.h:28,
from include/simsimd/simsimd.h:106,
from c/lib.c:48:
include/simsimd/dot.h: In function ‘simsimd_dot_bf16_genoa’:
include/simsimd/dot.h:1528:21: error: incompatible types when assigning to type ‘__m512i’ {aka ‘__vector(8) long long int’} from type ‘int’
1528 | a_i16_vec = _mm512_loadu_epi16(a);
| ^~~~~~~~~~~~~~~~~~
include/simsimd/dot.h:1529:21: error: incompatible types when assigning to type ‘__m512i’ {aka ‘__vector(8) long long int’} from type ‘int’
1529 | b_i16_vec = _mm512_loadu_epi16(b);
| ^~~~~~~~~~~~~~~~~~
include/simsimd/dot.h: In function ‘simsimd_dot_bf16c_genoa’:
include/simsimd/dot.h:1566:17: error: incompatible types when assigning to type ‘__m512i’ {aka ‘__vector(8) long long int’} from type ‘int’
1566 | a_vec = _mm512_loadu_epi16(a);
| ^~~~~~~~~~~~~~~~~~
include/simsimd/dot.h:1567:17: error: incompatible types when assigning to type ‘__m512i’ {aka ‘__vector(8) long long int’} from type ‘int’
1567 | b_vec = _mm512_loadu_epi16(b);
| ^~~~~~~~~~~~~~~~~~
include/simsimd/dot.h: In function ‘simsimd_vdot_bf16c_genoa’:
include/simsimd/dot.h:1608:17: error: incompatible types when assigning to type ‘__m512i’ {aka ‘__vector(8) long long int’} from type ‘int’
1608 | a_vec = _mm512_loadu_epi16(a);
| ^~~~~~~~~~~~~~~~~~
include/simsimd/dot.h:1609:17: error: incompatible types when assigning to type ‘__m512i’ {aka ‘__vector(8) long long int’} from type ‘int’
1609 | b_vec = _mm512_loadu_epi16(b);
| ^~~~~~~~~~~~~~~~~~
include/simsimd/dot.h: At top level:
cc1: error: attribute ‘avx512fp16’ argument ‘target’ is unknown
include/simsimd/dot.h: In function ‘simsimd_dot_f16_sapphire’:
include/simsimd/dot.h:1635:5: error: unknown type name ‘__m512h’; did you mean ‘__m512bh’?
1635 | __m512h ab_vec = _mm512_setzero_ph();
| ^~~~~~~
| __m512bh
include/simsimd/dot.h:1646:21: error: incompatible types when assigning to type ‘__m512i’ {aka ‘__vector(8) long long int’} from type ‘int’
1646 | a_i16_vec = _mm512_loadu_epi16(a);
| ^~~~~~~~~~~~~~~~~~
include/simsimd/dot.h:1647:21: error: incompatible types when assigning to type ‘__m512i’ {aka ‘__vector(8) long long int’} from type ‘int’
1647 | b_i16_vec = _mm512_loadu_epi16(b);
| ^~~~~~~~~~~~~~~~~~
include/simsimd/dot.h: In function ‘simsimd_dot_f16c_sapphire’:
include/simsimd/dot.h:1658:5: error: unknown type name ‘__m512h’; did you mean ‘__m512bh’?
1658 | __m512h ab_real_vec = _mm512_setzero_ph();
| ^~~~~~~
| __m512bh
include/simsimd/dot.h:1659:5: error: unknown type name ‘__m512h’; did you mean ‘__m512bh’?
1659 | __m512h ab_imag_vec = _mm512_setzero_ph();
| ^~~~~~~
| __m512bh
include/simsimd/dot.h:1684:17: error: incompatible types when assigning to type ‘__m512i’ {aka ‘__vector(8) long long int’} from type ‘int’
1684 | a_vec = _mm512_loadu_epi16(a);
| ^~~~~~~~~~~~~~~~~~
include/simsimd/dot.h:1685:17: error: incompatible types when assigning to type ‘__m512i’ {aka ‘__vector(8) long long int’} from type ‘int’
1685 | b_vec = _mm512_loadu_epi16(b);
| ^~~~~~~~~~~~~~~~~~
include/simsimd/dot.h: In function ‘simsimd_vdot_f16c_sapphire’:
include/simsimd/dot.h:1703:5: error: unknown type name ‘__m512h’; did you mean ‘__m512bh’?
1703 | __m512h ab_real_vec = _mm512_setzero_ph();
| ^~~~~~~
| __m512bh
include/simsimd/dot.h:1704:5: error: unknown type name ‘__m512h’; did you mean ‘__m512bh’?
1704 | __m512h ab_imag_vec = _mm512_setzero_ph();
| ^~~~~~~
| __m512bh
include/simsimd/dot.h:1729:17: error: incompatible types when assigning to type ‘__m512i’ {aka ‘__vector(8) long long int’} from type ‘int’
1729 | a_vec = _mm512_loadu_epi16(a);
| ^~~~~~~~~~~~~~~~~~
include/simsimd/dot.h:1730:17: error: incompatible types when assigning to type ‘__m512i’ {aka ‘__vector(8) long long int’} from type ‘int’
1730 | b_vec = _mm512_loadu_epi16(b);
| ^~~~~~~~~~~~~~~~~~
In file included from include/simsimd/curved.h:29,
from include/simsimd/simsimd.h:106,
from c/lib.c:48:
include/simsimd/spatial.h: In function ‘simsimd_l2sq_bf16_genoa’:
include/simsimd/spatial.h:1746:21: error: incompatible types when assigning to type ‘__m512i’ {aka ‘__vector(8) long long int’} from type ‘int’
1746 | a_i16_vec = _mm512_loadu_epi16(a);
| ^~~~~~~~~~~~~~~~~~
include/simsimd/spatial.h:1747:21: error: incompatible types when assigning to type ‘__m512i’ {aka ‘__vector(8) long long int’} from type ‘int’
1747 | b_i16_vec = _mm512_loadu_epi16(b);
| ^~~~~~~~~~~~~~~~~~
include/simsimd/spatial.h: In function ‘simsimd_cos_bf16_genoa’:
include/simsimd/spatial.h:1772:21: error: incompatible types when assigning to type ‘__m512i’ {aka ‘__vector(8) long long int’} from type ‘int’
1772 | a_i16_vec = _mm512_loadu_epi16(a);
| ^~~~~~~~~~~~~~~~~~
include/simsimd/spatial.h:1773:21: error: incompatible types when assigning to type ‘__m512i’ {aka ‘__vector(8) long long int’} from type ‘int’
1773 | b_i16_vec = _mm512_loadu_epi16(b);
| ^~~~~~~~~~~~~~~~~~
include/simsimd/spatial.h: At top level:
cc1: error: attribute ‘avx512fp16’ argument ‘target’ is unknown
include/simsimd/spatial.h: In function ‘simsimd_l2sq_f16_sapphire’:
include/simsimd/spatial.h:1803:5: error: unknown type name ‘__m512h’; did you mean ‘__m512bh’?
1803 | __m512h d2_vec = _mm512_setzero_ph();
| ^~~~~~~
| __m512bh
include/simsimd/spatial.h:1814:21: error: incompatible types when assigning to type ‘__m512i’ {aka ‘__vector(8) long long int’} from type ‘int’
1814 | a_i16_vec = _mm512_loadu_epi16(a);
| ^~~~~~~~~~~~~~~~~~
include/simsimd/spatial.h:1815:21: error: incompatible types when assigning to type ‘__m512i’ {aka ‘__vector(8) long long int’} from type ‘int’
1815 | b_i16_vec = _mm512_loadu_epi16(b);
| ^~~~~~~~~~~~~~~~~~
include/simsimd/spatial.h:1818:5: error: unknown type name ‘__m512h’; did you mean ‘__m512bh’?
1818 | __m512h d_vec = _mm512_sub_ph(_mm512_castsi512_ph(a_i16_vec), _mm512_castsi512_ph(b_i16_vec));
| ^~~~~~~
| __m512bh
include/simsimd/spatial.h: In function ‘simsimd_cos_f16_sapphire’:
include/simsimd/spatial.h:1827:5: error: unknown type name ‘__m512h’; did you mean ‘__m512bh’?
1827 | __m512h ab_vec = _mm512_setzero_ph();
| ^~~~~~~
| __m512bh
include/simsimd/spatial.h:1828:5: error: unknown type name ‘__m512h’; did you mean ‘__m512bh’?
1828 | __m512h a2_vec = _mm512_setzero_ph();
| ^~~~~~~
| __m512bh
include/simsimd/spatial.h:1829:5: error: unknown type name ‘__m512h’; did you mean ‘__m512bh’?
1829 | __m512h b2_vec = _mm512_setzero_ph();
| ^~~~~~~
| __m512bh
include/simsimd/spatial.h:1840:21: error: incompatible types when assigning to type ‘__m512i’ {aka ‘__vector(8) long long int’} from type ‘int’
1840 | a_i16_vec = _mm512_loadu_epi16(a);
| ^~~~~~~~~~~~~~~~~~
include/simsimd/spatial.h:1841:21: error: incompatible types when assigning to type ‘__m512i’ {aka ‘__vector(8) long long int’} from type ‘int’
1841 | b_i16_vec = _mm512_loadu_epi16(b);
| ^~~~~~~~~~~~~~~~~~
include/simsimd/spatial.h: In function ‘simsimd_l2sq_i4x2_ice’:
include/simsimd/spatial.h:2094:22: error: incompatible types when assigning to type ‘__m512i’ {aka ‘__vector(8) long long int’} from type ‘int’
2094 | a_i4x2_vec = _mm512_loadu_epi8(a);
| ^~~~~~~~~~~~~~~~~
include/simsimd/spatial.h:2095:22: error: incompatible types when assigning to type ‘__m512i’ {aka ‘__vector(8) long long int’} from type ‘int’
2095 | b_i4x2_vec = _mm512_loadu_epi8(b);
| ^~~~~~~~~~~~~~~~~
include/simsimd/spatial.h: In function ‘simsimd_cos_i4x2_ice’:
include/simsimd/spatial.h:2208:22: error: incompatible types when assigning to type ‘__m512i’ {aka ‘__vector(8) long long int’} from type ‘int’
2208 | a_i4x2_vec = _mm512_loadu_epi8(a);
| ^~~~~~~~~~~~~~~~~
include/simsimd/spatial.h:2209:22: error: incompatible types when assigning to type ‘__m512i’ {aka ‘__vector(8) long long int’} from type ‘int’
2209 | b_i4x2_vec = _mm512_loadu_epi8(b);
| ^~~~~~~~~~~~~~~~~
In file included from include/simsimd/simsimd.h:106,
from c/lib.c:48:
include/simsimd/curved.h: In function ‘simsimd_bilinear_bf16_genoa’:
include/simsimd/curved.h:661:21: error: incompatible types when assigning to type ‘__m512i’ {aka ‘__vector(8) long long int’} from type ‘int’
661 | b_vec = _mm512_loadu_epi16(b + j);
| ^~~~~~~~~~~~~~~~~~
include/simsimd/curved.h:662:21: error: incompatible types when assigning to type ‘__m512i’ {aka ‘__vector(8) long long int’} from type ‘int’
662 | c_vec = _mm512_loadu_epi16(c + i * n + j);
| ^~~~~~~~~~~~~~~~~~
include/simsimd/curved.h: In function ‘simsimd_mahalanobis_bf16_genoa’:
include/simsimd/curved.h:694:23: error: incompatible types when assigning to type ‘__m512i’ {aka ‘__vector(8) long long int’} from type ‘int’
694 | a_j_vec = _mm512_loadu_epi16(a + j);
| ^~~~~~~~~~~~~~~~~~
include/simsimd/curved.h:695:23: error: incompatible types when assigning to type ‘__m512i’ {aka ‘__vector(8) long long int’} from type ‘int’
695 | b_j_vec = _mm512_loadu_epi16(b + j);
| ^~~~~~~~~~~~~~~~~~
include/simsimd/curved.h:696:21: error: incompatible types when assigning to type ‘__m512i’ {aka ‘__vector(8) long long int’} from type ‘int’
696 | c_vec = _mm512_loadu_epi16(c + i * n + j);
| ^~~~~~~~~~~~~~~~~~
include/simsimd/curved.h: At top level:
cc1: error: attribute ‘avx512fp16’ argument ‘target’ is unknown
include/simsimd/curved.h: In function ‘simsimd_bilinear_f16_sapphire’:
include/simsimd/curved.h:728:5: error: unknown type name ‘__m512h’; did you mean ‘__m512bh’?
728 | __m512h sum_vec = _mm512_setzero_ph();
| ^~~~~~~
| __m512bh
include/simsimd/curved.h:732:9: error: unknown type name ‘__m512h’; did you mean ‘__m512bh’?
732 | __m512h a_vec = _mm512_castsi512_ph(_mm512_set1_epi16((short const )(a + i)));
| ^~~~~~~
| __m512bh
include/simsimd/curved.h:733:9: error: unknown type name ‘__m512h’; did you mean ‘__m512bh’?
733 | __m512h partial_sum_vec = _mm512_setzero_ph();
| ^~~~~~~
| __m512bh
include/simsimd/curved.h:739:21: error: incompatible types when assigning to type ‘__m512i’ {aka ‘__vector(8) long long int’} from type ‘int’
739 | b_vec = _mm512_loadu_epi16(b + j);
| ^~~~~~~~~~~~~~~~~~
include/simsimd/curved.h:740:21: error: incompatible types when assigning to type ‘__m512i’ {aka ‘__vector(8) long long int’} from type ‘int’
740 | c_vec = _mm512_loadu_epi16(c + i * n + j);
| ^~~~~~~~~~~~~~~~~~
include/simsimd/curved.h: In function ‘simsimd_mahalanobis_f16_sapphire’:
include/simsimd/curved.h:760:5: error: unknown type name ‘__m512h’; did you mean ‘__m512bh’?
760 | __m512h sum_vec = _mm512_setzero_ph();
| ^~~~~~~
| __m512bh
include/simsimd/curved.h:764:9: error: unknown type name ‘__m512h’; did you mean ‘__m512bh’?
764 | __m512h a_i_vec = _mm512_castsi512_ph(_mm512_set1_epi16((short const )(a + i)));
| ^~~~~~~
| __m512bh
include/simsimd/curved.h:765:9: error: unknown type name ‘__m512h’; did you mean ‘__m512bh’?
765 | __m512h b_i_vec = _mm512_castsi512_ph(_mm512_set1_epi16((short const )(b + i)));
| ^~~~~~~
| __m512bh
include/simsimd/curved.h:766:9: error: unknown type name ‘__m512h’; did you mean ‘__m512bh’?
766 | __m512h diff_i_vec = _mm512_sub_ph(a_i_vec, b_i_vec);
| ^~~~~~~
| __m512bh
include/simsimd/curved.h:767:9: error: unknown type name ‘__m512h’; did you mean ‘__m512bh’?
767 | __m512h partial_sum_vec = _mm512_setzero_ph();
| ^~~~~~~
| __m512bh
include/simsimd/curved.h:768:9: error: unknown type name ‘__m512h’; did you mean ‘__m512bh’?
768 | __m512h diff_j_vec;
| ^~~~~~~
| __m512bh
include/simsimd/curved.h:775:23: error: incompatible types when assigning to type ‘__m512i’ {aka ‘__vector(8) long long int’} from type ‘int’
775 | a_j_vec = _mm512_loadu_epi16(a + j);
| ^~~~~~~~~~~~~~~~~~
include/simsimd/curved.h:776:23: error: incompatible types when assigning to type ‘__m512i’ {aka ‘__vector(8) long long int’} from type ‘int’
776 | b_j_vec = _mm512_loadu_epi16(b + j);
| ^~~~~~~~~~~~~~~~~~
include/simsimd/curved.h:777:21: error: incompatible types when assigning to type ‘__m512i’ {aka ‘__vector(8) long long int’} from type ‘int’
777 | c_vec = _mm512_loadu_epi16(c + i * n + j);
| ^~~~~~~~~~~~~~~~~~
In file included from include/simsimd/simsimd.h:108,
from c/lib.c:48:
include/simsimd/elementwise.h: In function ‘simsimd_sum_bf16_skylake’:
include/simsimd/elementwise.h:1287:22: error: incompatible types when assigning to type ‘__m256i’ from type ‘int’
1287 | a_bf16_vec = _mm256_loadu_epi16(a);
| ^~~~~~~~~~~~~~~~~~
include/simsimd/elementwise.h:1288:22: error: incompatible types when assigning to type ‘__m256i’ from type ‘int’
1288 | b_bf16_vec = _mm256_loadu_epi16(b);
| ^~~~~~~~~~~~~~~~~~
include/simsimd/elementwise.h: In function ‘simsimd_scale_bf16_skylake’:
include/simsimd/elementwise.h:1313:22: error: incompatible types when assigning to type ‘__m256i’ from type ‘int’
1313 | a_bf16_vec = _mm256_loadu_epi16(a);
| ^~~~~~~~~~~~~~~~~~
include/simsimd/elementwise.h: In function ‘simsimd_wsum_bf16_skylake’:
include/simsimd/elementwise.h:1357:22: error: incompatible types when assigning to type ‘__m256i’ from type ‘int’
1357 | a_bf16_vec = _mm256_loadu_epi16(a);
| ^~~~~~~~~~~~~~~~~~
include/simsimd/elementwise.h:1358:22: error: incompatible types when assigning to type ‘__m256i’ from type ‘int’
1358 | b_bf16_vec = _mm256_loadu_epi16(b);
| ^~~~~~~~~~~~~~~~~~
include/simsimd/elementwise.h: In function ‘simsimd_fma_bf16_skylake’:
include/simsimd/elementwise.h:1449:22: error: incompatible types when assigning to type ‘__m256i’ from type ‘int’
1449 | a_bf16_vec = _mm256_loadu_epi16(a);
| ^~~~~~~~~~~~~~~~~~
include/simsimd/elementwise.h:1450:22: error: incompatible types when assigning to type ‘__m256i’ from type ‘int’
1450 | b_bf16_vec = _mm256_loadu_epi16(b);
| ^~~~~~~~~~~~~~~~~~
include/simsimd/elementwise.h:1451:22: error: incompatible types when assigning to type ‘__m256i’ from type ‘int’
1451 | c_bf16_vec = _mm256_loadu_epi16©;
| ^~~~~~~~~~~~~~~~~~
include/simsimd/elementwise.h: At top level:
cc1: error: attribute ‘avx512fp16’ argument ‘target’ is unknown
include/simsimd/elementwise.h: In function ‘simsimd_sum_f16_sapphire’:
include/simsimd/elementwise.h:1479:5: error: unknown type name ‘__m512h’; did you mean ‘__m512bh’?
1479 | __m512h a_f16_vec, b_f16_vec;
| ^~~~~~~
| __m512bh
include/simsimd/elementwise.h:1480:5: error: unknown type name ‘__m512h’; did you mean ‘__m512bh’?
1480 | __m512h sum_f16_vec;
| ^~~~~~~
| __m512bh
include/simsimd/elementwise.h:1494:44: error: incompatible type for argument 3 of ‘_mm512_mask_storeu_epi16’
1494 | _mm512_mask_storeu_epi16(result, mask, _mm512_castph_si512(sum_f16_vec));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| |
| int
In file included from $GCC_PATH/lib/gcc/x86_64-pc-linux-gnu/10.5.0/include/immintrin.h:65,
from include/simsimd/types.h:240,
from include/simsimd/binary.h:21,
from include/simsimd/simsimd.h:105,
from c/lib.c:48:
$GCC_PATH/lib/gcc/x86_64-pc-linux-gnu/10.5.0/include/avx512bwintrin.h:325:61: note: expected ‘__m512i’ {aka ‘__vector(8) long long int’} but argument is of type ‘int’
325 | _mm512_mask_storeu_epi16 (void __P, __mmask32 __U, __m512i __A)
|
| __m512bh
include/simsimd/elementwise.h:1503:41: error: ‘_Float16’ is not supported on this target
1503 | __m512h alpha_vec = _mm512_set1_ph((_Float16)alpha);
| ^~~~~~~~
include/simsimd/elementwise.h:1504:5: error: unknown type name ‘__m512h’; did you mean ‘__m512bh’?
1504 | __m512h a_f16_vec, b_f16_vec;
| ^~~~~~~
| __m512bh
include/simsimd/elementwise.h:1505:5: error: unknown type name ‘__m512h’; did you mean ‘__m512bh’?
1505 | __m512h sum_f16_vec;
| ^~~~~~~
| __m512bh
include/simsimd/elementwise.h:1517:44: error: incompatible type for argument 3 of ‘_mm512_mask_storeu_epi16’
1517 | _mm512_mask_storeu_epi16(result, mask, _mm512_castph_si512(sum_f16_vec));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| |
| int
In file included from $GCC_PATH/lib/gcc/x86_64-pc-linux-gnu/10.5.0/include/immintrin.h:65,
from include/simsimd/types.h:240,
from include/simsimd/binary.h:21,
from include/simsimd/simsimd.h:105,
from c/lib.c:48:
$GCC_PATH/lib/gcc/x86_64-pc-linux-gnu/10.5.0/include/avx512bwintrin.h:325:61: note: expected ‘__m512i’ {aka ‘__vector(8) long long int’} but argument is of type ‘int’
325 | _mm512_mask_storeu_epi16 (void __P, __mmask32 __U, __m512i __A)
| ^
In file included from include/simsimd/simsimd.h:108,
from c/lib.c:48:
include/simsimd/elementwise.h: In function ‘simsimd_scale_f16_sapphire’:
include/simsimd/elementwise.h:1503:5: error: unknown type name ‘__m512h’; did you mean ‘__m512bh’?
1503 | __m512h alpha_vec = _mm512_set1_ph((_Float16)alpha);
| ^
| __m512bh
include/simsimd/elementwise.h:1543:41: error: ‘_Float16’ is not supported on this target
1543 | __m512h alpha_vec = _mm512_set1_ph((_Float16)alpha);
| ^~~~~~~~
include/simsimd/elementwise.h:1544:5: error: unknown type name ‘__m512h’; did you mean ‘__m512bh’?
1544 | __m512h beta_vec = _mm512_set1_ph((_Float16)beta);
| ^~~~~~~
| __m512bh
include/simsimd/elementwise.h:1544:40: error: ‘_Float16’ is not supported on this target
1544 | __m512h beta_vec = _mm512_set1_ph((_Float16)beta);
| ^~~~~~~~
include/simsimd/elementwise.h:1545:5: error: unknown type name ‘__m512h’; did you mean ‘__m512bh’?
1545 | __m512h a_f16_vec, b_f16_vec;
| ^~~~~~~
| __m512bh
include/simsimd/elementwise.h:1546:5: error: unknown type name ‘__m512h’; did you mean ‘__m512bh’?
1546 | __m512h a_scaled_f16_vec, sum_f16_vec;
| ^~~~~~~
| __m512bh
include/simsimd/elementwise.h:1561:44: error: incompatible type for argument 3 of ‘_mm512_mask_storeu_epi16’
1561 | _mm512_mask_storeu_epi16(result, mask, _mm512_castph_si512(sum_f16_vec));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| |
| int
In file included from $GCC_PATH/lib/gcc/x86_64-pc-linux-gnu/10.5.0/include/immintrin.h:65,
from include/simsimd/types.h:240,
from include/simsimd/binary.h:21,
from include/simsimd/simsimd.h:105,
from c/lib.c:48:
$GCC_PATH/lib/gcc/x86_64-pc-linux-gnu/10.5.0/include/avx512bwintrin.h:325:61: note: expected ‘__m512i’ {aka ‘__vector(8) long long int’} but argument is of type ‘int’
325 | _mm512_mask_storeu_epi16 (void __P, __mmask32 __U, __m512i __A)
| ^
In file included from include/simsimd/simsimd.h:108,
from c/lib.c:48:
include/simsimd/elementwise.h: In function ‘simsimd_wsum_f16_sapphire’:
include/simsimd/elementwise.h:1543:5: error: unknown type name ‘__m512h’; did you mean ‘__m512bh’?
1543 | __m512h alpha_vec = _mm512_set1_ph((_Float16)alpha);
| ^
| __m512bh
include/simsimd/elementwise.h:1571:41: error: ‘_Float16’ is not supported on this target
1571 | __m512h alpha_vec = _mm512_set1_ph((_Float16)alpha);
| ^~~~~~~~
include/simsimd/elementwise.h:1572:5: error: unknown type name ‘__m512h’; did you mean ‘__m512bh’?
1572 | __m512h beta_vec = _mm512_set1_ph((_Float16)beta);
| ^~~~~~~
| __m512bh
include/simsimd/elementwise.h:1572:40: error: ‘_Float16’ is not supported on this target
1572 | __m512h beta_vec = _mm512_set1_ph((_Float16)beta);
| ^~~~~~~~
include/simsimd/elementwise.h:1573:5: error: unknown type name ‘__m512h’; did you mean ‘__m512bh’?
1573 | __m512h a_f16_vec, b_f16_vec, c_f16_vec;
| ^~~~~~~
| __m512bh
include/simsimd/elementwise.h:1574:5: error: unknown type name ‘__m512h’; did you mean ‘__m512bh’?
1574 | __m512h ab_f16_vec, ab_scaled_f16_vec, sum_f16_vec;
| ^~~~~~~
| __m512bh
include/simsimd/elementwise.h:1592:44: error: incompatible type for argument 3 of ‘_mm512_mask_storeu_epi16’
1592 | _mm512_mask_storeu_epi16(result, mask, _mm512_castph_si512(sum_f16_vec));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| |
| int
In file included from $GCC_PATH/lib/gcc/x86_64-pc-linux-gnu/10.5.0/include/immintrin.h:65,
from include/simsimd/types.h:240,
from include/simsimd/binary.h:21,
from include/simsimd/simsimd.h:105,
from c/lib.c:48:
$GCC_PATH/lib/gcc/x86_64-pc-linux-gnu/10.5.0/include/avx512bwintrin.h:325:61: note: expected ‘__m512i’ {aka ‘__vector(8) long long int’} but argument is of type ‘int’
325 | _mm512_mask_storeu_epi16 (void __P, __mmask32 __U, __m512i __A)
| ^
In file included from include/simsimd/simsimd.h:108,
from c/lib.c:48:
include/simsimd/elementwise.h: In function ‘simsimd_fma_f16_sapphire’:
include/simsimd/elementwise.h:1571:5: error: unknown type name ‘__m512h’; did you mean ‘__m512bh’?
1571 | __m512h alpha_vec = _mm512_set1_ph((_Float16)alpha);
| ^~~~~~~~~~~
include/simsimd/elementwise.h:1610:20: error: incompatible types when assigning to type ‘__m512i’ {aka ‘__vector(8) long long int’} from type ‘int’
1610 | b_u8_vec = _mm512_loadu_epi8(b);
| ^~~~~~~~~~~~~~~~~
include/simsimd/elementwise.h: In function ‘simsimd_scale_u8_sapphire’:
include/simsimd/elementwise.h:1622:5: error: unknown type name ‘__m512h’; did you mean ‘__m512bh’?
1622 | __m512h alpha_vec = _mm512_set1_ph((_Float16)alpha);
| ^~~~~~~
| __m512bh
include/simsimd/elementwise.h:1622:41: error: ‘_Float16’ is not supported on this target
1622 | __m512h alpha_vec = _mm512_set1_ph((_Float16)alpha);
| ^~~~~~~~
include/simsimd/elementwise.h:1624:5: error: unknown type name ‘__m512h’; did you mean ‘__m512bh’?
1624 | __m512h a_f16_low_vec, a_f16_high_vec;
| ^~~~~~~
| __m512bh
include/simsimd/elementwise.h:1625:5: error: unknown type name ‘__m512h’; did you mean ‘__m512bh’?
1625 | __m512h a_scaled_f16_low_vec, a_scaled_f16_high_vec, sum_f16_low_vec, sum_f16_high_vec;
| ^~~~~~~
| __m512bh
include/simsimd/elementwise.h:1634:20: error: incompatible types when assigning to type ‘__m512i’ {aka ‘__vector(8) long long int’} from type ‘int’
1634 | a_u8_vec = _mm512_loadu_epi8(a);
| ^~~~~~~~~~~~~~~~~
include/simsimd/elementwise.h:1644:23: error: incompatible types when assigning to type ‘__m512i’ {aka ‘__vector(8) long long int’} from type ‘int’
1644 | sum_i16_low_vec = _mm512_cvtph_epi16(sum_f16_low_vec);
| ^~~~~~~~~~~~~~~~~~
include/simsimd/elementwise.h:1645:24: error: incompatible types when assigning to type ‘__m512i’ {aka ‘__vector(8) long long int’} from type ‘int’
1645 | sum_i16_high_vec = _mm512_cvtph_epi16(sum_f16_high_vec);
| ^~~~~~~~~~~~~~~~~~
include/simsimd/elementwise.h: In function ‘simsimd_wsum_u8_sapphire’:
include/simsimd/elementwise.h:1673:5: error: unknown type name ‘__m512h’; did you mean ‘__m512bh’?
1673 | __m512h alpha_vec = _mm512_set1_ph((_Float16)alpha);
| ^~~~~~~
| __m512bh
include/simsimd/elementwise.h:1673:41: error: ‘_Float16’ is not supported on this target
1673 | __m512h alpha_vec = _mm512_set1_ph((_Float16)alpha);
| ^~~~~~~~
include/simsimd/elementwise.h:1674:5: error: unknown type name ‘__m512h’; did you mean ‘__m512bh’?
1674 | __m512h beta_vec = _mm512_set1_ph((_Float16)beta);
| ^~~~~~~
| __m512bh
include/simsimd/elementwise.h:1674:40: error: ‘_Float16’ is not supported on this target
1674 | __m512h beta_vec = _mm512_set1_ph((_Float16)beta);
| ^~~~~~~~
include/simsimd/elementwise.h:1676:5: error: unknown type name ‘__m512h’; did you mean ‘__m512bh’?
1676 | __m512h a_f16_low_vec, a_f16_high_vec, b_f16_low_vec, b_f16_high_vec;
| ^~~~~~~
| __m512bh
include/simsimd/elementwise.h:1677:5: error: unknown type name ‘__m512h’; did you mean ‘__m512bh’?
1677 | __m512h a_scaled_f16_low_vec, a_scaled_f16_high_vec, sum_f16_low_vec, sum_f16_high_vec;
| ^~~~~~~
| __m512bh
include/simsimd/elementwise.h:1687:20: error: incompatible types when assigning to type ‘__m512i’ {aka ‘__vector(8) long long int’} from type ‘int’
1687 | a_u8_vec = _mm512_loadu_epi8(a);
| ^~~~~~~~~~~~~~~~~
include/simsimd/elementwise.h:1688:20: error: incompatible types when assigning to type ‘__m512i’ {aka ‘__vector(8) long long int’} from type ‘int’
1688 | b_u8_vec = _mm512_loadu_epi8(b);
| ^~~~~~~~~~~~~~~~~
include/simsimd/elementwise.h:1703:23: error: incompatible types when assigning to type ‘__m512i’ {aka ‘__vector(8) long long int’} from type ‘int’
1703 | sum_i16_low_vec = _mm512_cvtph_epi16(sum_f16_low_vec);
| ^~~~~~~~~~~~~~~~~~
include/simsimd/elementwise.h:1704:24: error: incompatible types when assigning to type ‘__m512i’ {aka ‘__vector(8) long long int’} from type ‘int’
1704 | sum_i16_high_vec = _mm512_cvtph_epi16(sum_f16_high_vec);
| ^~~~~~~~~~~~~~~~~~
include/simsimd/elementwise.h: In function ‘simsimd_sum_i8_sapphire’:
include/simsimd/elementwise.h:1716:5: error: unknown type name ‘__m512h’; did you mean ‘__m512bh’?
1716 | __m512h a_f16_low_vec, a_f16_high_vec, b_f16_low_vec, b_f16_high_vec;
| ^~~~~~~
| __m512bh
include/simsimd/elementwise.h:1717:5: error: unknown type name ‘__m512h’; did you mean ‘__m512bh’?
1717 | __m512h a_scaled_f16_low_vec, a_scaled_f16_high_vec, sum_f16_low_vec, sum_f16_high_vec;
| ^~~~~~~
| __m512bh
include/simsimd/elementwise.h:1728:20: error: incompatible types when assigning to type ‘__m512i’ {aka ‘__vector(8) long long int’} from type ‘int’
1728 | a_i8_vec = _mm512_loadu_epi8(a);
| ^~~~~~~~~~~~~~~~~
include/simsimd/elementwise.h:1729:20: error: incompatible types when assigning to type ‘__m512i’ {aka ‘__vector(8) long long int’} from type ‘int’
1729 | b_i8_vec = _mm512_loadu_epi8(b);
| ^~~~~~~~~~~~~~~~~
include/simsimd/elementwise.h: In function ‘simsimd_scale_i8_sapphire’:
include/simsimd/elementwise.h:1742:5: error: unknown type name ‘__m512h’; did you mean ‘__m512bh’?
1742 | __m512h alpha_vec = _mm512_set1_ph((_Float16)alpha);
| ^~~~~~~
| __m512bh
include/simsimd/elementwise.h:1742:41: error: ‘_Float16’ is not supported on this target
1742 | __m512h alpha_vec = _mm512_set1_ph((_Float16)alpha);
| ^~~~~~~~
include/simsimd/elementwise.h:1744:5: error: unknown type name ‘__m512h’; did you mean ‘__m512bh’?
1744 | __m512h a_f16_low_vec, a_f16_high_vec;
| ^~~~~~~
| __m512bh
include/simsimd/elementwise.h:1745:5: error: unknown type name ‘__m512h’; did you mean ‘__m512bh’?
1745 | __m512h sum_f16_low_vec, sum_f16_high_vec;
| ^~~~~~~
| __m512bh
include/simsimd/elementwise.h:1754:20: error: incompatible types when assigning to type ‘__m512i’ {aka ‘__vector(8) long long int’} from type ‘int’
1754 | a_i8_vec = _mm512_loadu_epi8(a);
| ^~~~~~~~~~~~~~~~~
include/simsimd/elementwise.h:1764:23: error: incompatible types when assigning to type ‘__m512i’ {aka ‘__vector(8) long long int’} from type ‘int’
1764 | sum_i16_low_vec = _mm512_cvtph_epi16(sum_f16_low_vec);
| ^~~~~~~~~~~~~~~~~~
include/simsimd/elementwise.h:1765:24: error: incompatible types when assigning to type ‘__m512i’ {aka ‘__vector(8) long long int’} from type ‘int’
1765 | sum_i16_high_vec = _mm512_cvtph_epi16(sum_f16_high_vec);
| ^~~~~~~~~~~~~~~~~~
include/simsimd/elementwise.h: In function ‘simsimd_wsum_i8_sapphire’:
include/simsimd/elementwise.h:1794:5: error: unknown type name ‘__m512h’; did you mean ‘__m512bh’?
1794 | __m512h alpha_vec = _mm512_set1_ph((_Float16)alpha);
| ^~~~~~~
| __m512bh
include/simsimd/elementwise.h:1794:41: error: ‘_Float16’ is not supported on this target
1794 | __m512h alpha_vec = _mm512_set1_ph((_Float16)alpha);
| ^~~~~~~~
include/simsimd/elementwise.h:1795:5: error: unknown type name ‘__m512h’; did you mean ‘__m512bh’?
1795 | __m512h beta_vec = _mm512_set1_ph((_Float16)beta);
| ^~~~~~~
| __m512bh
include/simsimd/elementwise.h:1795:40: error: ‘_Float16’ is not supported on this target
1795 | __m512h beta_vec = _mm512_set1_ph((_Float16)beta);
| ^~~~~~~~
include/simsimd/elementwise.h:1797:5: error: unknown type name ‘__m512h’; did you mean ‘__m512bh’?
1797 | __m512h a_f16_low_vec, a_f16_high_vec, b_f16_low_vec, b_f16_high_vec;
| ^~~~~~~
| __m512bh
include/simsimd/elementwise.h:1798:5: error: unknown type name ‘__m512h’; did you mean ‘__m512bh’?
1798 | __m512h a_scaled_f16_low_vec, a_scaled_f16_high_vec, sum_f16_low_vec, sum_f16_high_vec;
| ^~~~~~~
| __m512bh
include/simsimd/elementwise.h:1809:20: error: incompatible types when assigning to type ‘__m512i’ {aka ‘__vector(8) long long int’} from type ‘int’
1809 | a_i8_vec = _mm512_loadu_epi8(a);
| ^~~~~~~~~~~~~~~~~
include/simsimd/elementwise.h:1810:20: error: incompatible types when assigning to type ‘__m512i’ {aka ‘__vector(8) long long int’} from type ‘int’
1810 | b_i8_vec = _mm512_loadu_epi8(b);
| ^~~~~~~~~~~~~~~~~
include/simsimd/elementwise.h:1825:23: error: incompatible types when assigning to type ‘__m512i’ {aka ‘__vector(8) long long int’} from type ‘int’
1825 | sum_i16_low_vec = _mm512_cvtph_epi16(sum_f16_low_vec);
| ^~~~~~~~~~~~~~~~~~
include/simsimd/elementwise.h:1826:24: error: incompatible types when assigning to type ‘__m512i’ {aka ‘__vector(8) long long int’} from type ‘int’
1826 | sum_i16_high_vec = _mm512_cvtph_epi16(sum_f16_high_vec);
| ^~~~~~~~~~~~~~~~~~
include/simsimd/elementwise.h: In function ‘simsimd_fma_i8_sapphire’:
include/simsimd/elementwise.h:1839:5: error: unknown type name ‘__m512h’; did you mean ‘__m512bh’?
1839 | __m512h alpha_vec = _mm512_set1_ph((_Float16)alpha);
| ^~~~~~~
| __m512bh
include/simsimd/elementwise.h:1839:41: error: ‘_Float16’ is not supported on this target
1839 | __m512h alpha_vec = _mm512_set1_ph((_Float16)alpha);
| ^~~~~~~~
include/simsimd/elementwise.h:1840:5: error: unknown type name ‘__m512h’; did you mean ‘__m512bh’?
1840 | __m512h beta_vec = _mm512_set1_ph((_Float16)beta);
| ^~~~~~~
| __m512bh
include/simsimd/elementwise.h:1840:40: error: ‘_Float16’ is not supported on this target
1840 | __m512h beta_vec = _mm512_set1_ph((_Float16)beta);
| ^~~~~~~~
include/simsimd/elementwise.h:1842:5: error: unknown type name ‘__m512h’; did you mean ‘__m512bh’?
1842 | __m512h a_f16_low_vec, a_f16_high_vec, b_f16_low_vec, b_f16_high_vec;
| ^~~~~~~
| __m512bh
include/simsimd/elementwise.h:1843:5: error: unknown type name ‘__m512h’; did you mean ‘__m512bh’?
1843 | __m512h c_f16_low_vec, c_f16_high_vec, ab_f16_low_vec, ab_f16_high_vec;
| ^~~~~~~
| __m512bh
include/simsimd/elementwise.h:1844:5: error: unknown type name ‘__m512h’; did you mean ‘__m512bh’?
1844 | __m512h ab_scaled_f16_low_vec, ab_scaled_f16_high_vec, sum_f16_low_vec, sum_f16_high_vec;
| ^~~~~~~
| __m512bh
include/simsimd/elementwise.h:1856:20: error: incompatible types when assigning to type ‘__m512i’ {aka ‘__vector(8) long long int’} from type ‘int’
1856 | a_i8_vec = _mm512_loadu_epi8(a);
| ^~~~~~~~~~~~~~~~~
include/simsimd/elementwise.h:1857:20: error: incompatible types when assigning to type ‘__m512i’ {aka ‘__vector(8) long long int’} from type ‘int’
1857 | b_i8_vec = _mm512_loadu_epi8(b);
| ^~~~~~~~~~~~~~~~~
include/simsimd/elementwise.h:1858:20: error: incompatible types when assigning to type ‘__m512i’ {aka ‘__vector(8) long long int’} from type ‘int’
1858 | c_i8_vec = _mm512_loadu_epi8©;
| ^~~~~~~~~~~~~~~~~
include/simsimd/elementwise.h:1878:23: error: incompatible types when assigning to type ‘__m512i’ {aka ‘__vector(8) long long int’} from type ‘int’
1878 | sum_i16_low_vec = _mm512_cvtph_epi16(sum_f16_low_vec);
| ^~~~~~~~~~~~~~~~~~
include/simsimd/elementwise.h:1879:24: error: incompatible types when assigning to type ‘__m512i’ {aka ‘__vector(8) long long int’} from type ‘int’
1879 | sum_i16_high_vec = _mm512_cvtph_epi16(sum_f16_high_vec);
| ^~~~~~~~~~~~~~~~~~
include/simsimd/elementwise.h: In function ‘simsimd_fma_u8_sapphire’:
include/simsimd/elementwise.h:1892:5: error: unknown type name ‘__m512h’; did you mean ‘__m512bh’?
1892 | __m512h alpha_vec = _mm512_set1_ph((_Float16)alpha);
| ^~~~~~~
| __m512bh
include/simsimd/elementwise.h:1892:41: error: ‘_Float16’ is not supported on this target
1892 | __m512h alpha_vec = _mm512_set1_ph((_Float16)alpha);
| ^~~~~~~~
include/simsimd/elementwise.h:1893:5: error: unknown type name ‘__m512h’; did you mean ‘__m512bh’?
1893 | __m512h beta_vec = _mm512_set1_ph((_Float16)beta);
| ^~~~~~~
| __m512bh
include/simsimd/elementwise.h:1893:40: error: ‘_Float16’ is not supported on this target
1893 | __m512h beta_vec = _mm512_set1_ph((_Float16)beta);
| ^~~~~~~~
include/simsimd/elementwise.h:1895:5: error: unknown type name ‘__m512h’; did you mean ‘__m512bh’?
1895 | __m512h a_f16_low_vec, a_f16_high_vec, b_f16_low_vec, b_f16_high_vec;
| ^~~~~~~
| __m512bh
include/simsimd/elementwise.h:1896:5: error: unknown type name ‘__m512h’; did you mean ‘__m512bh’?
1896 | __m512h c_f16_low_vec, c_f16_high_vec, ab_f16_low_vec, ab_f16_high_vec;
| ^~~~~~~
| __m512bh
include/simsimd/elementwise.h:1897:5: error: unknown type name ‘__m512h’; did you mean ‘__m512bh’?
1897 | __m512h ab_scaled_f16_low_vec, ab_scaled_f16_high_vec, sum_f16_low_vec, sum_f16_high_vec;
| ^~~~~~~
| __m512bh
include/simsimd/elementwise.h:1909:20: error: incompatible types when assigning to type ‘__m512i’ {aka ‘__vector(8) long long int’} from type ‘int’
1909 | a_u8_vec = _mm512_loadu_epi8(a);
| ^~~~~~~~~~~~~~~~~
include/simsimd/elementwise.h:1910:20: error: incompatible types when assigning to type ‘__m512i’ {aka ‘__vector(8) long long int’} from type ‘int’
1910 | b_u8_vec = _mm512_loadu_epi8(b);
| ^~~~~~~~~~~~~~~~~
include/simsimd/elementwise.h:1911:20: error: incompatible types when assigning to type ‘__m512i’ {aka ‘__vector(8) long long int’} from type ‘int’
1911 | c_u8_vec = _mm512_loadu_epi8©;
| ^~~~~~~~~~~~~~~~~
include/simsimd/elementwise.h:1931:23: error: incompatible types when assigning to type ‘__m512i’ {aka ‘__vector(8) long long int’} from type ‘int’
1931 | sum_i16_low_vec = _mm512_cvtph_epi16(sum_f16_low_vec);
| ^~~~~~~~~~~~~~~~~~
include/simsimd/elementwise.h:1932:24: error: incompatible types when assigning to type ‘__m512i’ {aka ‘__vector(8) long long int’} from type ‘int’
1932 | sum_i16_high_vec = _mm512_cvtph_epi16(sum_f16_high_vec);
| ^~~~~~~~~~~~~~~~~~
include/simsimd/probability.h: At top level:
cc1: error: attribute ‘avx512fp16’ argument ‘target’ is unknown
In file included from include/simsimd/simsimd.h:110,
from c/lib.c:48:
include/simsimd/probability.h:511:18: error: unknown type name ‘__m512h’
511 | SIMSIMD_INTERNAL __m512h _simsimd_log2_f16_sapphire(__m512h x) {
| ^~~~~~~
include/simsimd/probability.h:511:53: error: unknown type name ‘__m512h’; did you mean ‘__m512bh’?
511 | SIMSIMD_INTERNAL __m512h _simsimd_log2_f16_sapphire(__m512h x) {
| ^~~~~~~
| __m512bh
include/simsimd/probability.h: In function ‘simsimd_kl_f16_sapphire’:
include/simsimd/probability.h:530:5: error: unknown type name ‘__m512h’; did you mean ‘__m512bh’?
530 | __m512h sum_vec = _mm512_setzero_ph();
| ^~~~~~~
| __m512bh
include/simsimd/probability.h:531:5: error: unknown type name ‘__m512h’; did you mean ‘__m512bh’?
531 | __m512h epsilon_vec = _mm512_set1_ph((simsimd_f16_t)SIMSIMD_F16_DIVISION_EPSILON);
| ^~~~~~~
| __m512bh
include/simsimd/probability.h:532:5: error: unknown type name ‘__m512h’; did you mean ‘__m512bh’?
532 | __m512h a_vec, b_vec;
| ^~~~~~~
| __m512bh
include/simsimd/probability.h:546:5: error: unknown type name ‘__m512h’; did you mean ‘__m512bh’?
546 | __m512h ratio_vec = _mm512_div_ph(a_vec, b_vec);
| ^~~~~~~
| __m512bh
include/simsimd/probability.h:547:5: error: unknown type name ‘__m512h’; did you mean ‘__m512bh’?
547 | __m512h log_ratio_vec = _simsimd_log2_f16_sapphire(ratio_vec);
| ^~~~~~~
| __m512bh
include/simsimd/probability.h:548:5: error: unknown type name ‘__m512h’; did you mean ‘__m512bh’?
548 | __m512h prod_vec = _mm512_mul_ph(a_vec, log_ratio_vec);
| ^~~~~~~
| __m512bh
include/simsimd/probability.h: In function ‘simsimd_js_f16_sapphire’:
include/simsimd/probability.h:558:5: error: unknown type name ‘__m512h’; did you mean ‘__m512bh’?
558 | __m512h sum_a_vec = _mm512_setzero_ph();
| ^~~~~~~
| __m512bh
include/simsimd/probability.h:559:5: error: unknown type name ‘__m512h’; did you mean ‘__m512bh’?
559 | __m512h sum_b_vec = _mm512_setzero_ph();
| ^~~~~~~
| __m512bh
include/simsimd/probability.h:560:5: error: unknown type name ‘__m512h’; did you mean ‘__m512bh’?
560 | __m512h epsilon_vec = _mm512_set1_ph((simsimd_f16_t)SIMSIMD_F16_DIVISION_EPSILON);
| ^~~~~~~
| __m512bh
include/simsimd/probability.h:561:5: error: unknown type name ‘__m512h’; did you mean ‘__m512bh’?
561 | __m512h a_vec, b_vec;
| ^~~~~~~
| __m512bh
include/simsimd/probability.h:575:5: error: unknown type name ‘__m512h’; did you mean ‘__m512bh’?
575 | __m512h m_vec = _mm512_mul_ph(_mm512_add_ph(a_vec, b_vec), _mm512_set1_ph((simsimd_f16_t)0.5f));
| ^~~~~~~
| __m512bh
include/simsimd/probability.h:579:5: error: unknown type name ‘__m512h’; did you mean ‘__m512bh’?
579 | __m512h m_recip_approx = _mm512_rcp_ph(m_vec);
| ^~~~~~~
| __m512bh
include/simsimd/probability.h:580:5: error: unknown type name ‘__m512h’; did you mean ‘__m512bh’?
580 | __m512h ratio_a_vec = _mm512_mul_ph(a_vec, m_recip_approx);
| ^~~~~~~
| __m512bh
include/simsimd/probability.h:581:5: error: unknown type name ‘__m512h’; did you mean ‘__m512bh’?
581 | __m512h ratio_b_vec = _mm512_mul_ph(b_vec, m_recip_approx);
| ^~~~~~~
| __m512bh
include/simsimd/probability.h:582:5: error: unknown type name ‘__m512h’; did you mean ‘__m512bh’?
582 | __m512h log_ratio_a_vec = _simsimd_log2_f16_sapphire(ratio_a_vec);
| ^~~~~~~
| __m512bh
include/simsimd/probability.h:583:5: error: unknown type name ‘__m512h’; did you mean ‘__m512bh’?
583 | __m512h log_ratio_b_vec = _simsimd_log2_f16_sapphire(ratio_b_vec);
| ^~~~~~~
| __m512bh
error: command '*/bin/gcc’ failed with exit code 1
[end of output]^
In file included from include/simsimd/simsimd.h:108,
from c/lib.c:48:
include/simsimd/elementwise.h: In function ‘simsimd_sum_u8_sapphire’:
include/simsimd/elementwise.h:1609:20: error: incompatible types when assigning to type ‘__m512i’ {aka ‘__vector(8) long long int’} from type ‘int’
1609 | a_u8_vec = _mm512_loadu_epi8(a);
| ^
note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for simsimd Failed to build simsimd ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (simsimd)
</details>
### Steps to reproduce
just run `pip install simsimd` in my python env created by miniconda.
### Expected behavior
I tried this using gcc version 8.4.0, 10.5.0, 14.2.0. But all get the same result.
### SimSIMD version
5.9.6, 5.9.7, 5.9.8, 5.9.9
### Operating System
Ubuntu 16.04
### Hardware architecture
x86
### Is there an existing issue for this?
- [X] I have searched the existing issues
### Code of Conduct
- [X] I agree to follow this project's Code of Conduct
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 21 (3 by maintainers)
when I installed GOT-OCR2.0 model with centOS7 system and faced this error while building simsimd. But i look at the [pyproject] file for the command [pip install -e . ], it install simsimd >=5.9.2 beacause of the [albumentations]. albumentations needs albucore >=0.0.23 and needs simsimd >=5.9.2 So i manually make the lower version albumentations installed and worked!
pip install albumentations simsimd==1.1.2just install albumentations and simsimd with low version firstly, then install my project as before:pip install -e .and it works. Just an advise here.Need help! Same error in
pip install simsimdandpython setup.py installonUbuntu 18.04 x86_64 python3.10:I have encountered the same problem. Old assembler like binutils=2.30 does not work, so I tried binutils=2.40 then the problem solved.
I have the same problem with u. I am struggled with the second case. Do u solve it now?
For me, my linux glibc is only 2.27, and some package(albucore==0.0.20) in my env needs simsimd>=5.9.2, which has .whl only for glibc>=2.28. So I downgrade albucore==0.0.19. It works. So might be your glibc version does not match simsimd’s requrement.
(insightface) ➜ ~ conda list | grep binutils binutils 2.43 h4852527_2 conda-forge binutils_impl_linux-64 2.43 h4bf12b8_2 conda-forge
conda install binutils==2.4.3 solved my problem
It looks like you are mixing a new compiler with old headers or old assembler in the second case. Might be just a misconfiguration issue on your end, @Fitzgera1d 🤗
@Fitzgera1d, you must be using a very old compiler. GCC 14 must have worked. 13 should also be enough for everything in this repo 🤔