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 89

Open Lucklycat opened this issue 2 years ago • 6 comments

i install is ok ,but when i run a train.py code ,there havea problem: image

i am try add the TCNN_CUDA_ARCHITECTURES=86,but there is no effect.

please give me some advice.

my env: os: unbutu Graphics card:RTX4090 cuda: 11.6

Lucklycat avatar Jan 18 '23 02:01 Lucklycat

+1

Tobe2d avatar Jan 22 '23 18:01 Tobe2d

Also running into the same issue. What is the recommended software versions when using at 4090?

I have tried,

  • CUDA 11.7, nvidia-driver 525, pytorch 1.12.1+cu116 -> No compute capability 89
  • CUDA 11.7, nvidia-driver 515, pytorch 1.12.1+cu116 -> Installs, but can't find the 4090
  • CUDA 12, nvidia-driver 525, pytorch 1.12.1+cu116 -> Can't compile when pytorch cuda (11) / and system cuda (12) don't match

It does install if I use TCNN_CUDA_ARCHITECTURES=86, but this will be less efficient, right?

tancik avatar Jan 24 '23 17:01 tancik

Unfortunately, this seems like a case of compatibility hell to me -- ~I don't think there's a way to compile for compute capability 89 and have a PyTorch version with CUDA <11.8. I'm surprised that your second bullet installs at all~. EDIT: actually, if you install CUDA 11.8 on your system while using PyTorch with 11.6 or 11.7, you should be able to. Compute capability 89 is supported starting with CUDA 11.8.

In any case, from personal experiments in C++-land, tiny-cuda-nn is more-or-less equally fast when running with TCNN_CUDA_ARCHITECTURES=86 on a 4090 as it is when running 89, so you don't need to worry about this.

What I'll do on my end (probably after the SIGGRAPH deadline) is to hardcode CUDA version vs. compute capability compatibilities into setup.py (ugh) to make sure compilation falls back to the latest supported version rather than outright failing. Sorry about that one -- the CMake script already has this implemented, but it's not present on the Python side yet.

Tom94 avatar Jan 24 '23 17:01 Tom94

Thanks @Tom94 for the pointers, I had not realized that compute capability support did not start until CUDA 11.8.

The following worked for me! CUDA 11.8, nvidia-driver 520, pytorch 1.13.1

tancik avatar Jan 24 '23 18:01 tancik

CUDA 11.8 did work for me too

Tobe2d avatar Jan 24 '23 23:01 Tobe2d

In my RTX4090 pc,

CUDA 11.8, nvidia-driver 525, pytorch 2.0.0

works for me. I installed it using below command:

conda install pytorch==2.0.0 torchvision==0.15.0 torchaudio==2.0.0 pytorch-cuda=11.8 -c pytorch -c nvidia

yuntaeJ avatar Oct 30 '23 09:10 yuntaeJ