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

pytorchWithCuda fails to run #67468

Closed
c00w opened this issue Aug 25, 2019 · 2 comments · Fixed by #65041
Closed

pytorchWithCuda fails to run #67468

c00w opened this issue Aug 25, 2019 · 2 comments · Fixed by #65041
Labels

Comments

@c00w
Copy link
Contributor

c00w commented Aug 25, 2019

Describe the bug
Build a python environment with

with import <nixpkgs> {};

python3.withPackages (ps: with ps; [ pytorchWithCuda])

To Reproduce
Steps to reproduce the behavior:

  1. Run result/bin/python test.py, where test.py is
import torch

Expected behavior
Pytorch should import and be usable
instead output is

 % ./result/bin/python3.7 test.py 
Traceback (most recent call last):
  File "test.py", line 1, in <module>
    import torch
  File "/nix/store/kj6nlr3nl329ndz3b6f0f2kq503zp9d9-python3-3.7.4-env/lib/python3.7/site-packages/torch/__init__.py", line 84, in <module>
    from torch._C import *
ImportError: /nix/store/kj6nlr3nl329ndz3b6f0f2kq503zp9d9-python3-3.7.4-env/lib/python3.7/site-packages/torch/lib/libtorch.so.1: undefined symbol: nvrtcGetProgramLogSize

Screenshots

Additional context
I have a nvidia 1060 gpu and the nvidia drivers installed

Metadata
Please run nix run nixpkgs.nix-info -c nix-info -m and paste the result.

% nix run nixpkgs.nix-info -c nix-info -m ~/brood/src/codeml

  • system: "x86_64-linux"
  • host os: Linux 5.2.9, NixOS, 19.09pre-git (Loris)
  • multi-user?: yes
  • sandbox: yes
  • version: nix-env (Nix) 2.2.2
  • channels(colin): ""
  • channels(root): "nixos-19.09pre190479.765a71f1502"
  • nixpkgs: /nix/var/nix/profiles/per-user/root/channels/nixos

Maintainer information:

# a list of nixpkgs attributes affected by the problem
attribute:
- pytorchWithCuda
# a list of nixos modules affected by the problem
module:
@c00w c00w added the 0.kind: bug Something is broken label Aug 25, 2019
@jethrokuan
Copy link
Contributor

I have the same issue, I think there's ongoing work in fixing this: #65041

@stites stites mentioned this issue Aug 29, 2019
10 tasks
@stites
Copy link
Member

stites commented Aug 29, 2019

#65041 will close this. Please check out https://github.com/stites/pytorch-world in the meantime to preview pytorch-1.2 and file any bugs you find (also check out the probtorch folder if you need help adding this to your project).

Cachix binaries (primarily focused on cudatoolkit_10) are also available at https://pytorch-world.cachix.org

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

Successfully merging a pull request may close this issue.

4 participants