simde
simde copied to clipboard
Test build failed on Mac OS M1
Hey, I am building the test project with my Mac m1 machine, and used the following command to build the test source file:
cmake -S . -B build
cmake --build build
but it failed with a lot of incompatible pointer types assigning errors
such as:
/simde/arm/neon/ld1_x4.h:51:24: error: incompatible pointer types assigning to 'const __fp16 *' from 'const simde_float16 *' (aka 'const _Float16 *')
return vld1_f16_x4(ptr);
^~~
/simde/arm/neon/ld1q_x2.h:52:25: error: incompatible pointer types assigning to 'const __fp16 *' from 'const simde_float16 *' (aka 'const _Float16 *')
return vld1q_f16_x2(ptr);
^~~
simde/arm/neon/ld3_dup.h:250:26: error: incompatible pointer types assigning to 'const __fp16 *' from 'const simde_float16 *' (aka 'const _Float16 *')
return vld3q_dup_f16(ptr);
^~~
...
Maybe I should add some flags when run the cmake command, but I did not find any useful information in the CMakeLists.txt file.
Could anyone provide some help?