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

code does not see gpu #10

Open
skywo1f opened this issue Jan 19, 2020 · 1 comment
Open

code does not see gpu #10

skywo1f opened this issue Jan 19, 2020 · 1 comment

Comments

@skywo1f
Copy link

skywo1f commented Jan 19, 2020

If I run python and import tensorflow, it sees my gpu fine. But when I run training or inferencing with this code, it does not:
2020-01-19 11:16:48.866550: E tensorflow/stream_executor/cuda/cuda_driver.cc:318] failed call to cuInit: CUDA_ERROR_NO_DEVICE: no CUDA-capable device is detected

@skywo1f
Copy link
Author

skywo1f commented Jan 19, 2020

line ~22 of train does
os.environ['CUDA_VISIBLE_DEVICES'] = "1"
for some reason. Changing it to 0 fixes the problem

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

1 participant