tiny-cuda-nn icon indicating copy to clipboard operation
tiny-cuda-nn copied to clipboard

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

Open Livioni opened this issue 1 year ago • 1 comments

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 avatar May 16 '24 09:05 Livioni

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 https://github.com/NVlabs/tiny-cuda-nn/blob/2ec562e853e6f482b5d09168705205f46358fb39/bindings/torch/tinycudann/modules.py#L16

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.")

Livioni avatar May 17 '24 01:05 Livioni

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

yhaddouda avatar May 21 '24 11:05 yhaddouda

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

Tom94 avatar May 21 '24 11:05 Tom94

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 avatar May 21 '24 14:05 Livioni

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 avatar May 22 '24 00:05 Livioni