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

'Ensure pytorch with CUDA support is installed' - Error with running #461

Open
Mike-The-Knight opened this issue Aug 2, 2024 · 2 comments

Comments

@Mike-The-Knight
Copy link

I have run into a problem where I install CUDA 12.1 which fits my Graphics card, I then install pytorch for 12.1 from pytorch documentation to a conda environment. I then install ninja and install a requirements file for a separate project which includes pip installing tiny-cuda-nn and everything works fine.

However when I run the main file for the other project that uses tiny-cuda-nn it doesn't recognise my pytorch with CUDA support is installed or something along those lines.

Please help and I am happy to offer any extra information needed.

image

@gaetan-landreau
Copy link

gaetan-landreau commented Sep 11, 2024

+1
Got a similar issue while both my torch and CUDA drivers are properly installed. GPUs are detected, running pip install git+https://github.com/NVlabs/tiny-cuda-nn/#subdirectory=bindings/torch works like a charm, but the import fails.

@Edward-HE
Copy link

I encountered a similar issue today. I installed everything correctly and was able to import tinycudann without any problems when using the interactive Python console from the command line. However, when running the program, I kept getting an error: "Ensure PyTorch with CUDA support is installed."

After double-checking everything, I realized the problem was due to a simple mistake: I needed to import torch first, and then tinycudann. Once I adjusted the import order, the program ran smoothly.

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