doods2
doods2 copied to clipboard
Debian container
- [x] amd64
- [x] arm/v7
- [x] arm64/v8
- [x] amd64-noavx
- [x] amd64-gpu
I will add EdgeTPU and then try the ARM builds.
That looks pretty good. I'm sure it's way smaller. If I can come up for air from work stuff I may take another crack at the ARM builds. They are a bear. Basically the Tensorflow people more or less said they are no longer supporting 32 bit arm.
Added libedgetpu, just needs some testing then amd64 is done.
Uncompressed size. Old: 5.14GB New: 3.74GB
The arm64 build just hangs randomly after several hours. No CPU usage and no errors.
Is it in the middle of building tensorflow? Are you cross compiling or using buildx or native? In all cases it's likely running out of memory. You need to pass resources into Bazel (and even then it seems like it ignores it) I would just keep ratcheting down memory and cpu until it completed.
I'm using buildx. I guess the emulation uses more memory. The amd64 builds threw errors before I added a swapfile.
Limiting it with --jobs
seems to work, but now it looks like it's going to take 2 days to build.
I don't think I ever got it to complete using buildx. I finally bought an ODroid C2 I think it was to compile it on.
arm64 build successful! Anything else you want me to do? Do you want it in a single commit?
Wow! I will check it out... Did you use qemu on an x86 box to do the cross builds? If so, what version was qemu?
Trying out the arm64 one now.
qemu on x86. I used these commands.
docker run --privileged --rm tonistiigi/binfmt --uninstall qemu-*
docker run --privileged --rm tonistiigi/binfmt --install all
I needed it for the old images but I don't think it's needed now.
Why is there no bazel-bootstrap package for armv7?? https://packages.debian.org/bullseye/bazel-bootstrap
Turns out you can build Bazel from scratch. I didn't see that before.
Small fix, bazel doesn't bundle the jdk anymore.