You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add compute capability 9.0 to the CUDA architecture list #29
The image cannot run on Hopper GPUs (H100/H200, sm_90). docker/Dockerfile builds tiny-cuda-nn with:
ARG CMAKE_CUDA_ARCHITECTURES=75;80;86;89
passed through as TCNN_CUDA_ARCHITECTURES. That list has no 90 and no +PTX, so on a Hopper card tiny-cuda-nn has neither a matching cubin nor a PTX fallback to JIT from. Since import nerfstudio pulls tiny-cuda-nn in, this fails at import time and takes down every model, including the splatfacto family that does not otherwise need tcnn.
gsplat and nvdiffrast are unaffected: they build with TORCH_CUDA_ARCH_LIST=7.5;8.0;8.6;8.9+PTX, and the trailing +PTX lets them JIT for newer architectures.
This rules out the largest GPUs available on many HPC systems. On the cluster where this surfaced, the Hopper node has 141 GB of VRAM against 24 GB on the Ampere nodes, which is the difference between fitting a large scene and not.
Proposed Solution
Add 90 to CMAKE_CUDA_ARCHITECTURES and 9.0 to TORCH_CUDA_ARCH_LIST:
CUDA 12.4 in the base image supports sm_90, so no base image change is needed. Cost is longer build time and a somewhat larger image.
Appending +PTX to the tiny-cuda-nn list as well would give a JIT fallback for future architectures, at the cost of a slow first launch on any GPU without a matching cubin.
Alternatives Considered
Leave it and document Hopper as unsupported. Workable but wasteful where Hopper nodes are the ones with real VRAM headroom.
Build a separate Hopper image variant. More tags to maintain for what is a one-line arch list change.
Area
Docker
Verification
Not yet reproduced on hardware: I had access to a Hopper node but did not run the probe on it. The diagnosis is from the Dockerfile arch list plus the observed failure mode on an unsupported older card (compute capability 5.2), where tiny-cuda-nn rejected the GPU during import nerfstudio in exactly this way. Confirming it needs one import torch, nerfstudio, gsplat on an H100.
Activity