Open mdhoney opened 2 years ago
Unfortunately I'm not sure what the issue is from inspection. The library is pretty old these days, and I'd recommend more modern alternatives like TensorFlow Lite, since that's better maintained and documented: https://github.com/tensorflow/examples/tree/master/lite/examples/image_classification/raspberry_pi
Is there something in particular that you want to do that's not supported by TFL?
Thank you for the reply @petewarden. Trying to do matrix multiplication, as fast as possible, and was hoping to be able to speed it up by using the QPU (similar to how it can be done for FFTs). As far as I understand it, TensorFlow doesn't do any hardware acceleration, right?
You're correct, this is the only project I'm aware of that uses the QPU for matrix multiplication. I'm not sure how much of a performance gap there is now that more modern Pi's have multi-core CPUs with NEON. I've also seen (but not tried) that OpenCL is supported, and I would recommend seeing if that is better than this pretty hacky approach! https://hackaday.com/2019/01/24/running-opencl-on-a-raspberry-pi-gpu/
Error 1: cast from 'void*' to 'int' loses precision, mailbox.cpp:71:33: modfy int
to long
printf("mmap error %d\n", (long)mem);
On 64-bit platforms, pointer values cannot be forced to int, only to long.
Error 2: 'makedev' was not declared in this scope
Glibc removes sys/sysmacros.h which defines makedev from sys/types.h since v2.28. [Commit ID: e16deca62e16f]
And then glibc suggestions us to include <sys/sysmacros.h>
directly if code needs it.
Trying to compile this to run on a Pi Zero 2 W, running Raspbian aarch64. I removed the following gcc flags:
-mfloat-abi=hard
-mfpu=vfp
and changed-march=armv8-a
But I still get errors...
Can anyone help...? Thanks!