-
Notifications
You must be signed in to change notification settings - Fork 106
Onnx runtime set allocator #619
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
50 commits
Select commit
Hold shift + click to select a range
6985a7d
passing arch in to pack.sh
chayim cf89a89
arm64v7
chayim e74a8ab
POC - set Redis allocator in onnx and use forked onnx repo
alonre24 3da3825
Update readies
alonre24 ff3a29f
Merge branch 'onxruntime-arch' into OnnxRuntime_set_allocator
alonre24 089464e
Fix docker build for onnx
alonre24 16cb197
changes to get the tarball from the docker and publish to s3
chayim e256864
testing onnx custom allocator
alonre24 c5a6ef9
Introduce an API that allows setting a custom allocator for onnxrunti…
alonre24 9da01d6
Merge branch 'master' into OnnxRuntime_set_allocator
alonre24 c00874e
Fix docker build
alonre24 67c40f8
Remove test model and use only flow test (the test module is redundan…
alonre24 968a5a0
Merge branch 'master' into OnnxRuntime_set_allocator
alonre24 79a613a
Backward compatibility for GPU - when running on GPU, use the default…
alonre24 e404178
Backward compatibility for GPU - when running on GPU, use the default…
alonre24 c83fccc
Addressing Rafi's comments.
alonre24 504f1eb
Add sanitizer test for GPU + Dvir's PR comments
alonre24 2bb4bd9
Merge branch 'master' into OnnxRuntime_set_allocator
alonre24 2502d09
Use custom allocator also in GPU, for allocating input and output names.
alonre24 daa6b2e
added gpu dockerfile
fb7c758
Fixes for building and publishing onnx for gpu.
alonre24 df58ff2
Merge branch 'master' into OnnxRuntime_set_allocator
alonre24 3d7be97
speeding up the docker build by pararellizing the submodule fetch
chayim dd5bdc6
for Debug COV test in CI
alonre24 7406ba7
Merge branch 'OnnxRuntime_set_allocator' of https://github.com/RedisA…
alonre24 4c49aa9
Use custom allocator for models that created for CPU, even when CUDA …
alonre24 513bb7c
Merge master
alonre24 eac91a1
Update build config of onnxruntime to RelWithDebInfo
alonre24 8f92cd8
Merge branch 'OnnxRuntime_set_allocator' into ck-dockerisms
alonre24 a0ec6c3
Debug coverage in CI
alonre24 3124433
Merge branch 'OnnxRuntime_set_allocator' into ck-dockerisms
alonre24 bf5678e
Merge pull request #621 from RedisAI/ck-dockerisms
alonre24 1b6ba6c
Debug coverage in CI
alonre24 56651ec
Merge iwth Haim change
alonre24 f9e45ff
Disable graph optimization (to fix flaky tests in onnx)
alonre24 19633fa
Merge branch 'master' into OnnxRuntime_set_allocator
alonre24 1628d38
Upgrade to onnx 1.7.1 (forked version with custom allocator)
alonre24 bdf610f
Merge branch 'OnnxRuntime_set_allocator' of https://github.com/RedisA…
alonre24 84b7e21
Debug CI
alonre24 049417e
Align allocation for onnx to 32-byte
alonre24 8a67662
Align allocation for onnx to 64-byte
alonre24 d4fba33
Fix test for GPU+CPU
alonre24 979b92e
Merge branch 'master' into OnnxRuntime_set_allocator
alonre24 688ac74
Elaborate documentation.
alonre24 3b6e094
Merge branch 'OnnxRuntime_set_allocator' of https://github.com/RedisA…
alonre24 3eefa1c
Merge branch 'master' into OnnxRuntime_set_allocator
alonre24 9bf31c2
Extend GPU test
alonre24 a847b1f
Merge branch 'OnnxRuntime_set_allocator' of https://github.com/RedisA…
alonre24 dd19238
Fix GPU test
alonre24 f27405b
Remove onnx from valgrind suppressions, and fix leaks that were found.
alonre24 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,43 @@ | ||
| ARG OS=ubuntu18.04 | ||
| ARG CUDA_VER=11.0-cudnn8 | ||
|
|
||
| FROM nvidia/cuda:11.0-cudnn8-devel-ubuntu18.04 | ||
|
|
||
| ARG ONNXRUNTIME_REPO=https://github.com/RedisAI/onnxruntime | ||
| ARG ONNXRUNTIME_VER=1.7.1 | ||
| ARG ARCH=x64-gpu | ||
|
|
||
| RUN apt-get -qq update | ||
| RUN apt-get -qq install -y curl \ | ||
| wget tar git build-essential \ | ||
| libcurl4-openssl-dev libssl-dev \ | ||
| libatlas-base-dev zlib1g-dev python3 python3-pip \ | ||
| python3-dev python3-numpy rsync | ||
|
|
||
| RUN pip3 install --upgrade pip setuptools wheel | ||
|
|
||
| RUN wget -q https://github.com/Kitware/CMake/releases/download/v3.19.5/cmake-3.19.5-Linux-x86_64.tar.gz -O /tmp/cmake.tgz | ||
| WORKDIR /tmp | ||
| RUN tar -xpf cmake.tgz | ||
| RUN rsync -aqH cmake*/* /usr | ||
|
|
||
|
|
||
| ENV LANG=en_US.UTF-8 | ||
| RUN apt-get install -y locales && \ | ||
| sed -i -e "s/# $LANG.*/$LANG UTF-8/" /etc/locale.gen && \ | ||
| dpkg-reconfigure --frontend=noninteractive locales && \ | ||
| update-locale LANG=$LANG | ||
|
|
||
| WORKDIR /build | ||
|
|
||
| ARG BUILDTYPE=MinSizeRel | ||
| ARG BUILDARGS="--config ${BUILDTYPE} --parallel" | ||
|
|
||
| RUN git clone --single-branch --branch rel-${ONNXRUNTIME_VER} ${ONNXRUNTIME_REPO} onnxruntime | ||
| WORKDIR /build/onnxruntime | ||
| RUN git fetch --recurse-submodules -j4 | ||
| RUN ./build.sh ${BUILDARGS} --update --build --use_cuda --cudnn_home /usr/local/cuda --cuda_home /usr/local/cuda --build_shared_lib --parallel | ||
|
|
||
| ADD ./pack.sh /build/ | ||
| WORKDIR /build | ||
| RUN ./pack.sh ${ONNXRUNTIME_VER} ${ARCH} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.