Skip to content

Commit f2ebc1c

Browse files
author
DvirDukhan
authored
Merge branch 'master' into backends_upgrade
2 parents 29f7c92 + 14e82db commit f2ebc1c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+693
-509
lines changed

.circleci/config.yml

Lines changed: 66 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ commands:
1717
- run:
1818
name: Setup automation
1919
command: |
20-
PIP=1 ./opt/readies/bin/getpy3
20+
./opt/readies/bin/getpy3
2121
./opt/system-setup.py
2222
2323
build-steps:
@@ -125,6 +125,7 @@ jobs:
125125
- run:
126126
name: Submodule checkout
127127
command: git submodule update --init --recursive
128+
- setup-automation
128129
- run:
129130
name: lint
130131
command: |
@@ -201,7 +202,63 @@ jobs:
201202
- run:
202203
name: Test with valgrind
203204
command: |
204-
make -C opt test VALGRIND=1
205+
make -C opt test VALGRIND=1 CLUSTER=0 AOF=0
206+
no_output_timeout: 120m
207+
208+
valgrind-cluster:
209+
docker:
210+
- image: redisfab/rmbuilder:6.0.5-x64-buster
211+
steps:
212+
- checkout
213+
- run:
214+
name: Submodule checkout
215+
command: git submodule update --init --recursive
216+
- restore_cache:
217+
keys:
218+
- build-dependencies-{{ checksum "get_deps.sh" }}
219+
# If no exact match is found will get dependencies from source
220+
- setup-automation
221+
- run:
222+
name: Install dependencies
223+
command: |
224+
./opt/readies/bin/getredis -v 6 --valgrind --force
225+
./get_deps.sh cpu
226+
- run:
227+
name: Build for valgrind with cluster
228+
command: |
229+
make -C opt all VALGRIND=1 SHOW=1
230+
- run:
231+
name: Test with valgrind and cluster
232+
command: |
233+
make -C opt test VALGRIND=1 GEN=0 AOF=0
234+
no_output_timeout: 120m
235+
236+
valgrind-AOF:
237+
docker:
238+
- image: redisfab/rmbuilder:6.0.5-x64-buster
239+
steps:
240+
- checkout
241+
- run:
242+
name: Submodule checkout
243+
command: git submodule update --init --recursive
244+
- restore_cache:
245+
keys:
246+
- build-dependencies-{{ checksum "get_deps.sh" }}
247+
# If no exact match is found will get dependencies from source
248+
- setup-automation
249+
- run:
250+
name: Install dependencies
251+
command: |
252+
./opt/readies/bin/getredis -v 6 --valgrind --force
253+
./get_deps.sh cpu
254+
- run:
255+
name: Build for valgrind with AOF
256+
command: |
257+
make -C opt all VALGRIND=1 SHOW=1
258+
- run:
259+
name: Test with valgrind and AOF
260+
command: |
261+
make -C opt test VALGRIND=1 GEN=0 CLUSTER=0
205262
no_output_timeout: 120m
206263

207264
build-macos:
@@ -406,7 +463,13 @@ workflows:
406463
<<: *on-any-branch
407464
<<: *after-linter
408465
- valgrind:
409-
<<: *on-master
466+
<<: *on-any-branch
467+
<<: *after-linter
468+
- valgrind-cluster:
469+
<<: *on-integ-branch
470+
<<: *after-linter
471+
- valgrind-AOF:
472+
<<: *on-integ-branch
410473
<<: *after-linter
411474
- build-and-test-gpu:
412475
<<: *on-any-branch

docs/commands.md

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -660,14 +660,14 @@ Because `AI.DAGRUN` provides the `PERSIST` option it is flagged as a 'write' com
660660
Refer to the Redis [`READONLY` command](https://redis.io/commands/readonly) for further information about read-only cluster replicas.
661661

662662
## AI.INFO
663-
The **`AI.INFO`** command returns information about the execution a model or a script.
663+
The **`AI.INFO`** command returns general module information or information about the execution a model or a script.
664664

665665
Runtime information is collected each time that [`AI.MODELRUN`](#aimodelrun) or [`AI.SCRIPTRUN`](#aiscriptrun) is called. The information is stored locally by the executing RedisAI engine, so when deployed in a cluster each shard stores its own runtime information.
666666

667667
**Redis API**
668668

669669
```
670-
AI.INFO <key> [RESETSTAT]
670+
AI.INFO [<key>] [RESETSTAT]
671671
```
672672

673673
_Arguments_
@@ -677,7 +677,15 @@ _Arguments_
677677

678678
_Return_
679679

680-
An array with alternating entries that represent the following key-value pairs:
680+
For a module genernal information: An array with alternating entries that represent the following key-value pairs:
681+
682+
* **Version**: a string showing the current module version.
683+
* **Low level API Version**: a string showing the current module's low level api version.
684+
* **RDB Encoding version**: a string showing the current module's RDB encoding version.
685+
* **TensorFlow version**: a string showing the current loaded TesnorFlow backend version.
686+
* **ONNX version**: a string showing the current loaded ONNX Runtime backend version.
687+
688+
For model or script runtime information: An array with alternating entries that represent the following key-value pairs:
681689

682690
* **KEY**: a String of the name of the key storing the model or script value
683691
* **TYPE**: a String of the type of value (i.e. 'MODEL' or 'SCRIPT')

opt/redis_valgrind.sup

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,13 @@
2626
obj:*/libtorch.so.*
2727
}
2828

29+
{
30+
ignore_unversioned_libs
31+
Memcheck:Overlap
32+
...
33+
obj:*/libtorch_cpu.so*
34+
}
35+
2936
{
3037
ignore_unversioned_libs
3138
Memcheck:Leak

opt/system-setup.py

Lines changed: 7 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -18,33 +18,28 @@ def __init__(self, nop=False):
1818

1919
def common_first(self):
2020
self.install_downloaders()
21-
self.setup_pip()
22-
self.pip_install("wheel virtualenv")
21+
self.pip_install("wheel")
2322

24-
if self.os == 'linux':
25-
self.install("ca-certificates")
26-
self.install("git unzip wget patchelf")
23+
self.install("git unzip patchelf")
2724
self.install("coreutils") # for realpath
2825

2926
def debian_compat(self):
3027
self.install("gawk")
3128
self.install("build-essential")
3229
self.install("libssl-dev")
33-
self.install("clang-format")
3430
self.install("python3-regex")
3531
self.install("python3-psutil python3-networkx python3-numpy")
36-
if self.arch == 'arm64v8' or self.arch == 'arm32v7':
32+
if self.platform.is_arm():
3733
self.install("python3-dev") # python3-skimage
3834
self.install("libmpich-dev libopenblas-dev") # for libtorch
3935
self.install_git_lfs_on_linux()
4036

4137
def redhat_compat(self):
4238
self.install("redhat-lsb-core")
43-
self.run("%s/readies/bin/enable-utf8" % HERE)
39+
self.run("%s/bin/enable-utf8" % READIES)
4440

45-
self.group_install("'Development Tools'")
4641
self.run("%s/bin/getgcc --modern" % READIES)
47-
self.install("llvm-toolset-7")
42+
# self.install("llvm-toolset-7")
4843

4944
if self.arch == 'x64':
5045
self.install_linux_gnu_tar()
@@ -63,7 +58,6 @@ def redhat_compat(self):
6358
def fedora(self):
6459
self.group_install("'Development Tools'")
6560
self.install("python3 python3-psutil python3-networkx")
66-
self.install("clang")
6761
self.install_git_lfs_on_linux()
6862

6963
def linux_last(self):
@@ -73,18 +67,13 @@ def macos(self):
7367
self.install_gnu_utils()
7468
self.install("git-lfs")
7569
self.install("redis")
76-
self.install("clang-format")
7770

7871
def common_last(self):
72+
self.run("%s/bin/getclang --format" % READIES)
7973
self.run("%s/bin/getcmake" % READIES)
8074

81-
self.run("python3 -m pip uninstall -y ramp-packer RLTest || true")
82-
# redis-py-cluster should be installed from git due to redis-py dependency
83-
self.pip_install("--no-cache-dir git+https://github.com/Grokzen/redis-py-cluster.git@master")
84-
self.pip_install("--no-cache-dir git+https://github.com/RedisLabsModules/RLTest.git@master")
85-
self.pip_install("--no-cache-dir git+https://github.com/RedisLabs/RAMP@master")
75+
self.run("{PYTHON} {READIES}/bin/getrmpytools".format(PYTHON=self.python, READIES=READIES))
8676

87-
self.pip_install("-r %s/readies/paella/requirements.txt" % HERE)
8877
self.pip_install("-r %s/tests/flow/test_requirements.txt" % ROOT)
8978

9079
self.pip_install("awscli")

src/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ file (GLOB BACKEND_COMMON_SRC
1616
err.c
1717
util/dict.c
1818
tensor.c
19+
util/string_utils.c
1920
serialization/ai_datatypes.c)
2021

2122
ADD_LIBRARY(redisai_obj OBJECT

0 commit comments

Comments
 (0)