Maratyszcza / NNPACK

Acceleration package for neural networks on multi-core CPUs
BSD 2-Clause "Simplified" License
1.67k stars 315 forks source link

Make error #189

Open Shivankit99 opened 4 years ago

Shivankit99 commented 4 years ago

make fails after 4% on the raspberry pi 4b /tmp/cc7z1u8E.s: Assembler messages: /tmp/cc7z1u8E.s:277: Error: selected processor does not support `yield' in ARM mode make[2]: [deps/pthreadpool/CMakeFiles/pthreadpool.dir/build.make:122: deps/pthreadpool/CMakeFiles/pthreadpool.dir/src/pthreads.c.o] Error 1 make[1]: [CMakeFiles/Makefile2:1579: deps/pthreadpool/CMakeFiles/pthreadpool.dir/all] Error 2 make: *** [Makefile:161: all] Error 2

CPU ARCHITECTURE INFO: cat /proc/cpuinfo processor : 0 model name : ARMv7 Processor rev 3 (v7l) BogoMIPS : 108.00 Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32 CPU implementer : 0x41 CPU architecture: 7 CPU variant : 0x0 CPU part : 0xd08 CPU revision : 3

processor : 1 model name : ARMv7 Processor rev 3 (v7l) BogoMIPS : 108.00 Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32 CPU implementer : 0x41 CPU architecture: 7 CPU variant : 0x0 CPU part : 0xd08 CPU revision : 3

processor : 2 model name : ARMv7 Processor rev 3 (v7l) BogoMIPS : 108.00 Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32 CPU implementer : 0x41 CPU architecture: 7 CPU variant : 0x0 CPU part : 0xd08 CPU revision : 3

processor : 3 model name : ARMv7 Processor rev 3 (v7l) BogoMIPS : 108.00 Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32 CPU implementer : 0x41 CPU architecture: 7 CPU variant : 0x0 CPU part : 0xd08 CPU revision : 3

Hardware : BCM2835 Revision : b03111 Serial : 10000000a74a2635 Model : Raspberry Pi 4 Model B Rev 1.1

Maratyszcza commented 4 years ago

You should build for at least -march=armv6k

Shivankit99 commented 4 years ago

Didnt quite understand you, could you please elaborate it a bit ?

Maratyszcza commented 4 years ago

You should specify at least -march=armv6k target architecture in compiler flags. E.g. by passing -DCMAKE_C_FLAGS=-march=armv6k when configuring the project.