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

OSError: Could not find compatible tinycudann extension for compute capability 87. #434

Closed
Livioni opened this issue May 16, 2024 · 5 comments

Comments

@Livioni
Copy link

Livioni commented May 16, 2024

Problems about running tinycudann on Jetson AGX Orin

Platform info:
jtop

torch 2.2.0
torchvision 0.17

Problem:
The following error occurs whenever I import tinycudann.

>>> import tinycudann
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/xns/miniconda3/envs/3dgs/lib/python3.10/site-packages/tinycudann-1.7-py3.10-linux-aarch64.egg/tinycudann/__init__.py", line 9, in <module>
    from tinycudann.modules import free_temporary_memory, NetworkWithInputEncoding, Network, Encoding
  File "/home/xns/miniconda3/envs/3dgs/lib/python3.10/site-packages/tinycudann-1.7-py3.10-linux-aarch64.egg/tinycudann/modules.py", line 59, in <module>
    raise EnvironmentError(f"Could not find compatible tinycudann extension for compute capability {system_compute_capability}.")
OSError: Could not find compatible tinycudann extension for compute capability 87.
@Livioni
Copy link
Author

Livioni commented May 17, 2024

I managed to resolve it by rebuiling tinycudann, the key step is to export TCNN_CUDA_ARCHITECTURES=86 before intalling PyTorch extension.

I think tinycudann dose not support Jetson AGX Orin yet, because the jetson's cuda capability (87) is not in the supported list

ALL_COMPUTE_CAPABILITIES = [20, 21, 30, 35, 37, 50, 52, 53, 60, 61, 62, 70, 72, 75, 80, 86, 89, 90]

import tinycudann
/home/xns/miniconda3/envs/3dgs/lib/python3.10/site-packages/tinycudann-1.7-py3.10-linux-aarch64.egg/tinycudann/modules.py:53: UserWarning: tinycudann was built for lower compute capability (86) than the system's (87). Performance may be suboptimal.
  warnings.warn(f"tinycudann was built for lower compute capability ({cc}) than the system's ({system_compute_capability}). Performance may be suboptimal.")

@yhaddouda
Copy link

Hello,
I have the same problem on my jetson orin, do you install tinycudann before instaling pytorch then? and can you elaborate in which step exactly you do : export TCNN_CUDA_ARCHITECTURES=86 ?
Thank you

@Tom94
Copy link
Collaborator

Tom94 commented May 21, 2024

Hopefully this workaround is no longer needed. I just pushed an attempted fix that should make it work out of the box (see also #436). Please try re-downloading and installing again -- could you let me know if it works?

@Livioni
Copy link
Author

Livioni commented May 21, 2024

Hopefully this workaround is no longer needed. I just pushed an attempted fix that should make it work out of the box (see also #436). Please try re-downloading and installing again -- could you let me know if it works?

Thanks for your reply, I will check it later!

@Livioni
Copy link
Author

Livioni commented May 22, 2024

It works well now。

Hopefully this workaround is no longer needed. I just pushed an attempted fix that should make it work out of the box (see also #436). Please try re-downloading and installing again -- could you let me know if it works?

Thanks for your reply, I will check it later!

@Livioni Livioni closed this as completed May 22, 2024
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

3 participants