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
Installing tiny-cuda-nn & Nerfstudio on Windows (RTX 3060 + CUDA 11.8)
After spending over 48 hours troubleshooting, I finally got tiny-cuda-nn and Nerfstudio installed successfully. Here's what worked for me.
System Specs & Versions
GPU: NVIDIA RTX 3060
CUDA Version: 11.8
Visual Studio Version: VS 2019 v17.8 (Worked!)
Python Version: 3.8
Issues Faced & Fixes
1️⃣ TCNN_CUDA_ARCHITECTURES Error
Issue: Compilation failure due to missing CUDA architectures.
Fix: Set the CUDA architecture to 86:
setTCNN_CUDA_ARCHITECTURES=86
2️⃣ VS 2022 v17.10+ Not Working
Issue: CUDA (11.8) requires _MSC_VER < 1910 || _MSC_VER >= 1940, but VS 2022 sets _MSC_VER = 1940.
Fix: Removed VS 2022 v17.10+ and installed VS 2022 Fall 2023 LTSC (v17.8).
Either during installation of tinycudann or nerfstudio using pip, if it fails because of an error message mentioning Rust/Cargo, download and execute the installer from rustup.rs and try again.
3️⃣ CMake and cl Not Recognized
Issue: Running cmake or cl returned "not recognized as a command."
Fix: Manually added the following paths to the system PATH:
Installing tiny-cuda-nn & Nerfstudio on Windows (RTX 3060 + CUDA 11.8)
After spending over 48 hours troubleshooting, I finally got
tiny-cuda-nn
andNerfstudio
installed successfully. Here's what worked for me.System Specs & Versions
Issues Faced & Fixes
1️⃣
TCNN_CUDA_ARCHITECTURES
ErrorIssue: Compilation failure due to missing CUDA architectures.
Fix: Set the CUDA architecture to 86:
2️⃣ VS 2022 v17.10+ Not Working
Issue: CUDA (11.8) requires
_MSC_VER < 1910 || _MSC_VER >= 1940
, but VS 2022 sets_MSC_VER = 1940
.Fix: Removed VS 2022 v17.10+ and installed VS 2022 Fall 2023 LTSC (v17.8).
Either during installation of
tinycudann
ornerfstudio
using pip, if it fails because of an error message mentioning Rust/Cargo, download and execute the installer from rustup.rs and try again.3️⃣
CMake
andcl
Not RecognizedIssue: Running
cmake
orcl
returned "not recognized as a command."Fix: Manually added the following paths to the system
PATH
:Then activated the MSVC environment:
4️⃣ Conda Environment Variables Not Set
Issue: CUDA was not detected properly inside Conda.
Fix: Manually set the following environment variables before installation:
💡 To make these settings permanent, add them to your System Environment Variables.
5️⃣ Created a Conda Environment for Nerfstudio
6️⃣ Installed PyTorch with CUDA 11.8
7️⃣ Installed
tiny-cuda-nn
via GitHubInitially, the installation failed. However, after running:
it finally worked.
8️⃣ Installed Nerfstudio
🎉 Success!
Now, both
tiny-cuda-nn
andNerfstudio
are working perfectly! Hopefully, this helps someone else facing similar issues. 🚀The text was updated successfully, but these errors were encountered: