Skip to content

Commit 8966fc7

Browse files
author
DvirDukhan
authored
Merge branch 'master' into lite
2 parents 2b8e5ba + 110030e commit 8966fc7

File tree

16 files changed

+131
-118
lines changed

16 files changed

+131
-118
lines changed

.circleci/config.yml

Lines changed: 42 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,29 @@
11
version: 2.1
22

33
commands:
4+
abort_for_docs:
5+
steps:
6+
- run:
7+
name: Avoid tests for docs
8+
command: |
9+
if [[ $CIRCLE_BRANCH == *_docs ]]; then
10+
echo "Identifies as documents PR, no testing required"
11+
circleci step halt
12+
fi
13+
14+
early_return_for_forked_pull_requests:
15+
description: >-
16+
If this build is from a fork, stop executing the current job and return success.
17+
This is useful to avoid steps that will fail due to missing credentials.
18+
steps:
19+
- run:
20+
name: Early return if this build is from a forked PR
21+
command: |
22+
if [[ -n "$CIRCLE_PR_NUMBER" ]]; then
23+
echo "Nothing to do for forked PRs, so marking this step successful"
24+
circleci step halt
25+
fi
26+
427
setup-executor:
528
steps:
629
- run:
@@ -25,6 +48,7 @@ commands:
2548
platform:
2649
type: string
2750
steps:
51+
- abort_for_docs
2852
- checkout
2953
- run:
3054
name: Submodule checkout
@@ -72,6 +96,7 @@ commands:
7296

7397
platforms-build-steps:
7498
steps:
99+
- abort_for_docs
75100
- checkout
76101
- run:
77102
name: Relocate docker overlay2 dir
@@ -93,8 +118,8 @@ commands:
93118
docker login -u redisfab -p $DOCKER_REDISFAB_PWD
94119
pushd opt/build/docker
95120
for osnick in bionic xenial; do
96-
make CPU=1 OSNICK=$osnick ARTIFACTS=1 VERBOSE=1
97-
make GPU=1 OSNICK=$osnick ARTIFACTS=1 VERBOSE=1
121+
make CPU=1 OSNICK=$osnick ARTIFACTS=1 VERBOSE=1 build publish
122+
make GPU=1 OSNICK=$osnick ARTIFACTS=1 VERBOSE=1 build publish
98123
done
99124
popd > /dev/null
100125
logstar=bin/artifacts/tests-logs-cpu.tgz
@@ -117,6 +142,8 @@ commands:
117142
from:
118143
type: string
119144
steps:
145+
- abort_for_docs
146+
- early_return_for_forked_pull_requests
120147
- run:
121148
name: Deploy to S3
122149
command: |
@@ -158,6 +185,7 @@ jobs:
158185
docker:
159186
- image: redisfab/rmbuilder:6.0.9-x64-buster
160187
steps:
188+
- abort_for_docs
161189
- checkout
162190
- run:
163191
name: Submodule checkout
@@ -191,10 +219,11 @@ jobs:
191219
docker:
192220
- image: redisfab/rmbuilder:6.0.9-x64-buster
193221
steps:
222+
- abort_for_docs
194223
- checkout
195224
- run:
196225
name: Submodule checkout
197-
command: git submodule update --init --recursive
226+
command: git submodule update --init --recursive
198227
- restore_cache:
199228
keys:
200229
- build-dependencies-{{ checksum "get_deps.sh" }}
@@ -219,18 +248,20 @@ jobs:
219248
macos:
220249
xcode: 11.3.0
221250
steps:
251+
- abort_for_docs
222252
- run:
223253
name: Fix macOS Python installation
224254
command: |
225255
brew reinstall -f python2
226256
- build-steps:
227-
platform: macosx
257+
platform: macos
228258

229259
build-multiarch-docker:
230260
machine:
231261
enabled: true
232262
image: cimg/base:2020.01
233263
steps:
264+
- abort_for_docs
234265
- checkout
235266
- run:
236267
name: Submodule checkout
@@ -262,6 +293,7 @@ jobs:
262293
resource_class: gpu.nvidia.small
263294
image: ubuntu-1604-cuda-11.1:202012-01
264295
steps:
296+
- abort_for_docs
265297
- checkout
266298
- run:
267299
name: Submodule checkout
@@ -295,6 +327,8 @@ jobs:
295327
docker:
296328
- image: redisfab/rmbuilder:6.0.9-x64-buster
297329
steps:
330+
- abort_for_docs
331+
- early_return_for_forked_pull_requests
298332
- attach_workspace:
299333
at: workspace
300334
- run:
@@ -310,6 +344,8 @@ jobs:
310344
docker:
311345
- image: redisfab/rmbuilder:6.0.9-x64-buster
312346
steps:
347+
- abort_for_docs
348+
- early_return_for_forked_pull_requests
313349
- attach_workspace:
314350
at: workspace
315351
- run:
@@ -331,6 +367,8 @@ jobs:
331367
docker:
332368
- image: redisfab/rmbuilder:6.0.9-x64-buster
333369
steps:
370+
- abort_for_docs
371+
- early_return_for_forked_pull_requests
334372
- attach_workspace:
335373
at: workspace
336374
- run:

CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,7 @@ ENDIF()
200200
#----------------------------------------------------------------------------------------------
201201

202202
ADD_SUBDIRECTORY(src)
203+
ADD_SUBDIRECTORY(tests/module)
203204
ADD_LIBRARY(redisai SHARED $<TARGET_OBJECTS:redisai_obj>)
204205

