Skip to content

Fix CUDA version match to ignore patch version #27093

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

Closed
wants to merge 1 commit into from

Conversation

tony19053000
Copy link

This PR fixes CUDA version detection by ignoring the patch version when checking compatibility.

Changes made:
Modified find_package(CUDAToolkit ...) to use OpenCV_CUDA_MAJOR_MINOR_VERSION instead of OpenCV_CUDA_VERSION for better version matching.
Updated VERSION_EQUAL check to avoid strict patch version mismatches, ensuring only major.minor versions are considered.

@cudawarped
Copy link
Contributor

cudawarped commented Mar 18, 2025

See #26966

@tony19053000 If your not a bot or you are a bot that can take the following into account please:

  1. Check for existing PR's before submitting one for an existing Issue, there will be a link in the issue to anything that references it.
  2. Before submitting a PR for an existing Issue read the comments of the issue to check that it is actually a problem that needs fixing.

@tony19053000
Copy link
Author

@cudawarped Sorry sir, I will take care from next time.

@tony19053000
Copy link
Author

@asmorkalov sir how to fix this error

@asmorkalov asmorkalov closed this Mar 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy