Conversation
|
This fix does indeed resolve the cmake error, but the generated solution won't properly compile any .cu file I've noticed that cmake trace shows |
|
@JulienMaille BTW, CMake output for |
|
Thank you @alalek opencv/cmake/OpenCVDetectCUDA.cmake Lines 118 to 125 in a5fdcf9 |
|
@JulienMaille could you please share your environment variable situation, especially the I expect that you see when I see as a result. The output on my side indicates that this variable is not set. |
|
I did not set CUDA_HOST_COMPILER and in my terminal echo shows it is not set. I suppose this is set earlier by cmake? |
|
@JulienMaille opencv/cmake/OpenCVDetectCUDA.cmake Lines 10 to 11 in a5fdcf9 Please please make sure that you start from clean directory to avoid cache of CMake |
|
There are several patches about Until that do not use |
resolves #17544
relates #17432
Honestly, I couldn't reproduce the situation on my local environment, but according to @Bleach665 's comment, this should fix the issue.
Pull Request Readiness Checklist
See details at https://github.com/opencv/opencv/wiki/How_to_contribute#making-a-good-pull-request
Patch to opencv_extra has the same branch name.