facebookresearch / pytorch3d

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

windows 10 install problem #1742

Closed karaokenoway closed 7 months ago

karaokenoway commented 7 months ago

hi, i use cuda 11.8 pytorch 2.0.1 and install pytorch3d from local clone in windows10. It failed with this: C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v11.8/include\cub/device/dispatch/dispatch_segmented_sort.cuh(338): error: invalid combination of type specifiers

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

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

3 errors detected in the compilation of "F:/Github/AdaMPI/pytorch3d-0.7.4/pytorch3d-0.7.4/pytorch3d/csrc/pulsar/cuda/renderer.backward.gpu.cu". error: command 'C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.8\bin\nvcc.exe' failed with exit code 2

what should i do plz!

bottler commented 7 months ago

Please see https://github.com/facebookresearch/pytorch3d/issues/1567 and https://github.com/facebookresearch/pytorch3d/issues/1631.

karaokenoway commented 7 months ago

Thanks @bottler , I have add the flag to the nvcc_args in setup.py. like #1567 but it still don't work. i also change the cub for 1.17.2 but it comes the same error....

bottler commented 7 months ago

We're going to be able to help much. Are you on the latest version of Visual Studio?

karaokenoway commented 7 months ago

I use vs2019

bottler commented 7 months ago

Recently people have been reporting successes with 2022. eg #1659

karaokenoway commented 7 months ago

After using pytorch3d 0.7.5 and with cuda11.8, it's ok right now. i even don't why, but it works, thanks!