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

error: namespace "thrust::cub" has no member "DebugSyncStream" #1610

Closed pzc163 closed 5 months ago

pzc163 commented 1 year ago

Windows10 CUDA11.8 pytorch=2.0.1

when i build pytorch3D in win10,i meet below this error:

D:/Program Files/Anaconda3/envs/torch3D/lib/site-packages/torch/include\c10/macros/Macros.h(138): warning C4067: 预处理器指令后有意外标记 - 应输入换行符 C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v11.8/include\thrust/system/cuda/detail/core/agent_launcher.h(524): error: namespace "thrust::cub" has no member "DebugSyncStream"

1 error detected in the compilation of "D:/Program Files/Anaconda3/envs/torch3D/Lib/site-packages/pytorch3d-0.7.4/pytorch3d/csrc/iou_box3d/iou_box3d.cu". error: command 'C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.8\bin\nvcc.exe' failed with exit code 2

(torch3D) D:\Program Files\Anaconda3\envs\torch3D\Lib\site-packages\pytorch3d-0.7.4> image

pzc163 commented 1 year ago

I ask New bing for this issue,new bing's response is The error message “namespace “thrust::cub” has no member “DebugSyncStream”” usually occurs when you are trying to use DebugSyncStream in a version of Thrust that does not support it. This is because DebugSyncStream was added in Thrust 1.9.0 and is not available in earlier versions

If you are using an earlier version of Thrust, you can try upgrading to version 1.9.0 or later to use DebugSyncStream

can anyone help to confirm that new bing's response is correct?

bottler commented 1 year ago

I don't know the specifics. There have been a few issues like this very recently. The only one with a fix is https://github.com/facebookresearch/pytorch3d/issues/1603 where they downgraded to cuda 11.7. Can you do that?

pzc163 commented 1 year ago

I don't know the specifics. There have been a few issues like this very recently. The only one with a fix is #1603 where they downgraded to cuda 11.7. Can you do that?

thanks for your reply bottler,I noticed that some people have solved this problem by downgrading CUDA to 11.7. But considering other projects, I really don’t want to downgrade the CUDA version to 11.7, so I am looking for other solutions

lucasjinreal commented 1 year ago

It's really hard to suggest users to downgrade cuda version to support pytorch3d, this is not the right way nor the proper way.

CUDA is much more basic in whole system for user, tons of projects, software, game dependes on it, Why not just listen voice from community and take a person's effort just look at this issue and fix CUDA11.8 build on windows?

2 Years, I didn't saw this issue resolve...... I always appreciated meta and pytorch authors work for opensource community, but this, to be honest, I didn't know why it should be stucked at here.

bottler commented 1 year ago

@lucasjinreal Not sure what you mean by "2 years". Internally we aren't using PyTorch3D on windows, and we haven't ever distributed binaries for Windows or had a working CI setup for windows. We think there are people using PyTorch3D successfully on windows, and we think that's required considerable effort from some of them them. We have tried to support users who report problems with Windows builds and we've made requested changes to help them, and we do hear of successes where these things have helped. This particular issue, referencing "DebugSyncStream", is very new - mentioned in 4 different issues since August 1 2023 and never before that, and we don't have the means to solve it, and of course we would appreciate more information on how it might be solved. It looks like #1509 succeeded in the end to build with CUDA 11.8 on windows, so I don't think CUDA 11.8 on windows is completely broken. Rather I think something more specific, possibly recent, is the problem here.

lucasjinreal commented 1 year ago

@bottler Hello, no offense here. I don't think the issue you linked here the user one claimed solved its the issue poster, nor he does using CUDA11.8 on windows.

I have seen at least 3 users got this issue on issue list, at least mine and my colledge 3+ got same issue on CUDA11.8 failure on windows, am not saying this is completely broken or partly broken, but it just did not compilable out-of-box with latest code on cuda11.8, and I thought not as well for cuda12+.

Am not using windows before, but nowadays.... more and more people back to windows .....

RevolGMPHL commented 1 year ago

i have the same problem

lucasjinreal commented 1 year ago

Yeah, but I suggest you downgrade cuda, this is how bottler suggested me....

RevolGMPHL commented 1 year ago

i downgrade the cuda to 11.7 on window. But it got error again. pytorch3d seem not support win....

lucasjinreal commented 1 year ago

Yeah, this the only lib that suggest users downgrade cuda, even though cuda might evolved hundredes of APPs based on it, still pytorch3d suggest users downgrade cuda. But not try fix their build errors....

IMO, just get rid of pytorch3d.

bottler commented 1 year ago

i downgrade the cuda to 11.7 on window. But it got error again. pytorch3d seem not support win....

Indeed, we don't support Windows. Since the beginning, users on Windows have been helping each other.

lucasjinreal commented 1 year ago

I have to correct this statement:

~pytorch3d don't support Windows.~

It should be:

pytorch3d build fail on Windows only under CUDA11.8 (or might above)

Please lead users to the correct direction.... They are 2 different things....

RevolGMPHL commented 1 year ago

i downgrade the cuda to 11.7 on window. But it got error again. pytorch3d seem not support win....

Indeed, we don't support Windows. Since the beginning, users on Windows have been helping each other.

Please, many people need pytorch3d on windows. Thx!~

bottler commented 1 year ago

I wonder if the recent commit to main, https://github.com/facebookresearch/pytorch3d/commit/6f2212da46f3ad1a596b3e1017be2d16eaaf95f9, might help with this?

Sqiuln commented 1 month ago

it works,thanks