Skip to content

Commit de65390

Browse files
committed
closes issue #686
1 parent a874faf commit de65390

File tree

3 files changed

+18
-0
lines changed

3 files changed

+18
-0
lines changed

Diff for: README.md

+2
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,8 @@ ALL=1 make -C opt clean build
9696

9797
Note: in order to use the PyTorch backend on Linux, at least `gcc 4.9.2` is required.
9898

99+
[See this document](opt/build/README.md) for building AI dependencies at platforms.
100+
99101
### Running the server
100102

101103
You will need a redis-server version 5.0.7 or greater. This should be

Diff for: opt/build/README.md

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# RedisAI dependency builds
2+
3+
Platform dependency build systems are located in this folder. Dependencies are to be pre-built, and published to S3. To do so, they rely *(ultimately)* on running **make build publish** in a given directory. The goal is for this to be true on all target platforms (x86_64, arm64), though at this time it's only true for: tensorflowlite.
4+
5+
## Background
6+
7+
Items are built in docker images, for the target platform whenever possible. If needed (i.e a future planned MacOS build) items are built on the dedicated hardware. There are design wrinkles to each build. Though the ideal is to build a base docker (see the [automata repository](https://github.com/redislabsmodules/automata). That base docker is then used as the base build system injector for the dependency itself. A docker image is built from the base docker, accepting externalized variables such as the dependency version. Compilation of external requirements takes place in a build file, mounted inside the docker image.
8+
9+
Ideally a per-platform Docker file (i.e Dockerfile.x64, Dockerfile.arm) will exist in the underlying folder, assuming building within a docker is tenable.

Diff for: opt/build/tflite/README.md

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# tensorflowlite (tflite)
2+
3+
### arm64
4+
5+
The arm build of tflite currently occurs on **jetson arm devices** only, as portions of the root filesystem of the Jetson device are mounted during the build. Given the symlinks that exist on the device between things in /usr/lib to /etc/alternatives, and in turn to /usr/local/cuda, which is itself a symlink to /usr/local/cuda-10.2, this is the current philosophy.
6+
7+
WThe *build_arm* target in the [Makefile](Makefile) describes the process in detail. The code to build the base docker build image can be found in the [automata repository](https://github.com/RedisLabsModules/automata/tree/master/dockers/buildsystem/bazelbuilder). The *bazelbuilder* image is published to the [redisfab dockerhub repositories](https://hub.docker.com/r/redisfab/).

0 commit comments

Comments
 (0)