205206
TARGET_LINK_LIBRARIES(redisai ${CMAKE_DL_LIBS})

Dockerfile.jetson

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ ARG OS
8181
ARG L4T_VER
8282

8383
RUN if [ ! -z $(command -v apt-get) ]; then apt-get -qq update; apt-get -q install -y libgomp1; fi
84-
RUN if [ ! -z $(command -v yum) ]; then yum install -y libgomp; fi
84+
RUN if [ ! -z $(command -v yum) ]; then yum install -y libgomp; fi
8585

8686
ENV REDIS_MODULES /usr/lib/redis/modules
8787
RUN mkdir -p $REDIS_MODULES/
@@ -96,4 +96,5 @@ COPY --from=builder /build/bin/artifacts/ /var/opt/redislabs/artifacts
9696
WORKDIR /data
9797
EXPOSE 6379
9898
# CMD ["/usr/local/bin/redis-server", "/usr/local/etc/redis/redis.conf", "--loadmodule", "/usr/lib/redis/modules/redisai.so"]
99+
RUN rm -rf /root/.cache /usr/local/cuda/lib64/*.a /usr/local/cuda/doc /usr/local/cuda/samples
99100
CMD ["/usr/local/bin/redis-server", "--loadmodule", "/usr/lib/redis/modules/redisai.so"]

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[![GitHub issues](https://img.shields.io/github/release/RedisAI/RedisAI.svg?sort=semver)](https://github.com/RedisAI/RedisAI/releases/latest)
22
[![CircleCI](https://circleci.com/gh/RedisAI/RedisAI/tree/master.svg?style=svg)](https://circleci.com/gh/RedisAI/RedisAI/tree/master)
3-
[![Docker Cloud Build Status](https://img.shields.io/docker/cloud/build/redisai/redisai.svg)](https://hub.docker.com/r/redisai/redisai/builds/)
3+
[![Dockerhub](https://img.shields.io/badge/dockerhub-redislabs%2Fredisai-blue)](https://hub.docker.com/r/redislabs/redisai/tags/)
44
[![codecov](https://codecov.io/gh/RedisAI/RedisAI/branch/master/graph/badge.svg)](https://codecov.io/gh/RedisAI/RedisAI)
55
[![Total alerts](https://img.shields.io/lgtm/alerts/g/RedisAI/RedisAI.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/RedisAI/RedisAI/alerts/)
66

@@ -23,13 +23,13 @@ If you want to run examples, make sure you have [git-lfs](https://git-lfs.github
2323
To quickly tryout RedisAI, launch an instance using docker:
2424

2525
```sh
26-
docker run -p 6379:6379 -it --rm redisai/redisai
26+
docker run -p 6379:6379 -it --rm redislabs/redisai
2727
```
2828

2929
For docker instance with GPU support, you can launch it from `tensorwerk/redisai-gpu`
3030

3131
```sh
32-
docker run -p 6379:6379 --gpus all -it --rm redisai/redisai:latest-gpu
32+
docker run -p 6379:6379 --gpus all -it --rm redislabs/redisai:latest-gpu
3333
```
3434

3535
But if you'd like to build the docker image, you need a machine that has Nvidia driver (CUDA 10.0), nvidia-container-toolkit and Docker 19.03+ installed. For detailed information, checkout [nvidia-docker documentation](https://github.com/NVIDIA/nvidia-docker)

docs/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ RedisAI is a joint effort between [Redis Labs](https://www.redislabs.com) and [T
1717
## Quick Links
1818
* [Source code repository](https://github.com/RedisAI/RedisAI)
1919
* [Releases](https://github.com/RedisAI/RedisAI/releases)
20-
* [Docker image](https://hub.docker.com/r/redisai/redisai/)
20+
* [Docker image](https://hub.docker.com/r/redislabs/redisai/)
2121

2222
## Contact Us
2323
If you have questions, want to provide feedback or perhaps report an issue or [contribute some code](contrib.md), here's where we're listening to you:

docs/intro.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ Backend libraries are dynamically loaded as needed, but can also be loaded durin
124124
The easiest way to get a standalone Redis server with RedisAI bootstrapped locally is to use the official RedisAI Docker container image:
125125

126126
```
127-
docker run -d --name redisai -p 6379:6379 redisai/redisai:latest
127+
docker run -d --name redisai -p 6379:6379 redislabs/redisai:latest
128128
```
129129

130130
??? info "Further reference"

docs/quickstart.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@ The quickest way to try RedisAI is by launching its official Docker container im
88

99
### On a CPU only machine
1010
```
11-
docker run -p 6379:6379 redisai/redisai:latest
11+
docker run -p 6379:6379 redislabs/redisai:latest
1212
```
1313

1414
### On a GPU machine
1515

1616
```
17-
docker run -p 6379:6379 --gpus all -it --rm redisai/redisai:latest-gpu
17+
docker run -p 6379:6379 --gpus all -it --rm redislabs/redisai:latest-gpu
1818
```
1919

2020
## Download

opt/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -280,6 +280,7 @@ test: build
280280
$(SHOW)\
281281
DEVICE=$(DEVICE) \
282282
MODULE=$(realpath $(INSTALLED_TARGET)) \
283+
TESTMOD=$(realpath $(BINDIR)/tests/module/testmod.so) \
283284
CLUSTER=$(CLUSTER) \
284285
GEN=$(GEN) AOF=$(AOF) SLAVES=$(SLAVES) \
285286
VALGRIND=$(VALGRIND) \

0 commit comments

Comments
 (0)