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

invailid ID issue - install error #449

Open
SamanthaZH opened this issue Jun 20, 2024 · 1 comment
Open

invailid ID issue - install error #449

SamanthaZH opened this issue Jun 20, 2024 · 1 comment

Comments

@SamanthaZH
Copy link

I suddenly met this error when I installed tinycudann.
" Traceback (most recent call last):
File "", line 2, in
File "", line 34, in
File "/tmp/pip-req-build-6eqgjbkw/bindings/torch/setup.py", line 47, in
major, minor = torch.cuda.get_device_capability()
File ".../lib/python3.9/site-packages/torch/cuda/init.py", line 357, in get_device_capability
prop = get_device_properties(device)
File ".../lib/python3.9/site-packages/torch/cuda/init.py", line 374, in get_device_properties
raise AssertionError("Invalid device id")
AssertionError: Invalid device id"

@SamanthaZH
Copy link
Author

Update with "
pip install torch==1.13.1+cu116 torchvision==0.14.1+cu116 torchaudio==0.13.1 --extra-index-url https://download.pytorch.org/whl/cu116 "
"pip install git+https://github.com/NVlabs/tiny-cuda-nn/#subdirectory=bindings/torch" and I also tried with local installation,. both got same error.

Cloning https://github.com/NVlabs/tiny-cuda-nn/ to /tmp/pip-req-build-d02z_270
Running command git clone --filter=blob:none --quiet https://github.com/NVlabs/tiny-cuda-nn/ /tmp/pip-req-build-d02z_270
Resolved https://github.com/NVlabs/tiny-cuda-nn/ to commit daf9628
Running command git submodule update --init --recursive -q
Preparing metadata (setup.py) ... error
error: subprocess-exited-with-error

× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [11 lines of output]
Traceback (most recent call last):
File "", line 2, in
File "", line 34, in
File "/tmp/pip-req-build-d02z_270/bindings/torch/setup.py", line 47, in
major, minor = torch.cuda.get_device_capability()
File "/home/jzhou23/.local/lib/python3.9/site-packages/torch/cuda/init.py", line 357, in get_device_capability
prop = get_device_properties(device)
File "/home/jzhou23/.local/lib/python3.9/site-packages/torch/cuda/init.py", line 374, in get_device_properties
raise AssertionError("Invalid device id")
AssertionError: Invalid device id
Building PyTorch extension for tiny-cuda-nn version 1.7
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

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