-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
stdgpu
target fails the CMake configure step with CUDA 12.4 due to changes in Thrust version header
#6743
Comments
Author of stdgpu here. This has been fixed upstream in stotko/stdgpu#408, so updating the dependency in Open3D should fix it there as well. |
Hi @stotko, do you mean we need to update this file: |
@stotko Hi and thank you for the reply here, that's great! @manhha1402 Yes I believe that is exactly what would need to be done in the Open3D repo - update the commit hash in that cmake file. |
Sadly with the last stdgpu version Open3D seems to be incompatible. It shows errors like:
|
The incompatibility stems from the recent change in stdgpu to move to a custom implementation of Adapting Open3D to that change should mostly reduce to replace
|
@stotko I applied your changes and now I can compile and install Open3d with stdgpu. However, the I ran the example, compiled in
I am working with Windows 11, CUDA 12.6, CUDNN 9.4, compiled with Cmake + Visual Studio 2022. |
@asdiujvaosidujdposiadjapoij I tested this on Ubuntu 22.04 with CUDA 12.6 + latest stdgpu + pair fix and the |
With the above help, I've now also been able to compile a static version of Open3D with CUDA 12.6 on Windows 11, latest MSVC (14.42.34433), and Visual Studio's File->Open CMake. I've used the latest stdgpu master + pair fix. Out of interest, I just ran the |
Since the bug seems to become increasing problematic, I've went ahead and submitted the respective fix in #7083. |
Checklist
main
branch).Steps to reproduce the issue
I first cloned Open3D by:
Then, I build Open3D (on Windows 11 with VS2022, latest MSVC, with CUDA 12.4) with:
Error message
Open3D, Python and System information
Additional information
This error occurs because
cmake/Findthrust.cmake
extracts the Thrust version from Thrust's header file. In CUDA 12.3 (and presumably earlier), the line in the Thrust header looks like:#define THRUST_VERSION 200200
And in CUDA 12.4 it is:
#define THRUST_VERSION 200301 // macro expansion with ## requires this to be a single value
Thus, CMake's regexp in
cmake/Findthrust.cmake
fails as it encounters the unexpected trailing comment on that line.The text was updated successfully, but these errors were encountered: