fix build with CUDA#5976
Conversation
|
Which library/app are you building - I can't reproduce it and I'm using Cmake 3.28. |
|
Here is the command I use: The error occurs: |
|
It is indeed not set, but builds on the CI's. I wonder if you have a specific cmake, which falls wrongly through the ifs 😄 |
|
I use cmake 3.28.3 and cuda 12.4 |
|
Shouldn't this line be added directly after |
|
Done. Thanks for pointing it out. |
|
Not related to this PR per se, only changes to thrust/cuda 12.4: @daizhirui Can you build octree and surface? Or do you also get errors about thrust::tuple get method? |
|
My previous build succeeded because it was actually CUDA 12.3. The NVIDIA driver reports CUDA 12.4 but it turned out it was 12.3. I tried another build with CUDA 12.4 and got the same error as yours @larshg. |
Nice, however I think we might need to add some #ifdefs if CUDA 9.0 doesn't support the newer thrust::get API. But lets see what the CI says. Think the oldest we build with is v10.1.243 (ubuntu 20.04) |
|
Opened an issue NVIDIA/cccl#1519, as according to documentation it should be possible to use get member functions: |
|
As per response in the nvidia issue, the documentation had not been updated,so this change is fine. |
CUDA_TOOLKIT_INCLUDEis not set whenfind_package(CUDAToolkit)is called withcmake >= 3.17, which causes error