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
pythonPackages.tensorflow: Hardcode a second search class. #65584
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
commit message: pythonPackages.tensorflow: Hardcode a second search class
Done |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nix-review
passes on NixOS
diff LGTM (although there might be a better way?)
fixes issue mentioned in PR comment
[nix-shell:~/.cache/nix-review/pr-65584]$ nix-shell ./nixpkgs -p python3Packages.tensorflowWithCuda --pure
[nix-shell:~/.cache/nix-review/pr-65584]$ python
Python 3.7.4 (default, Jul 8 2019, 18:31:06)
[GCC 7.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import tensorflow
>>> print(tensorflow.test.is_gpu_available())
2019-07-29 18:14:58.191109: I tensorflow/core/platform/cpu_feature_guard.cc:142] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2 FMA
2019-07-29 18:14:58.233082: I tensorflow/core/platform/profile_utils/cpu_utils.cc:94] CPU Frequency: 3600000000 Hz
2019-07-29 18:14:58.233665: I tensorflow/compiler/xla/service/service.cc:168] XLA service 0x514e30 executing computations on platform Host. Devices:
2019-07-29 18:14:58.233699: I tensorflow/compiler/xla/service/service.cc:175] StreamExecutor device (0): <undefined>, <undefined>
2019-07-29 18:14:58.236173: I tensorflow/stream_executor/platform/default/dso_loader.cc:42] Successfully opened dynamic library libcuda.so.1
...
I suggest to do this instead, which will be more robust:
(Personally I would hardcode .so because that expression makes the whole thing unreadable.) |
Yes, you need to account for |
Switched to a direct so.* match. |
It appears without this, libcuda.so.1 is not picked up and nvidia graphics are broken
It appears without this, libcuda.so.1 is not picked up and nvidia
graphics are broken
Fixes #65515
Motivation for this change
My tensorflow setup doesn't work with head.
Things done
sandbox
innix.conf
on non-NixOS)nix-shell -p nix-review --run "nix-review wip"
./result/bin/
)nix path-info -S
before and after)