Skip to content

Commit 4c8600c

Browse files
authored
Merge branch 'master' into update_documentation
2 parents a9aa828 + 8fc77bc commit 4c8600c

Some content is hidden

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

70 files changed

+791
-4396
lines changed

.circleci/config.yml

Lines changed: 25 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ commands:
101101
- checkout-all
102102
- restore_cache:
103103
keys:
104-
- v1-dependencies-{{ checksum "get_deps.sh" }}-cpu
104+
- v1.2.5-deps-{{ checksum "get_deps.sh" }}-cpu
105105
# If no exact match is found will get dependencies from source
106106
- setup-build-system
107107
- run:
@@ -112,7 +112,7 @@ commands:
112112
- save_cache:
113113
paths:
114114
- deps
115-
key: v1-dependencies-{{ checksum "get_deps.sh" }}-cpu
115+
key: v1.2.5-deps-{{ checksum "get_deps.sh" }}-cpu
116116
- run:
117117
name: Build
118118
command: make -C opt all SHOW=1
@@ -151,7 +151,7 @@ commands:
151151
- checkout-all
152152
- restore_cache:
153153
keys:
154-
- v1-dependencies-{{ checksum "get_deps.sh" }}-cpu
154+
- v1.2.5-deps-{{ checksum "get_deps.sh" }}-cpu
155155
# If no exact match is found will get dependencies from source
156156
- setup-build-system
157157
- run:
@@ -178,7 +178,7 @@ commands:
178178
- checkout-all
179179
- restore_cache:
180180
keys:
181-
- v1-dependencies-{{ checksum "get_deps.sh" }}-gpu
181+
- v1.2.5-deps-{{ checksum "get_deps.sh" }}-gpu
182182
- relocate-docker-storage
183183
- run:
184184
name: Build
@@ -189,7 +189,7 @@ commands:
189189
- save_cache:
190190
paths:
191191
- deps
192-
key: v1-dependencies-{{ checksum "get_deps.sh" }}-gpu
192+
key: v1.2.5-deps-{{ checksum "get_deps.sh" }}-gpu
193193
- run:
194194
name: Test
195195
command: |
@@ -221,25 +221,35 @@ jobs:
221221
platform: debian
222222

223223
platforms-build:
224+
machine:
225+
enabled: true
226+
docker_layer_caching: true
227+
resource_class: small
228+
image: ubuntu-2004:202107-02
224229
parameters:
225230
lite: # LITE value during make
226231
type: string
227232
osnick: # OSNICK value for the base platform of the docker
228233
type: string
229234
target: # CPU|GPU
230235
type: string
231-
docker:
232-
- image: redisfab/rmbuilder:6.2.5-x64-buster
233236
steps:
234237
- abort_for_docs
235238
- abort_for_noci
236239
- early_return_for_forked_pull_requests
237-
- setup_remote_docker:
238-
docker_layer_caching: true
239240
- checkout-all
241+
- run:
242+
name: Relocate docker overlay2 dir
243+
command: |
244+
sudo systemctl stop docker
245+
sudo mkdir -p /var2/lib/docker
246+
sudo mv /var/lib/docker/overlay2 /var2/lib/docker
247+
sudo mkdir /var/lib/docker/overlay2
248+
sudo mount --bind /var2/lib/docker/overlay2 /var/lib/docker/overlay2
249+
sudo systemctl start docker
240250
- restore_cache:
241251
keys:
242-
- v1-dependencies-{{ checksum "get_deps.sh" }}-<<parameters.osnick>>-<<parameters.target>>
252+
- v1.2.5-deps-{{ checksum "get_deps.sh" }}-<<parameters.osnick>>-<<parameters.target>>
243253
- setup-automation
244254

245255
# since we run in parallel, we need to generate docker files with different suffixes hence the DOCKER_SUFFIX
@@ -260,7 +270,7 @@ jobs:
260270
- save_cache:
261271
paths:
262272
- deps
263-
key: v1-dependencies-{{ checksum "get_deps.sh" }}-<<parameters.osnick>>-<<parameters.target>>
273+
key: v1.2.5-deps-{{ checksum "get_deps.sh" }}-<<parameters.osnick>>-<<parameters.target>>
264274
- persist_to_workspace:
265275
root: bin/
266276
paths:
@@ -275,7 +285,7 @@ jobs:
275285
- checkout-all
276286
- restore_cache:
277287
keys:
278-
- v1-dependencies-{{ checksum "get_deps.sh" }}-cpu
288+
- v1.2.5-deps-{{ checksum "get_deps.sh" }}-cpu
279289
# If no exact match is found will get dependencies from source
280290
- setup-build-system
281291
- run:
@@ -309,7 +319,7 @@ jobs:
309319
- checkout-all
310320
- restore_cache:
311321
keys:
312-
- v1-dependencies-{{ checksum "get_deps.sh" }}-cpu
322+
- v1.2.5-deps-{{ checksum "get_deps.sh" }}-cpu
313323
# If no exact match is found will get dependencies from source
314324
- setup-build-system
315325
- run:
@@ -342,53 +352,14 @@ jobs:
342352
steps:
343353
- valgrind-general-steps
344354

345-
# build-macos:
346-
# macos:
347-
# xcode: 11.3.0
348-
# steps:
349-
# - abort_for_docs
350-
# - run:
351-
# name: Fix macOS Python installation
352-
# command: |
353-
# brew reinstall -f python2
354-
# - build-steps:
355-
# platform: macos
356-
#
357-
# build-multiarch-docker:
358-
# machine:
359-
# enabled: true
360-
# image: cimg/base:2020.01
361-
# steps:
362-
# - abort_for_docs
363-
# - checkout-all
364-
# - run:
365-
# name: Checkout LFS
366-
# command: |
367-
# curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | sudo bash
368-
# sudo apt-get install -y git-lfs
369-
# git lfs install
370-
# git lfs pull
371-
# - run:
372-
# name: Setup Docker client experimental features
373-
# command: |
374-
# sudo ./opt/readies/bin/getdocker --just-enable-exp
375-
# docker version
376-
# - run:
377-
# name: Build
378-
# command: |
379-
# sudo docker login -u redisfab -p $DOCKER_REDISFAB_PWD
380-
# cd opt/build/docker
381-
# make build
382-
# sudo make publish
383-
384355
# internal PRs execute build-and-test either in a workflow or
385356
# via a github action trigger
386357
build-and-test-gpu:
387358
machine:
388359
enabled: true
389360
docker_layer_caching: true
390361
resource_class: gpu.nvidia.small
391-
image: ubuntu-1604-cuda-11.1:202012-01
362+
image: ubuntu-2004-cuda-11.2:202103-01
392363

393364
steps:
394365
- build-and-test-gpu-steps
@@ -400,7 +371,7 @@ jobs:
400371
enabled: true
401372
docker_layer_caching: true
402373
resource_class: gpu.nvidia.small
403-
image: ubuntu-1604-cuda-11.1:202012-01
374+
image: ubuntu-2004-cuda-11.2:202103-01
404375

405376
steps:
406377
- only_run_if_forked_pull_request

CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,7 @@ ENDIF()
160160
IF(BUILD_ORT)
161161
FIND_LIBRARY(ORT_LIBRARIES NAMES onnxruntime
162162
PATHS ${depsAbs}/onnxruntime/lib)
163+
ADD_SUBDIRECTORY(src/backends/onnx_allocator)
163164
MESSAGE(STATUS "Found ONNXRuntime Libraries: \"${ORT_LIBRARIES}\")")
164165
IF (NOT ORT_LIBRARIES)
165166
MESSAGE(FATAL_ERROR "Could not find ONNXRuntime")
@@ -293,6 +294,7 @@ ENDIF()
293294

294295
IF(BUILD_ORT)
295296
ADD_LIBRARY(redisai_onnxruntime SHARED $<TARGET_OBJECTS:redisai_onnxruntime_obj>)
297+
TARGET_LINK_LIBRARIES(redisai_onnxruntime onnx_allocator ${ORT_LIBRARIES})
296298
TARGET_LINK_LIBRARIES(redisai_onnxruntime ${ORT_LIBRARIES})
297299
SET_TARGET_PROPERTIES(redisai_onnxruntime PROPERTIES PREFIX "")
298300
SET_TARGET_PROPERTIES(redisai_onnxruntime PROPERTIES SUFFIX ".so")

Dockerfile.arm

Lines changed: 0 additions & 83 deletions
This file was deleted.

Dockerfile.jetson

Lines changed: 0 additions & 102 deletions
This file was deleted.

0 commit comments

Comments
 (0)