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

CUDA_HOME error when installing gsplat v1.4 #446

Open
MartinEthier opened this issue Oct 10, 2024 · 3 comments
Open

CUDA_HOME error when installing gsplat v1.4 #446

MartinEthier opened this issue Oct 10, 2024 · 3 comments

Comments

@MartinEthier
Copy link

I have a conda env that has pytorch 2.1 installed with cuda 11.7. I am able to pip install gsplat v1.3 or older without any issues. When I try pip installing gsplat v1.4, I get the same error as #197. Error: "OSError: CUDA_HOME environment variable is not set. Please set it to your CUDA install root.". His issue was that he did not have cuda installed with pytorch but I have it installed properly and I am able to use pytorch with my GPU using this env.

@FantasticOven2
Copy link
Contributor

Hey, can you try to run nvcc --version in your conda env and what's the output?

@martinResearch
Copy link
Contributor

I believe the cause could be that since version1.4 the whl file is not uploaded on pypi.org anymore and only the source distribution is released on pypi.org (see https://pypi.org/project/gsplat/#files). As a result pip install will use the source distribution and try to compile gsplat during the installation (while it was using the whl file and compiling at runtime the first time gsplat is used in previous versions). You will need to install cuda ans setup the CUDA_PATH variable in your environment before installing gsplat if you want to install from source. This could be made clearer in the doc. Alternatively you can install from the pre-compiled wheels as explained int the readme but only wheel for python 3.10 are released at the moment

@martinResearch
Copy link
Contributor

martinResearch commented Oct 15, 2024

Notre that the following doc is outdated.

The easiest way is to install from PyPI. In this way it will build the CUDA code on the first run (JIT).
pip install gsplat

because this will try to install from source and compile the cuda code during the installation since version1.4

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