Skip to content
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

Update to ONNX runtime v1.0 #571

Closed
deliahu opened this issue Nov 11, 2019 · 0 comments
Closed

Update to ONNX runtime v1.0 #571

deliahu opened this issue Nov 11, 2019 · 0 comments
Labels
enhancement New feature or request
Projects

Comments

@deliahu
Copy link
Member

deliahu commented Nov 11, 2019

Description

Here's the commit that reverted the upgrade: 0a106b0

Resolving a series of errors led to adding this to the ONNX GPU Dockerfile:

ENV LD_LIBRARY_PATH "${LD_LIBRARY_PATH}:/usr/lib/x86_64-linux-gnu/:/usr/local/cuda-10.1/targets/x86_64-linux/lib/"
RUN ln -s /usr/lib/x86_64-linux-gnu/libcublas.so.10 /usr/lib/x86_64-linux-gnu/libcublas.so.10.0 && \
    ln -s /usr/lib/x86_64-linux-gnu/libcublasLt.so.10 /usr/lib/x86_64-linux-gnu/libcublasLt.so.10.0 && \
    ln -s /usr/local/cuda-10.1/targets/x86_64-linux/lib/libcudart.so.10.1 /usr/local/cuda-10.1/targets/x86_64-linux/lib/libcudart.so.10.0 && \
    ln -s /usr/local/cuda-10.1/targets/x86_64-linux/lib/libcufft.so.10 /usr/local/cuda-10.1/targets/x86_64-linux/lib/libcufft.so.10.0 && \
    ln -s /usr/local/cuda-10.1/targets/x86_64-linux/lib/libcufftw.so.10 /usr/local/cuda-10.1/targets/x86_64-linux/lib/libcufftw.so.10.0 && \
    ln -s /usr/local/cuda-10.1/targets/x86_64-linux/lib/libcuinj64.so.10.1 /usr/local/cuda-10.1/targets/x86_64-linux/lib/libcuinj64.so.10.0 && \
    ln -s /usr/local/cuda-10.1/targets/x86_64-linux/lib/libcurand.so.10 /usr/local/cuda-10.1/targets/x86_64-linux/lib/libcurand.so.10.0 && \
    ln -s /usr/local/cuda-10.1/targets/x86_64-linux/lib/libcusolver.so.10 /usr/local/cuda-10.1/targets/x86_64-linux/lib/libcusolver.so.10.0 && \
    ln -s /usr/local/cuda-10.1/targets/x86_64-linux/lib/libcusolverMg.so.10 /usr/local/cuda-10.1/targets/x86_64-linux/lib/libcusolverMg.so.10.0 && \
    ln -s /usr/local/cuda-10.1/targets/x86_64-linux/lib/libcusparse.so.10 /usr/local/cuda-10.1/targets/x86_64-linux/lib/libcusparse.so.10.0

Which still resulted in this error:

/usr/local/lib/python3.6/dist-packages/onnxruntime/capi/_pybind_state.py:13: UserWarning: Cannot load onnxruntime.capi. Error: '/usr/lib/x86_64-linux-gnu/libcublas.so.10.0: version `libcublas.so.10.0' not found (required by /usr/local/lib/python3.6/dist-packages/onnxruntime/capi/onnxruntime_pybind11_state.cpython-36m-x86_64-linux-gnu.so)'
  warnings.warn("Cannot load onnxruntime.capi. Error: '{0}'".format(str(e)))
Traceback (most recent call last):
  File "/src/cortex/onnx_serve/api.py", line 23, in <module>
    import onnxruntime as rt
  File "/usr/local/lib/python3.6/dist-packages/onnxruntime/__init__.py", line 12, in <module>
    from onnxruntime.capi._pybind_state import get_all_providers, get_available_providers, get_device, RunOptions, SessionOptions, set_default_logger_severity, NodeArg, ModelMetadata, GraphOptimizationLevel, ExecutionMode
ImportError: cannot import name 'get_all_providers'
@deliahu deliahu added the enhancement New feature or request label Nov 11, 2019
@deliahu deliahu added this to Prioritize in Cortex via automation Nov 11, 2019
@deliahu deliahu changed the title Update to ONNX v1.0 Update to ONNX runtime v1.0 Nov 25, 2019
@deliahu deliahu added the v0.13 label Nov 25, 2019
@deliahu deliahu removed the v0.13 label Dec 20, 2019
@deliahu deliahu closed this as completed Jan 22, 2020
Cortex automation moved this from Prioritize to Done Jan 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
No open projects
Development

No branches or pull requests

1 participant