facebookresearch / pytorch3d

PyTorch3D is FAIR's library of reusable components for deep learning with 3D data
https://pytorch3d.org/
Other
8.81k stars 1.32k forks source link

got Error when installing pytorch3d #1631

Closed DeepAlien890 closed 1 year ago

DeepAlien890 commented 1 year ago

Hi! I was installing pytorch3d. but i got errors like this...

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 "D:/Projects/pytorch3d/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

I newly installed VS 2022. and My environment includes python=3.10, pytorch=1.13.1, cuda=11.7. and i got i9-12th, RTX3090. plz, help.

bottler commented 1 year ago

This is a known issue where the solution has been to copy cub version 11.7 over the top of the one in the cuda folder. See e.g. https://github.com/facebookresearch/pytorch3d/issues/1567

DeepAlien890 commented 1 year ago

It worked! thanks a lot.