I would like to create regulator for measurement system based on Raspberry Pi controllers. I wonder if is possible to use Ubuntu PC as trainer and raspberry Pi 3 or 4 as workers.
I tested that its possible to install tensorflow 2 in raspberry Pi but is possible to install rllib (or some siplified version with workers only - no redis, no GPU for training) in raspberry arm systems?
Hey, we don’t have official ARM wheels, but many users have reported being able to successfully build Ray from source on Raspberry Pi and other ARM devices. There are a few dependencies that don’t have official ARM builds, but those can also be built from source (you can just pip install directly from their github pages).
I look for wheel package ray-2.0.0.dev0 for raspberry pi 4 armv7l python 3.8.
Maybe there is some tutorial how to build ray from source for raspberry because I don’t know how to change code from: https://docs.ray.io/en/master/development.html#building-ray-full to raspberry pi.
It’s not important for me if compilation is in raspberry or cross-compilation because waiting isn’t a problem.
I will be grateful for any suggestions.
Hmm @barakmich this looks like related to the push manager? Looks like we should probably either cast to something platform independent or use unsigned long long?
I installed libatomic library and used command with option:
bazel build --copt=“-latomic” -c opt //:ray_pkg
Now here is the error:
FAILED: Build did NOT complete successfully
pi@raspberrypi:/tmp/ray $ bazel build --copt=“-latomic” -c opt //:ray
INFO: Writing tracer profile to ‘/home/pi/.cache/bazel/_bazel_pi/c81ef09a5cf12e451dde4b8cf7740758/command.profile.gz’
DEBUG: /tmp/ray/bazel/ray_deps_setup.bzl:63:9: No implicit mirrors used because urls were explicitly provided
ERROR: Skipping ‘//:ray’: no such target ‘//:ray’: target ‘ray’ not declared in package ‘’ defined by /tmp/ray/BUILD.bazel
WARNING: Target pattern parsing failed.
ERROR: no such target ‘//:ray’: target ‘ray’ not declared in package ‘’ defined by /tmp/ray/BUILD.bazel
@Alex There is no special reason for that, I tested many combinations of options from https://docs.ray.io/en/master/development.html to check if some of its will finish without error.
The option fastbuild:
The goal is still the same build wheel ray file for python 3.8 armv7
when I try option1 “python3 setup.py bdist_wheel” the problem is:
bazel-out/arm-opt/bin/_virtual_includes/ray_common/ray/common/ray_config_def.h:200:75: error: integer overflow in expression of type ‘long int’ results in ‘-2147483648’ [-Werror=overflow]
RAY_CONFIG(uint64_t, object_manager_max_bytes_in_flight, 2L * 1024 * 1024 * 1024)
~~~~~~~~~~~~~^~
bazel-out/arm-opt/bin/virtual_includes/ray_common/ray/common/ray_config.h:35:18: note: in definition of macro ‘RAY_CONFIG’
type name## = default_value;
As I understand it means that long int type is too smal for the variable but how to solve overflow error?