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

The base TensorFlow docker images do not have Cuda configured correctly #6

Closed
praveen-palanisamy opened this issue Apr 7, 2018 · 7 comments

Comments

@praveen-palanisamy
Copy link

The Issue:

import tensorflow fails with ImportError: libcuda.so.1: cannot open shared object file: No such file or directory using openai/retro-agent:tensorflow as the base docker image.

The issue exists in openai/retro-agent:tensorflow-1.4 also. Haven't tested other tags.

@endrift
Copy link
Contributor

endrift commented Apr 8, 2018

You need to use nvidia-docker (--runtime nvidia), at which point it will work properly.

@endrift endrift closed this as completed Apr 8, 2018
@praveen-palanisamy
Copy link
Author

The issue happens when used with retro-contest run <...> locally.

@endrift
Copy link
Contributor

endrift commented Apr 8, 2018

Were you passing -N?

@tristansokol
Copy link

I'm having the same issue, trying to get the baseline rainbow agent running

retro-contest run --agent $DOCKER_REGISTRY/rainbow-agent:v1 \
    --results-dir results --no-nv  --use-host-data\
    SonicTheHedgehog-Genesis GreenHillZone.Act1

It seems like you need to build a different image to test locally if you don't have a gpu (like my macbook) but I am not sure how since I am already using tensorflow not tensorflow-gpu

@HanSeoulOh
Copy link

Hi @tristansokol , were you able to build different images? New to docker and facing the same issue (macbook doesn't have gpu)

@tristansokol
Copy link

@HanSeoulOh, not yet (since I believe that I am still building CPU utilizing images & have tried using some other images that start install tensorflow). My current hypothesis is that tensorflow on my machine just can't find my installed Cuda libraries. I'm kind of lost though.

@endrift
Copy link
Contributor

endrift commented Apr 10, 2018

If you have an Nvidia GPU with nvidia-docker2 installed you should not pass --no-nv.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants