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

Problems installing the package #8

Open
tacchinotacchi opened this issue Jan 21, 2022 · 1 comment
Open

Problems installing the package #8

tacchinotacchi opened this issue Jan 21, 2022 · 1 comment

Comments

@tacchinotacchi
Copy link

While trying to install this package, I've had a couple problems:

  1. I had PyTorch installed through conda, pip was trying to install this torch version in an isolated env to build the package, couldn't find it and was hanging in an infinite loop. Solved with --no-build-isolation, wonder if there's a way to do this in the repo files instead of relying on the user?
  2. This exception is thrown when trying to import the package:
FileNotFoundError                         Traceback (most recent call last)
Input In [2], in <module>
----> 1 import torch_discounted_cumsum

# uninteresting stack trace...

FileNotFoundError: [Errno 2] No such file or directory: '.../lib/python3.9/site-packages/torch_discounted_cumsum/discounted_cumsum_cuda.cpp'

it seems the cuda source file is not kept around in the installed package, I'm not sure why?

@tacchinotacchi
Copy link
Author

My bad, the second problem was because I wasn't setting CUDA_HOME during the initial installation.

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