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

Cannot use other version of CUDA in installation #1414

Open
xingzhehe opened this issue Jan 5, 2023 · 1 comment
Open

Cannot use other version of CUDA in installation #1414

xingzhehe opened this issue Jan 5, 2023 · 1 comment

Comments

@xingzhehe
Copy link

I tried to use pip install "git+https://github.com/facebookresearch/pytorch3d.git" to install.

It tells me that

The detected CUDA version (10.2) mismatches the version that was used to compile
      PyTorch (11.2). Please make sure to use the same CUDA versions.

Indeed, I have CUDA 10.2 and CUDA 11.2 in /usr/local/, and 10.2 is the default.

After I used

export PATH=/usr/local/cuda-11.2/bin${PATH:+:${PATH}}
export PYTHONPATH=$PYTHONPATH:/usr/local/cuda-11.2/lib64/
export LD_LIBRARY_PATH=/usr/local/cuda-11.2/lib64${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}

The nvcc -V shows the version is 11.2 now, but the original error is still there.

@bottler
Copy link
Contributor

bottler commented Jan 16, 2023

Can you set CUDA_HOME to "/usr/local/cuda-11.2" and try the build of pytorch3d again?

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

2 participants