-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Error when install Tiny cuda #980
Comments
try "pip install --upgrade setuptools" |
C:\Windows\System32>pip install --upgrade setuptools C:\Windows\System32>pip install git+https://github.com/NVlabs/tiny-cuda-nn/#subdirectory=bindings/torch × python setup.py bdist_wheel did not run successfully. note: This error originates from a subprocess, and is likely not a problem with pip. × Running setup.py install for tinycudann did not run successfully. note: This error originates from a subprocess, and is likely not a problem with pip. × Encountered error while trying to install package. note: This is an issue with the package mentioned above, not pip. I have this error now |
What command did you use to install the pytorch? Are you using Visual Studio 2019? |
I installed it using Visual Studio 2019 as follows. Operates on CUDA 11.6. pip install torch==1.12.1+cu116 torchvision==0.13.1+cu116 -f https://download.pytorch.org/whl/torch_stable.html Built in Ubuntu 22.04, too. but not in GCC-10. GCC-9 and G++-9 build. TCNN was not built when using too high a version of the C++ compiler. |
^^, 2017-2019 inclusive works |
I also surffer from this bug. HELP! |
You need to ensure your cuda-toolkit version matches with the version your pytorch was compiled with. If you installed torch 2.0.1 with CUDA 11.7, you need to make sure you install the cuda toolkit 11.7. In order to install a specific version of cuda toolkit, make sure your nvidia driver is of the correct version. You can check the cuda compatibility in this table Once you have the correct version of cuda-toolkit installed, you can install the tiny-cuda-nn with the following command: Here is a reference to install cuda-toolkit: |
`D:\Bureau\Nerf\nerfstudio>pip install git+https://github.com/NVlabs/tiny-cuda-nn/#subdirectory=bindings/torch
Collecting git+https://github.com/NVlabs/tiny-cuda-nn/#subdirectory=bindings/torch
Cloning https://github.com/NVlabs/tiny-cuda-nn/ to c:\users\guilla
1\appdata\local\temp\pip-req-build-zpkkvldo1\AppData\Local\Temp\pip-req-build-zpkkvldo'Running command git clone --filter=blob:none --quiet https://github.com/NVlabs/tiny-cuda-nn/ 'C:\Users\GUILLA
Resolved https://github.com/NVlabs/tiny-cuda-nn/ to commit c18f6803668dec3a56a36deaa48d53f7a0582d8d
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
╰─> [7 lines of output]
Traceback (most recent call last):
File "", line 36, in
File "", line 34, in
File "C:\Users\GUILLA~1\AppData\Local\Temp\pip-req-build-zpkkvldo\bindings/torch\setup.py", line 30, in
raise EnvironmentError("Unknown compute capability. Specify the target compute capabilities in the TCNN_CUDA_ARCHITECTURES environment variable or install PyTorch with the CUDA backend to detect it automatically.")
OSError: Unknown compute capability. Specify the target compute capabilities in the TCNN_CUDA_ARCHITECTURES environment variable or install PyTorch with the CUDA backend to detect it automatically.
Building PyTorch extension for tiny-cuda-nn version 1.6
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed
× Encountered error while generating package metadata.
╰─> See above for output.
note: This is an issue with the package mentioned above, not pip.
hint: See above for details.`
Thank You
The text was updated successfully, but these errors were encountered: