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

python: Relink error in GPU image #2048

Closed
RafalSkolasinski opened this issue Jun 29, 2020 · 2 comments
Closed

python: Relink error in GPU image #2048

RafalSkolasinski opened this issue Jun 29, 2020 · 2 comments
Labels
bug triage Needs to be triaged and prioritised accordingly

Comments

@RafalSkolasinski
Copy link
Contributor

It seems that there is a problem with GPU image that in certain scenarios lead to the following error.

$ docker run --rm -it seldonio/seldon-core-s2i-python3-tf-gpu:0.18 \
   python -c 'import seldon_core.proto.tensorflow.core.framework; import grpc' 
python: Relink `/usr/local/lib/python3.6/dist-packages/grpc/_cython/cygrpc.cpython-36m-x86_64-linux-gnu.so' with `/lib/x86_64-linux-gnu/librt.so.1' for IFUNC symbol `clock_gettime'
$ docker run --rm -it seldonio/seldon-core-s2i-python3-tf-gpu:1.2.0 \
   python -c 'import seldon_core.proto.tensorflow.core.framework; import grpc'      (kind-kind/seldon)
python: Relink `/usr/local/lib/python3.6/dist-packages/grpc/_cython/cygrpc.cpython-36m-x86_64-linux-gnu.so' with `/lib/x86_64-linux-gnu/librt.so.1' for IFUNC symbol `clock_gettime'

Problem goes away if one either

  • remove tensorflow-gpu with pip uninstall tensorflow-gpu
  • add tensorflow, e.g. pip install tensorflow==1.13.1 (or other tensorflow-gpu matching version)

Problem is also solved if conda is installed and used as a base Python.
This means the issue will be solved once #1972 is merged.

As it seems to be of interest to have GPU image without tensorflow for some use cases we will probably for 1.3 have a GPU conda-based image without the tensorflow / tensorflow-gpu installed.

@RafalSkolasinski RafalSkolasinski added bug triage Needs to be triaged and prioritised accordingly labels Jun 29, 2020
@RafalSkolasinski
Copy link
Contributor Author

Side note: The import seldon_core.proto.tensorflow.core.framework; import grpc import order is just the easiest way to reproduce the problem.

This problem when container starts seldon-core-microservice <- it took me some time to go through the imports order and find what was the root of the problem.

@RafalSkolasinski RafalSkolasinski changed the title Segmentation fault in GPU image python: Relink error in GPU image Jun 29, 2020
@RafalSkolasinski
Copy link
Contributor Author

Solved by #1972

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug triage Needs to be triaged and prioritised accordingly
Projects
None yet
Development

No branches or pull requests

1 participant