-
Notifications
You must be signed in to change notification settings - Fork 1.4k
CUB building issues on Windows 11 #1227
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
Comments
(CUDA 11.7 is new to me.) Some of the steps here are odd. Adding to the path for I would expect with CUDA 11.7 that it's easiest not to set CUB_HOME and not to think about cub. Just let the cuda toolkit do its thing. Is VS2019 designed to be compatible with CUDA 11.7? Worth checking. |
Thank you for your reply Jeremy! I removed cl and msbuild from the path - but it still failed. Then I removed the CUB_HOME, but it still failed with the same errors. |
That warning shouldn't be fatal. (also VS2019 should be fine). This problem is not pytorch3d specific. It looks similar to https://forums.developer.nvidia.com/t/cub-1-5-fails-to-build-when-windows-h-was-previously-included/210367 where installing cub 1.16 helped. Can you try that? |
I tried this, but unfortunately the errors are still the same.
|
This is the full log: |
The error |
You were right! I deleted the cub folder in the CUDA toolkit and replaced it with the cub 1.17: It successfully builds now, thank you! |
@sktistakis I replaced it but still error. I am using CUDA11.8 and tried cub 1.17 cub 1.17.1 cub 1.17.2 all fails!! |
@bottler Can u please make pytorch3d compatible on cuda11.8 windows? I current tried 2 computers with cuda 11.8 windows, all build failed. |
If you still need help, please open a new issue. |
YES! It also works for CUDA 11.8. |
See if this helps |
Uh oh!
There was an error while loading. Please reload this page.
I'm trying to build pytorch3d on Windows 11 using CUDA 11.7 and PyTorch 1.9.1 but having some issues coming from CUB.
I am starting the building process on "x64 Native Tools Command Prompt for VS 2019" using a conda environment:
python setup.py install
What I've done so far:
set CUB_HOME=C:\Program Files\cub-1.17.0\cub
set DISTUTILS_USE_SDK=1
Added cl.exe folder to PATH:
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\bin\Hostx64\x64
Added this folder to path as well (can't remember why)
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin
What I have tried as well:
Using the CUB version which is already integrated in CUDA 11.7.
set CUB_HOME= C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.7\include
But this lead to the same issue.
Installing pytorch3d with PyTorch 1.9.1 CPU worked, but not with PyTorch Cuda.
Here is one of the the relevant build errors (it repeats when compiling different 'pytorch3d/csrc/pulsar/cuda/renderer...' files):
The full log can be found here:
https://file.io/e3oV2zOkCDqk
The text was updated successfully, but these errors were encountered: