tensorflow-on-raspberry-pi icon indicating copy to clipboard operation
tensorflow-on-raspberry-pi copied to clipboard

Error running bazel

Open ivoribeiro opened this issue 8 years ago • 2 comments

Describe the Issue

I compiled bazel and moved the output to /urs/local/bin/bazel but when i try to execute bazer a error occur.

Steps to Reproduce

pi@raspberrypi:~ $ bazel Extracting Bazel installation...

Failed to extract Bazel as a zip file: zlib returned error code -3 during inflate.

Hardware/Software Info

Please provide the following information about your Raspberry Pi setup:

  • Raspberry Pi model: 1 Model B+
  • Operating System used: Raspbian
  • Version of Python used: Python 2.7.9
  • SD card memory size: 16Gb
  • Size of USB/other device used as swap (if building from source): 4Gb
  • TensorFlow git commit hash (if building from source):

Relevant Console Output/Logs

ivoribeiro avatar Feb 27 '17 14:02 ivoribeiro

Hi @ivoribeiro - thanks for opening this up. Unfortunately, I don't have access to a Raspberry Pi 1 at this time, and I don't think it's likely that the build instructions will work on the hardware for the same reasons as #43. The Raspberry Pi 1 uses ARMv6 instructions, which are too limited for TensorFlow to work properly :/

samjabrahams avatar Feb 27 '17 21:02 samjabrahams

If anyone can point out where I might look in the code for Armv7 specific instructions, I might be able to write an Armv6 implementation. I suspect the issue is that Armv7+ supports Neon instructions while the Armv6 does not. I have some experience with both Neon and with the SIMD instructions used by the Arm6 on the Pi 1.

I suspect I would also need pointed toward the same information for Bazel, since it won't compile on my Pi 1, because it does not support Armv6.

Otherwise, maybe I can grep the code base for Armv7 specific instructions, but going back through the code to find where I would need to start with the changes would probably take me a very long time. If someone already knows, it would be much faster.

Rybec avatar Jan 26 '18 17:01 Rybec