Skip to content

cuda:: Add comment describing code around enable_language(CUDA) in CMakeLists.txt #27164

Merged
asmorkalov merged 1 commit intoopencv:4.xfrom
cudawarped:cmake_add_comment_for_cmp0104
Mar 30, 2025
Merged

cuda:: Add comment describing code around enable_language(CUDA) in CMakeLists.txt #27164
asmorkalov merged 1 commit intoopencv:4.xfrom
cudawarped:cmake_add_comment_for_cmp0104

Conversation

@cudawarped
Copy link
Copy Markdown
Contributor

Clarify the motivation for #25941 inside CMakeLists.txt to avoid unecessary Issues (#27076) and PRs (#27085) in the future.

Pull Request Readiness Checklist

See details at https://github.com/opencv/opencv/wiki/How_to_contribute#making-a-good-pull-request

  • I agree to contribute to the project under Apache 2 License.
  • To the best of my knowledge, the proposed patch is not based on a code under GPL or another license that is incompatible with OpenCV
  • The PR is proposed to the proper branch
  • There is a reference to the original bug report and related work
  • There is accuracy test, performance test and test data in opencv_extra repository, if applicable
    Patch to opencv_extra has the same branch name.
  • The feature is well documented and sample code can be built with the project CMake

…ble_language(CUDA) sets it to the default architecture chosen by the compiler, to trigger the OpenCV custom CUDA architecture search an empty value needs to be respected see opencv#25941.
@asmorkalov asmorkalov self-assigned this Mar 30, 2025
@asmorkalov asmorkalov merged commit 767407e into opencv:4.x Mar 30, 2025
1 check passed
@asmorkalov asmorkalov mentioned this pull request Apr 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants