Skip to content

Installation error with pytorch3d 0.7.2 #1978

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

Closed
maaamcube opened this issue May 21, 2025 · 3 comments
Closed

Installation error with pytorch3d 0.7.2 #1978

maaamcube opened this issue May 21, 2025 · 3 comments

Comments

@maaamcube
Copy link

Hello,

In order to install pytorch3d 0.7.2, i followed this tutorial : https://medium.com/@gowthamunni2001/installing-pytorch3d-in-windows-b64c18e4d34c

I have Windows 11.

I installed CUDA 12.4 and VS 2019.

I downloaded pytorch3d 0.7.2 locally instead of the default repo.

i got this error when installing with cmd and can't complete the installation :

C:\Users\tkrou\FOUND\pytorch3d\pytorch3d\csrc\pulsar\include./math.h(128): note: lors de la tentative de mise en correspondance de la liste des arguments '(float, float, float)'
error: command 'C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\bin\HostX86\x64\cl.exe' failed with exit code 2

Thank's in advance.

@maaamcube
Copy link
Author

I tried to install it with pytorch 1.13.0 (pip install torch==1.13.0+cu117 torchvision==0.14.0+cu117 torchaudio==0.13.0 --extra-index-url https://download.pytorch.org/whl/cu117) and CUDA 11.7

i got these errors :
"C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v11.7/include\cub/device/dispatch/dispatch_segmented_sort.cuh(338): error: invalid combination of type specifiers

C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v11.7/include\cub/device/dispatch/dispatch_segmented_sort.cuh(338): error: expected an identifier

C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v11.7/include\cub/device/dispatch/dispatch_segmented_sort.cuh(379): error: expected a member name

3 errors detected in the compilation of "C:/Users/tkrou/FOUND/pytorch3d 0.7.2/pytorch3d/csrc/pulsar/cuda/renderer.backward.gpu.cu".
error: command 'C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.7\bin\nvcc.exe' failed with exit code 2"

@bottler
Copy link
Contributor

bottler commented May 21, 2025

see #1888 and also try searching for "invalid combination of type specifiers" in other issues.

@maaamcube
Copy link
Author

i found the combine that works :
Windows 11
Python 3.10.11
VS 2019
CUDA 11.7.1 : replace cub include by cub 1.17.2 include

Using x64 Native Tools Command Prompt for VS 2019 :
pip install torch==1.13.0+cu117 torchvision==0.14.0+cu117 torchaudio==0.13.0 --extra-index-url https://download.pytorch.org/whl/cu117
set DISTUTILS_USE_SDK=1

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