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
tensorflow: libcuda not discovered. #65515
Comments
libcuda.so.1 does appear to be in the correct directory
|
I can confirm that reverting back to 19.03 from unstable fixes this. |
We don't set I'm not sure why it's not working, though. The fix is to use nixpkgs/pkgs/development/python-modules/tensorflow/bin.nix Lines 87 to 95 in cf82a58
Can you use cc @ambrop72 (It looks like |
The problem is that However, even if I run it with
Finally, I think that is wrong that the package directly refers to |
Did anyone else try with |
Nice! Cool bug. I don't have an nvidia gpu, so I can't test it on my machine. |
The relevant lines from stracing appear to be
|
I can confirm the following patch fixes it
|
Describe the bug
Tensorflow is not detecting GPUs in python3 - this appears to be caused by a failure to import libcuda.so
To Reproduce
Steps to reproduce the behavior:
% cat gpu.py ~/brood/src/ml
#! /usr/bin/env nix-shell
#! nix-shell -i python3 -p "with python3Packages; [Keras tensorflowWithCuda]"
import tensorflow
print(tensorflow.test.is_gpu_available())
Expected behavior
The script should print true and have no warnings about libcuda
Screenshots
Additional context
Metadata
Please run
nix run nixpkgs.nix-info -c nix-info -m
and paste the result.Maintainer information:
The text was updated successfully, but these errors were encountered: